Joomla 3.9.11

Working on localhost, today I decided to rename my database from dbtest to dbnew. I did this using HeidiSQL > rename db

When I visit my site I now see the following error;

Warning: session_start(): Failed to read session data: user (path: C:\xampp\tmp) in C:\xampp\htdocs\mysite\libraries\joomla\session\handler\native.php on line 260 Error: Failed to start application: Failed to start the session

I opened configuration.php and replaced all instances of dbtest with 'dbnew' but same thing.

I've also emptied the db sessions table, tried a different browser and restarted apache / mysql.

If I revert the name back to dbtest and change my configuration.php accordingly all works as expected. SO, what am I doing wrong, how can I change my db name correctly?

Any advice?


Found the answer.

When I renamed the database I also had to re-assign the database user to this database.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.