LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-13-2005, 05:53 PM   #1
t3ch
LQ Newbie
 
Registered: Jun 2005
Location: Denmark
Distribution: Debian 5
Posts: 23

Rep: Reputation: 2
MySQL 4.1 @ FC4 problem


I've installed MySQL 4.1 with Fedora Core4.
Apache2 & PHP5 are installed manual.

When i type # mysql i console, i get this error:

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

The dir '/var/lib/mysql/' is empty..

What can i do to fix it?
 
Old 06-14-2005, 02:59 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Have you tried uninstalling all the mysql packages and then reinstallng mysql and mysql-server.
 
Old 06-14-2005, 10:39 AM   #3
t3ch
LQ Newbie
 
Registered: Jun 2005
Location: Denmark
Distribution: Debian 5
Posts: 23

Original Poster
Rep: Reputation: 2
If i try to uninstall mysql it says:


[root@ ~]# rpm -e mysql
error: Failed dependencies:
libmysqlclient.so.14()(64bit) is needed by (installed) mod_auth_mysql-2.6.1-4.x86_64
libmysqlclient.so.14()(64bit) is needed by (installed) php-mysql-5.0.4-10.x86_64
libmysqlclient.so.14()(64bit) is needed by (installed) perl-DBD-MySQL-2.9007-1.x86_64
libmysqlclient.so.14()(64bit) is needed by (installed) mysql-server-4.1.11-2.x86_64
libmysqlclient_r.so.14()(64bit) is needed by (installed) mysql-server-4.1.11-2.x86_64
libmysqlclient_r.so.14()(64bit) is needed by (installed) MySQL-python-1.2.0-1.x86_64
mysql = 4.1.11-2 is needed by (installed) mysql-devel-4.1.11-2.x86_64
mysql = 4.1.11-2 is needed by (installed) mysql-server-4.1.11-2.x86_64
mysql is needed by (installed) MySQL-python-1.2.0-1.x86_64
 
Old 06-14-2005, 10:43 AM   #4
t3ch
LQ Newbie
 
Registered: Jun 2005
Location: Denmark
Distribution: Debian 5
Posts: 23

Original Poster
Rep: Reputation: 2
If i try to upgrade it says:

[root@ home]# rpm -U MySQL-server-4.1.12-1.glibc23.x86_64.rpm
error: Failed dependencies:
libmysqlclient.so.14()(64bit) is needed by (installed) mod_auth_mysql-2.6.1-4.x86_64
libmysqlclient.so.14()(64bit) is needed by (installed) php-mysql-5.0.4-10.x86_64
libmysqlclient.so.14()(64bit) is needed by (installed) perl-DBD-MySQL-2.9007-1.x86_64
libmysqlclient_r.so.14()(64bit) is needed by (installed) MySQL-python-1.2.0-1.x86_64


I'v chosen all the mysql-packages in the install.. Grr..
I guess i have to find 'libmysqlclient.so.14' and install it.
 
Old 06-14-2005, 04:19 PM   #5
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Like I said in my previous post, uninstall all packages related to mysql and then reinstall using yum e.g. "yum install msql mysql-server".
 
Old 06-14-2005, 05:05 PM   #6
t3ch
LQ Newbie
 
Registered: Jun 2005
Location: Denmark
Distribution: Debian 5
Posts: 23

Original Poster
Rep: Reputation: 2
I have now installed MySQL via. yum.
Hvem i type "mysql" it says:

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

I haven't got a "mysql.sock" on my system... The same problem every time i tro to install MySQL.

If i create a blank file called "mysql.sock" i says same as above, just error code (111)

Last edited by t3ch; 06-14-2005 at 05:07 PM.
 
Old 06-16-2005, 05:07 AM   #7
l.u
LQ Newbie
 
Registered: Jun 2005
Posts: 4

Rep: Reputation: 0
hi,

I am not sure but:

# service mysqld start


because:
# service mysqld start
# ls /var/lib/mysql
ibdata1 ib_logfile0 ib_logfile mysql mysql.sock test

and after stop

# ls /var/lib/mysql
ibdata1 ib_logfile0 ib_logfile mysql test

best regards
lu
 
Old 06-16-2005, 06:42 AM   #8
t3ch
LQ Newbie
 
Registered: Jun 2005
Location: Denmark
Distribution: Debian 5
Posts: 23

Original Poster
Rep: Reputation: 2
Yup.. it worked...
Thanks :-)
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bugzilla - MySQL - perl - DBD::mysql install problem Runningonair Linux - Software 8 10-12-2007 12:42 AM
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. Dannux Linux - Software 3 03-24-2006 08:44 AM
FC4 eMachines ndiswrapper problem (don't think it has anything to do with FC4) unknownmosquito Linux - Laptop and Netbook 2 12-04-2005 11:50 AM
problems installing MySQL & PHP on FC4 alpineedge3 Linux - Newbie 9 07-23-2005 05:00 PM
MySQL server problem after linking (mysql.sock) ewijaya Linux - General 4 01-19-2004 09:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration