We moved our EE install from one CentOS server to another. After the move, we started to have some seemingly unexplainable issues with our MySQL database. In our database, we have two users, root and .(JavaScript must be enabled to view this email address). This is the same set up we had on the original server. Once everything was set up on the new server, we open up the main page and we start clicking around. Once we get to a page that makes a database connection to a different database (but using the same user1@localhost) we just get a blank white screen. If I switch the connection to use the root user instead of user1, it works just fine.
So at that point I start checking permissions. Originally I had just issued
grant all on *.* to user1@localhost;grant all on database1.* to user1@localhost;That didn’t fix it either, so I start issuing the same command, but for database2, database3, etc.. At that point I noticed that the main page quit working! By granting the user1 user MORE permissions to more databases, the site quit working. As soon as I revoked all the permissions I had just added, it started working again.
So for a band-aid solution, we have the main database being accessed using user1@localhost, but any additional database connections are using the root user. Everything is working like expected. The problem is, we don’t want to use the root account. Plus, my developer only has access to the user1@localhost account which at the moment only has privileges to the main database. If she wants to make edits to any of the other databases, I’ll have to grant the user those privileges, and as soon as I do that, the web page quits working.
It’s a very odd situation. Hopefully someone out there will have some answers! Thanks in advance. Let me know if you need any more info about the database or set up.