No Database Selected
-
I’m having an issue with a local WordPress install using MAMP (fully updated) on a Mac. I’m getting the “No database selected” message. And, this is happening on a clean install of WordPress 5.4 before anything has been modified. MySQL version is 5.7.26.
I’ve checked PHYMyAdmin and the root user and the other user that I set up for the DB both have the correct “All Privileges” settings. I created a test.php script to test my DB credentials and the connection is successful.
My issue is that the “no database selected” error displays after upgrading my PHP. If I select any version greater than PHP 7.1.32, I get the error. As soon as I switch it back, the website works. So, I don’t believe that this is a DB issue in my case. This same behavior happens on every site that I have set up in MAMP. The only variable is switching the PHP version to a current one.
** ERROR **
No database selectedCan’t select database
We were able to connect to the database server (which means your username and password is okay) but not able to select the database.Are you sure it exists?
Does the user have permission to use the database?
On some systems the name of your database is prefixed with your username, so it would be like username_. Could that be the problem?The page I need help with: [log in to see the link]
- The topic ‘No Database Selected’ is closed to new replies.