store | blogs | forums | twitter | facebook | wiki | mailing lists | downloads | support portal
Atomic Secure Linux
It is currently Sun May 26, 2013 5:28 am

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic Share/Bookmark  [ 28 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Latest MySQL Broke Plesk
Unread postPosted: Wed Sep 01, 2010 10:10 am 
Offline
Forum User
Forum User

Joined: Wed May 26, 2010 9:04 am
Posts: 25
I have been reading on forums, and trying all kinds of different fixes that people have shown results with but I am not having any luck.

Currently Plesk shows the following in the database section.

Warning: The last attempt to control this database server failed.

When I try to create a database with installatron or even within plesk I get an error and it says cannot communicate with the Database server. It creates the database but not the users and thats what is causing the issue.

I have tried the database upgrade, repair, and all of the fixes throughout the various forums.


psa ~]# rpm -qa | grep -i mysql-

perl-DBD-MySQL-3.0007-2.el5
mysql-libs-5.1.50-1.el5.art
mysql-5.1.50-1.el5.art
mysql-libs-5.1.50-1.el5.art
mysql-server-5.1.50-1.el5.art
asl-php-mysql-5.2.13-1.el5.art
php-mysql-5.2.14-2.el5.art
mysql-server-5.1.50-1.el5.art
mysql-5.1.50-1.el5.art


Any Ideas?


Top
 Profile  
 
 Post subject: Re: Latest MySQL Broke Plesk
Unread postPosted: Wed Sep 01, 2010 10:15 am 
Offline
Forum User
Forum User

Joined: Wed May 26, 2010 9:04 am
Posts: 25
I forgot to add that I am running Cent OS 5 x64 and plesk 9.5.2 in a VM

uname -a
Linux 2.6.32.16-2.art.x86_64 #1 SMP Wed Jul 7 13:28:00 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux


Top
 Profile  
 
 Post subject: Re: Latest MySQL Broke Plesk
Unread postPosted: Wed Sep 01, 2010 11:08 am 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin

Joined: Wed Dec 31, 1969 8:00 pm
Posts: 7429
Location: earth
No, I don't get that on any system I'm running. Anyone else?


Top
 Profile  
 
 Post subject: Re: Latest MySQL Broke Plesk
Unread postPosted: Wed Sep 01, 2010 11:11 am 
Offline
Forum User
Forum User

Joined: Wed May 26, 2010 9:04 am
Posts: 25
I opened an ASL support ticket a while back the last time that my server yum upgraded from msql 5.0.90 to 5.1 and I had to go through the process of downgrading and then everything worked fine. Somehow the system upgraded itself via automated yum again and now I have a semi working mysql server.

The databases they are already in the server work fine but I cannot add any new users so plesk and installatron freak out.

I see other people are using 5.1.50 perfectly so thats why I am so confused... I tried to downgrade it like I did last time and I am getting all kinds of errors this time around.


Top
 Profile  
 
 Post subject: Re: Latest MySQL Broke Plesk
Unread postPosted: Wed Sep 01, 2010 2:22 pm 
Offline
Forum Regular
Forum Regular

Joined: Wed May 12, 2010 5:40 pm
Posts: 137
I have the same versions of php, mysql, plesk, asl, on down the line...

For testing and to verify my system is working properly, I just created a new DB, with a new user, new password...no problems at all.

The only difference is I have a dedicated server, not a VM (virtual server, I assume)....


Top
 Profile  
 
 Post subject: Re: Latest MySQL Broke Plesk
Unread postPosted: Wed Sep 01, 2010 2:43 pm 
Offline
Forum User
Forum User

Joined: Wed May 26, 2010 9:04 am
Posts: 25
hmm... it seems I always have ghost issues on my production box :( well hopefully someone on here can help because short of setting a whole new box over and performing a plesk migration I do not know how to fix this issue. Especially if no one else seems to be having the same problem.


Top
 Profile  
 
 Post subject: Re: Latest MySQL Broke Plesk
Unread postPosted: Wed Sep 01, 2010 2:56 pm 
Offline
Forum Regular
Forum Regular

Joined: Wed May 12, 2010 5:40 pm
Posts: 137
Is the mysql server "localhost" or some alternative database server, such as 1and1 does for their shared hosting?

When you upgraded your mysql, did you complete the process as described by Bruen somewhere in this forum...you might search for the threads on that , because there are several important additional steps beyond simply yum update...he solved many issues for many people with the steps fully described (if remember correctly)...

Let us know how its going, there may be other issues that warrant attention...


Top
 Profile  
 
 Post subject: Re: Latest MySQL Broke Plesk
Unread postPosted: Wed Sep 01, 2010 4:24 pm 
Offline
Forum User
Forum User

Joined: Wed May 26, 2010 9:04 am
Posts: 25
As far as I know it is setup however plesk installs it. All of my applications that use databases are setup to point to localhost so I would assume thats how it is.

As far as following the instructions I followed them off of a post here and yea they were pretty detailed. Everything appeared to be ok until I noticed I couldn't add any more users and plesk could not communicate with the database.

Is it possible to start those steps over again and rectify the issue that way?


Top
 Profile  
 
 Post subject: Re: Latest MySQL Broke Plesk
Unread postPosted: Thu Sep 02, 2010 8:27 am 
Offline
Forum Regular
Forum Regular

Joined: Mon Apr 10, 2006 12:55 pm
Posts: 656
Did you follow the steps outlined here?

http://www.atomicorp.com/wiki/index.php/Mysql

If you skipped step 4 I could see you having the issues you've described.

_________________
"Its not a mac. I run linux... I'm actually cool." - scott


Top
 Profile  
 
 Post subject: Re: Latest MySQL Broke Plesk
Unread postPosted: Thu Sep 02, 2010 8:43 am 
Offline
Forum User
Forum User

Joined: Wed May 26, 2010 9:04 am
Posts: 25
I can say that what originally happened was a yum upgrade that had tons of packages... I didn't see mysql in there until it was all said and done. At that point I performed the rest of the steps listed in here including the step 4 of upgrading the database. it ran through and I did the repair lines as well. If fixed some things and I ran them all multiple times because it said sometimes you have to run it twice.

Mysql is running, the databases that were installed and the users that were there prior to the upgrade are functioning fine... I have a lot of database driven websites that all work fine still... the problem is just that plesk is not communicating with the database server and I cannot add new database users... it will let me add databases... just not users... kind of odd... is there a plesk update that may fix this?


Top
 Profile  
 
 Post subject: Re: Latest MySQL Broke Plesk
Unread postPosted: Thu Sep 02, 2010 8:46 am 
Offline
Forum User
Forum User

Joined: Wed May 26, 2010 9:04 am
Posts: 25
[root@psa ~]# rpm -qa | grep -i psa
psa-fcgi-2.4.0-2
psa-proftpd-1.3.3-2.el5.art
psa-pylibplesk-9.5.2-cos5.build95100504.10
psa-qmail-1.03-cos5.build95100504.10
psa-ftputil-2.1.1-0.98221
psa-libpam-plesk-9.5.2-cos5.build95100504.10
psa-api-rpc-9.5.2-cos5.build95100504.10
psa-passwd-3.1.2-cos5.build95100504.10
psa-migration-manager-9.5.2-cos5.build95100504.10
psa-migration-agents-9.5.2-cos5.build95100504.10
psa-mod_fcgid-1.10-3
psa-selinux-9.5.2-cos5.build95100504.10
psa-logrotate-3.7-cos5.build95100504.10
psa-proftpd-xinetd-1.3.2e-cos5.build95100504.10
psa-qmail-rblsmtpd-0.70-cos5.build95100504.10
psa-mail-qc-driver-1.0.0-cos5.build95100504.10
psa-9.5.2-cos5.build95100504.10
psa-awstats-configurator-1.0.0-cos5.build95100504.10
psa-miva-9.5.2-cos5.build95100504.10
psa-turba-2.3.3-cos5.build95100504.10
psa-mnemo-2.2.3-cos5.build95100504.10
psa-mimp-1.1.3-cos5.build95100504.10
psa-atmail-1.03-6.el5.art
psa-mod-fcgid-configurator-1.0-14
psa-php5-configurator-1.5.3-cos5.build95100504.10
psa-mail-driver-common-9.5.2-cos5.build95100504.10
psa-autoinstaller-3.6.0-100413.11
psa-imp-4.3.6-cos5.build95100504.10
psa-backup-manager-9.5.2-cos5.build95100504.10
psa-atis-1.0-46
psa-kronolith-2.3.3-cos5.build95100504.10
psa-spamassassin-9.5.2-cos5.build95100504.10
psa-pear-1.4.9-20060517.1
psa-hotfix5-8.6.0-8.6.0-cos5.build86080930.03
psa-locale-base-en-US-9.5.2-2010041911
psa-api-9.5.2-cos5.build95100504.10
psa-mailman-configurator-9.5.2-cos5.build95100504.10
psa-horde-3.3.6-cos5.build95100504.10
psa-watchdog-2.0.3-cos5.build95100504.10
psa-ingo-1.2.3-cos5.build95100504.10
psa-updates-9.5.2-cos5.build95100504.10


Top
 Profile  
 
 Post subject: Re: Latest MySQL Broke Plesk
Unread postPosted: Thu Sep 02, 2010 9:02 am 
Offline
Forum User
Forum User

Joined: Wed May 26, 2010 9:04 am
Posts: 25
Is it safe to say that I should consider rolling back? the bad thing is... I upgraded all of the databases... so I don't know if I even can at this point.


Top
 Profile  
 
 Post subject: Re: Latest MySQL Broke Plesk
Unread postPosted: Thu Sep 02, 2010 10:54 am 
Offline
Forum Regular
Forum Regular

Joined: Wed Jan 02, 2008 3:21 pm
Posts: 515
Location: United Kingdom
Intelehost wrote:
Mysql is running, the databases that were installed and the users that were there prior to the upgrade are functioning fine... I have a lot of database driven websites that all work fine still... the problem is just that plesk is not communicating with the database server and I cannot add new database users... it will let me add databases... just not users... kind of odd... is there a plesk update that may fix this?

Not sure about the possibility of rolling back, it sounds like user privileges are messed up. The 'mysql_upgrade' command should ensure GLOBAL PRIVILEGES are set correctly for admin (under plesk) or root, but to double check:
Code:
mysql -uadmin -p`cat /etc/psa/.psa.shadow`
mysql> SELECT * FROM mysql.user WHERE User='admin';

If you see Y for all privileges, try flushing them:
Code:
mysql> FLUSH PRIVILEGES;

If you see an N, reset admin privileges (ensure you copy/paste the following mysql command as a single line, otherwise you'll revoke privileges and may not be able to grant them after):
Code:
mysql> REVOKE ALL PRIVILEGES ON *.* FROM 'admin'@'localhost'; GRANT ALL PRIVILEGES ON *.* TO 'admin'@'localhost' WITH GRANT OPTION MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0; FLUSH PRIVILEGES;

If you are uncertain (or curious) of these commands, read up first and be clear on what you are doing. Start here: http://dev.mysql.com/doc/refman/5.0/en/grant.html

Good luck.


Top
 Profile  
 
 Post subject: Re: Latest MySQL Broke Plesk
Unread postPosted: Thu Sep 02, 2010 11:51 am 
Offline
Forum Regular
Forum Regular

Joined: Wed May 12, 2010 5:40 pm
Posts: 137
..... plesk admin should be as user...

here is a referrence page for setting users:
http://dev.mysql.com/doc/refman/5.0/en/ ... leges.html

run this command to optimize databases, and it will only work if plesk admin is the user...which is what you want...if it doesn't run, then you have to setup plesk admin as user...

Code:
mysqlcheck -uadmin -p`cat /etc/psa/.psa.shadow` --auto-repair --check --optimize --all-databases


Top
 Profile  
 
 Post subject: Re: Latest MySQL Broke Plesk
Unread postPosted: Thu Sep 02, 2010 12:34 pm 
Offline
Forum User
Forum User

Joined: Wed May 26, 2010 9:04 am
Posts: 25
Kalimari wrote:
Intelehost wrote:
Mysql is running, the databases that were installed and the users that were there prior to the upgrade are functioning fine... I have a lot of database driven websites that all work fine still... the problem is just that plesk is not communicating with the database server and I cannot add new database users... it will let me add databases... just not users... kind of odd... is there a plesk update that may fix this?

Not sure about the possibility of rolling back, it sounds like user privileges are messed up. The 'mysql_upgrade' command should ensure GLOBAL PRIVILEGES are set correctly for admin (under plesk) or root, but to double check:
Code:
mysql -uadmin -p`cat /etc/psa/.psa.shadow`
mysql> SELECT * FROM mysql.user WHERE User='admin';

If you see Y for all privileges, try flushing them:
Code:
mysql> FLUSH PRIVILEGES;

If you see an N, reset admin privileges (ensure you copy/paste the following mysql command as a single line, otherwise you'll revoke privileges and may not be able to grant them after):
Code:
mysql> REVOKE ALL PRIVILEGES ON *.* FROM 'admin'@'localhost'; GRANT ALL PRIVILEGES ON *.* TO 'admin'@'localhost' WITH GRANT OPTION MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0; FLUSH PRIVILEGES;

If you are uncertain (or curious) of these commands, read up first and be clear on what you are doing. Start here: http://dev.mysql.com/doc/refman/5.0/en/grant.html

Good luck.




Ya I tried running some of these commands and just keep getting syntax errors... I tried reading up on the link you included as well and to be honest its over my head I don't quite understand it.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic Share/Bookmark  [ 28 posts ]  Go to page 1, 2  Next

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 3 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