store | blogs | forums | twitter | facebook | wiki | mailing lists | downloads | support portal
Atomic Secure Linux
It is currently Fri May 24, 2013 3:09 pm

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic Share/Bookmark  [ 3 posts ] 
Author Message
 Post subject: MySQL lost db permissions
Unread postPosted: Fri Mar 11, 2011 9:43 pm 
Offline
Forum Regular
Forum Regular

Joined: Tue May 10, 2005 1:24 pm
Posts: 193
I'm not sure what happened exactly, but all my db permissions have been lost. It happened when I was creating a new db in the plesk interface. All the info is still in the psa db, but the db and user tables in the mysql db have been cleaned out pretty much. I checked my backups from last week and they have the same problem, so I can't restore them. I'm not really sure how it was still working, but when I tried to add a db in the plesk interface, everything stopped. I had to manually re-add the admin account into the mysql db. Is there any way to have plesk rewrite those permissions to the mysql db without overwriting the dbs themselves. The dbs are there and all the info is in them, just the users that were setup with plesk have been removed from the mysql db. I know I can manually fix this one by one, but is there an easy way to do it using any plesk commands? I have a decent amount of dbs and it would take quite a while to manually reconfigure all of them.


Top
 Profile  
 
 Post subject: Re: MySQL lost db permissions
Unread postPosted: Sat Mar 12, 2011 4:46 pm 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin

Joined: Wed Dec 31, 1969 8:00 pm
Posts: 7429
Location: earth
Any chance that got backed up to /var/lib/psa?


Top
 Profile  
 
 Post subject: Re: MySQL lost db permissions
Unread postPosted: Sat Mar 12, 2011 6:20 pm 
Offline
Forum Regular
Forum Regular

Joined: Tue May 10, 2005 1:24 pm
Posts: 193
I did find a mysql dump from November that was a pre-upgrade dump. I was able to restore from that file to get most of them. I did have to remove some records in the user table that had blank user or blank password. Thanks.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic Share/Bookmark  [ 3 posts ] 

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group