#1 (permalink)  
Old 06-18-2009, 09:28 AM
Registered User
 
Join Date: Jul 2002
Posts: 366
shann
upgrade from 5.0.45-community MySQL to 5.0.77-community MySQL

Hello guys,

Our old server is running with 5.0.45 and new server is with 5.0.77 and we transferred few sites to new server and we are getting database error. Can we upgrade from 5.0.45 to 5.0.77 using whm or cpanel script?

Thanks in advance.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-18-2009, 09:49 AM
cpanelkenneth's Avatar
cPanel Quality Assurance
 
Join Date: Apr 2006
Posts: 3,222
cpanelkenneth is on a distinguished road
Quote:
Originally Posted by shann View Post
Hello guys,

Our old server is running with 5.0.45 and new server is with 5.0.77 and we transferred few sites to new server and we are getting database error. Can we upgrade from 5.0.45 to 5.0.77 using whm or cpanel script?

Thanks in advance.
It sounds like your MySQL updates are disabled. MySQL 5.0.77 has been available in all branches since June 2, 2009 Try executing /scripts/mysqlup directly via the command line.
__________________
cPanel Kenneth
cPanel QA
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 06-18-2009, 10:00 AM
Registered User
 
Join Date: Jul 2002
Posts: 366
shann
Thanks a lot Kenneth, but it is not helping, how do I verify that mysql update is disabled or not?

root@server[~]# /scripts/mysqlup
MySQL Setup Script Version 7.0
Fetching http://httpupdate.cpanel.net/mysqlin...E/cPpkgversion (0)....@209.188.92.54......connected......receivin g...100%......Done
Loaded cPPkgs::MySQL ok!
Install Complete
root@server [~]# mysql -v
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 15053353
Server version: 5.0.45-community MySQL Community Edition (GPL)

Reading history-file /root/.mysql_history
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 06-18-2009, 10:01 AM
cpanelkenneth's Avatar
cPanel Quality Assurance
 
Join Date: Apr 2006
Posts: 3,222
cpanelkenneth is on a distinguished road
Are you using FreeBSD or Linux?
__________________
cPanel Kenneth
cPanel QA
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 06-18-2009, 10:10 AM
Registered User
 
Join Date: Jul 2002
Posts: 366
shann
Linux and updated now, but not starting mysql.

Installing /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/DBD/mysql/mysql.so
Appending installation info to /usr/lib/perl5/5.8.8/i386-linux-thread-multi/perllocal.pod
CAPTTOFU/DBD-mysql-4.011.tar.gz
/usr/bin/make install UNINST=1 -- OK
perlmod--Install done
/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/var/lib/mysql/mysql.sock' exists!
Unable to reset root MySQL password. at /scripts/securemysql line 154.
Install Complete
root@server [/scripts]# mysql -v
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
root@server [/scripts]# /etc/init.d/mysql restart
ERROR! MySQL manager or server PID file could not be found!
Starting MySQL. ERROR! Manager of pid-file quit without updating file.
root@server [/scripts]#
root@server [/scripts]#
root@server [/scripts]# mysql -v
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
root@server [/scripts]# ps -ef | grep -i mysql
root 30900 8195 0 09:06 pts/0 00:00:00 grep -i mysql
root@server [/scripts]# /etc/init.d/mysql restart
ERROR! MySQL manager or server PID file could not be found!
Starting MySQL. ERROR! Manager of pid-file quit without updating file.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 06-18-2009, 10:18 AM
cpanelkenneth's Avatar
cPanel Quality Assurance
 
Join Date: Apr 2006
Posts: 3,222
cpanelkenneth is on a distinguished road
Quote:
Originally Posted by shann View Post
Linux and updated now, but not starting mysql.

Installing /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/DBD/mysql/mysql.so
Appending installation info to /usr/lib/perl5/5.8.8/i386-linux-thread-multi/perllocal.pod
CAPTTOFU/DBD-mysql-4.011.tar.gz
/usr/bin/make install UNINST=1 -- OK
perlmod--Install done
/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/var/lib/mysql/mysql.sock' exists!
Unable to reset root MySQL password. at /scripts/securemysql line 154.
Install Complete
root@server [/scripts]# mysql -v
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
root@server [/scripts]# /etc/init.d/mysql restart
ERROR! MySQL manager or server PID file could not be found!
Starting MySQL. ERROR! Manager of pid-file quit without updating file.
root@server [/scripts]#
root@server [/scripts]#
root@server [/scripts]# mysql -v
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
root@server [/scripts]# ps -ef | grep -i mysql
root 30900 8195 0 09:06 pts/0 00:00:00 grep -i mysql
root@server [/scripts]# /etc/init.d/mysql restart
ERROR! MySQL manager or server PID file could not be found!
Starting MySQL. ERROR! Manager of pid-file quit without updating file.
At this point I recommend opening a support ticket ASAP with our tech support analysts: https://tickets.cpanel.net/submit/in...eqtype=tickets

