I created an IndexedDB databse named "A" by indexedDB.open method.
Now I want to modify the database name to "B", how can I do it?
I dont't want to create a new database with new name and copy all data from old database to new database.
From the main Documentation :
Every database has a name which identifies it within a specific origin.The name can be any string value, including the empty string, and stays constant for the lifetime of the database.
So, as it says, the name remains same for entire life.
It's a bit of a pain, but you could create a new database with the name you want, and copy everything from the old to the new. If you're using autoincrement IDs and you have cross-references by ID, you might need to generate maps of old-to-new id during transfers, and translate the references.