Same MySQL DB User or New One for Each WordPress Install
-
I’ve been installing about 10 WordPress sites per MySQL database. Each database has its own MySQL username and password that all 10 sites share to connect to MySQL. Each WordPress site is stand-alone with its own table prefix. My question then is if having 10 WordPress sites using the same MySQL user account will create any issues. Or really if anything about this setup seems like it would create problems.
Recently we’ve been having some of our sites show a “Error establishing connection to database” error page (that’s all the page says) for 15-30 minutes before it comes back. I’ve noticed that it only happens to 1-2 of the databases I’ve setup and not all of them. I then tried to login to PHPMyAdmin with the shared MySQL user for that database and it would not work. I’m assuming that it’s an overload on the MySQL user account and not the database itself, however my inexperience does not lend itself well to proving this assumption.
I am going to start creating separate MySQL users for each account anyway but I’m wondering what people think of this setup and if maybe I have too many sites in a database/using the same user information.
- The topic ‘Same MySQL DB User or New One for Each WordPress Install’ is closed to new replies.