How to change database name in sqlite?

sqlite

Solution

There's no database name in SQLite because there's only one database per file. Maybe what you want to do is rename the SQLite file instead.

Problem

I have to simply change name of database, but it seems the `ALTER DATABASE` command is not valid in SQLite. My scenario is that I have a SQLite encrypted database, and now I want to rename it. After manually renaming the db file, encryption is not working. So I tried to change the database's name using command. It looks like problem is due to encryption.

Original source

Related problems