Hi guys. I just did a web upgrade via Virtualmin for the updated mysql packages that were showing, a few errors popped up which I have worked through and had to reinstall the mysql-server and mysql-server-5.5 packages but now mysql is showing as started and working.
However, none of my sites seem to be able to access the database and I am getting:
Database connection error (2): Could not connect to MySQL.
for all of them.
If I go into the virtual server and into edit databases they are all still showing correctly( the ones i have checked anyhow). Also propable related I cannot log into phpmyadmin at all as it is bringing up a #1045 Cannot log in to the MySQL server error.
All my sites are offline currently, I have no doubt there is something simple I am missing here so am hoping you can give some advise on what i should check to get them all working again.
Thanks, it appears that all clients have lost their permissions in that case. There are only really root users showing in the output as well as one debian-sys-maint user.
How can I fix this - I assume that each user permission not being set also equates to each database under each account also not being associated properly.
I do have another thing too, if I go into manage database I am getting an error regarding InnoDB that I didnt have before:
SQL show index from jos_fulltextrss_feeds_url failed : Unknown storage engine ‘InnoDB’
Hrm, so just to be clear – you’re saying that none of your users, except the root users, are listed in that table?
If that’s the case, that sounds like reinstalling MySQL may have removed all your users.
That’s a tricky problem
One thing you could try is to go into Edit Virtual Server -> Enabled Features, and to disable then re-enable the MySQL Login feature. That may cause it to re-add your users… but I’m not sure if it’ll throw an error when it doesn’t see the user in there…
Hi Eric, I actually looked at unticking the MySQL option > MySQL database enabled but it brings up a warning that the client and databases will be deleted. Is there a shortcut or easy way to download all databases on the server as a backup before I do this?
Also, what do you think to the idea if I disassociate the databases from the virtual server it should be able to disable the MySQL database and user permissions, then I enable it and import the database to the virtual server again?