A few things to investigate:

1) Is there only one version of MySQL installed? On the command line, execute 'rpm -qa | grep -i mysql' It should give output like:

Code:
root@pxe [~/traces]# rpm -qa | grep -i mysql
MySQL-devel-5.0.77-0.glibc23
MySQL-shared-5.0.77-0.glibc23
MySQL-client-5.0.77-0.glibc23
MySQL-server-5.0.77-0.glibc23
MySQL-bench-5.0.77-0.glibc23
If there are multiple versions of any of the RPMs, remove the non 5.0.77 version.

2) Make a copy of /etc/my.cnf and /root/.my.cnf, move them out of the way, then attempt restarting MySQL

Code:
# mv /etc/my.cnf /etc/my.cnf.backup
# mv /root/.my.cnf /root/.my.cnf.backup
# /scripts/restartsrv_mysql
__________________
cPanel Kenneth
cPanel QA
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 06-18-2009, 10:28 AM
Registered User
 
Join Date: Jul 2002
Posts: 366
shann
Kenneth, thanks a lot. I didn't find any other version, but getting this message when I start

/scripts/restartsrv_mysql

Failed to locate MySQL socket. Please check the mysql configuration
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 06-18-2009, 11:00 AM
cpanelkenneth's Avatar
cPanel Quality Assurance
 
Join Date: Apr 2006
Posts: 3,222
cpanelkenneth is on a distinguished road
Please open a support request at https://tickets.cpanel.net/submit/in...eqtype=tickets
__________________
cPanel Kenneth
cPanel QA
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 06-18-2009, 11:32 AM
Registered User
 
Join Date: Jul 2002
Posts: 366
shann
Thank you. Also, /var/lib/mysql/mysql.sock- file is missing. Would it causing the problem?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 08-08-2009, 11:08 AM
Registered User
 
Join Date: Oct 2004
Posts: 23
sunyl is on a distinguished road
Hi Kenneth..

whats the solution for this problem.

-root# rpm -qa | grep -i mysql
MySQL-server-5.0.81-0.glibc23
MySQL-devel-5.0.81-0.glibc23
MySQL-bench-5.0.81-0.glibc23
MySQL-client-5.0.81-0.glibc23
MySQL-shared-5.0.81-0.glibc23
-root#
-root# service mysql stop
ERROR! MySQL manager or server PID file could not be found!
-root# service mysql start
Starting MySQL. ERROR! Manager of pid-file quit without updating file.
-root# /scripts/restartsrv_mysql
Failed to locate MySQL socket. Please check the mysql configuration.
-root#
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #11 (permalink)  
Old 08-10-2009, 10:02 AM
cpanelkenneth's Avatar
cPanel Quality Assurance
 
Join Date: Apr 2006
Posts: 3,222
cpanelkenneth is on a distinguished road
Quote:
Originally Posted by sunyl View Post
Hi Kenneth..

whats the solution for this problem.

-root# rpm -qa | grep -i mysql
MySQL-server-5.0.81-0.glibc23
MySQL-devel-5.0.81-0.glibc23
MySQL-bench-5.0.81-0.glibc23
MySQL-client-5.0.81-0.glibc23
MySQL-shared-5.0.81-0.glibc23
-root#
-root# service mysql stop
ERROR! MySQL manager or server PID file could not be found!
-root# service mysql start
Starting MySQL. ERROR! Manager of pid-file quit without updating file.
-root# /scripts/restartsrv_mysql
Failed to locate MySQL socket. Please check the mysql configuration.
-root#
try some of the suggestions I offered earlier. If they don't work please open a support ticket at https://tickets.cpanel.net/submit/
__________________
cPanel Kenneth
cPanel QA
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to open the community love_disease cPanel and WHM Discussions 4 03-21-2008 10:18 AM
Bug in Mysql 5.0.51a-community? (Wordpress: posts in reverse order) rzderich cPanel and WHM Discussions 6 02-28-2008 12:44 PM
Control Panel Community abusedreality cPanel and WHM Discussions 0 08-02-2003 02:07 PM


All times are GMT -5. The time now is 02:33 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc