Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Upgrade socket problem

Status
Not open for further replies.

Amei

Technical User
Jun 25, 2004
15
US
I just upgraded from 3.23 to 4.0. Downloaded mysql-server-4.0.20-0.i386, MySQL-shared-4.0.20-0.i386.rpm and MySQL-client-4.0.20-0.i386.rpm. then I did:
rpm -Uvh MySQL-server-4.0.20-0.i386.rpm
rpm -Uvh MySQL-shared-4.0.20-0.i386.rpm
rpm -Uvh MySQL-client-4.0.20-0.i386.rpm
then i manually killed the mysql process and did shell> /etc/init.d/mysql start
When I do shell> mysqladmin version gives me an error message: 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!
and I checked, in init.d directory, mysql exists, but not mysqld. and the mysql.sock doesn't exist either in mysql directory.
But when I type shell> mysqlshow --help it tells me that Ver 9.4 Distrib 4.0.20, for pc-linux (i686) and when i check if i have the package installed, i did: shell> rpm -q mysql, it says: package mysql is not installed.

I am running RedHat Fedora Core 2. The 3.23 version of mysql comes with it.

Please help!
 
rpm -q mysql" isn't going to help you, because you don't have a package named "mysql" installed. You have packages named "mysql-server", etc, installed. Try "mysql -qa | grep mysql" instead.





Want the best answers? Ask the best questions!

TANSTAAFL!!
 
after I typed "mysql -qa | grep mysql" it gives me this "mysql: unknown option '-a'
 
I just downloaded the 4.0 standard mysql-standard-4.0.20-pc-linux-i686.tar.gz and installed it, still having the socket problem. but this time what i type "rpm -g mysql" it shows "RPM version 4.3.1" then i started "/etc/init.d/mysql start" then "mysqladmin version" same error as before, want me to check to see if mysql.sock exists.
 
When I installed RedHat, I picked MySQL server and all the related programs.

Should I just go back to version 3.23? It was working. :)

But problem is I dont know how to go back, or how to uninstall it in Linux. I am a newbie. :(
 
typed: "rpm -qa | grep mysql"
got: "mod_auth_mysql-20030510-4.1
php-mysql-4.3.4-11"

Should it automatically creat the mysql.sok when i start the server? Is this what you type to start the server"/etc/init.d/mysql start"?

If I can't fix this problem, how do I uninstall or go back to version 3.23?

Thank you for your quick reply!
 
I'm concerned about the fact that no other MySQL packages are listed on your system.

Didn't you just install 3 MySQL 4.0.x packages?



Want the best answers? Ask the best questions!

TANSTAAFL!!
 
I know I install server, client, and one another one.

Typed: "rpm -qa | grep -i mysql"
Got: "perl-DBD-MySQL-2.9003-4
MySQL-shared-4.0.20-0
MySQL-server-4.0.20-0
mod_auth_mysql-20030510-4.1
MySQL-client-4.0.20-0
php-mysql-4.3.4-11"

Did I install too many of them? if so, what do I do next?
 
mysql.com download links. downloaded from Univercity of Wissconsin's FTP server.
 
Do I need to run the mysql_install_db script?
I am reading some other posts, trying to see if other people having same problem.

Did I do something wrong when I upgraded it?

In the mysqld.log file, it shows that when I run one of the updates, the client one i beleive, gives me a warning:
040625 14:11:08 Asked for 196608 thread stack, but got 126976
Fatal erros: Can't change to run as user 'mysql' ; Please check that the user exists!
040625 14:11:08 Aborting

040625 14:11:08 /usr/sbin/mysqlid: Shutdown Complete
 
user mysql? don't think so. How do i check?

do i need to add group also?
"groupadd mysql"
"useradd -g mysql mysql"
 
When I fist installed RedHat, I didn't do anything other than "/etc/init.d/mysql start", and I didn't get any error message about the socket.
 
How do I check to see if I added user "mysql"?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top