
11-26-2004, 03:11 AM
|
|
Web Hosting Master
|
|
Join Date: Jul 2004
Posts: 928
|
|
MySQL said: Documentation
Just installed fedora core 3, started apache, and mysql, uploaded phpmyadmin, and i get this,
Quote:
MySQL said: Documentation
#2002 - Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13)
|
How do i fix this problem?...Rebooting?... How to fix it?
|

11-26-2004, 03:30 AM
|
|
Web Hosting Master
|
|
Join Date: Jan 2004
Location: /home/dislexik
Posts: 820
|
|
Hi, I read that you need to do:
chown -R mysql /var/lib/mysql/*
chgrp daemon /var/lib/mysql/*
Give it a try see if it works.
dislexiK
__________________
"You don’t learn to hack, you hack to learn"
|

11-26-2004, 03:37 AM
|
|
Web Hosting Master
|
|
Join Date: Jan 2004
Location: /home/dislexik
Posts: 820
|
|
Also, check to see if you have: mysql.sock in /var/lib/mysql or somewhere else, IIRC if it is in a different place you need to create a symlink to it or change the properties in MySQL config or something alike - don't take my word for it, I have not even installed MySQL, just going off what I have read.
DislexiK
__________________
"You don’t learn to hack, you hack to learn"
|

11-26-2004, 12:02 PM
|
|
Web Hosting Master
|
|
Join Date: Jul 2004
Posts: 928
|
|
Edited:
I just logged in as root, checked, there is a mysql.sock in /var/lib/mysql/mysql.sock
What could be the problem, mysql starts ok...? Maybe a bug in fedora core 3? If so i guess id have to report that to them?...  so they can make it better 
Last edited by Criminal#58369; 11-26-2004 at 12:13 PM.
|

11-26-2004, 12:26 PM
|
|
Web Hosting Master
|
|
Join Date: Jul 2004
Posts: 928
|
|
In my.cnf in /etc/ i have the following in the file:
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
[mysql.server]
user=mysql
basedir=/var/lib
[safe_mysqld]
err-log=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
That looks right to me...
Is there anything i should add, or files to check?
|

11-26-2004, 12:34 PM
|
|
Web Hosting Master
|
|
Join Date: Jan 2004
Location: /home/dislexik
Posts: 820
|
|
Have you done:
chown -R mysql /var/lib/mysql/*
chgrp daemon /var/lib/mysql/*
DislexiK
__________________
"You don’t learn to hack, you hack to learn"
|

11-26-2004, 12:52 PM
|
|
Web Hosting Master
|
|
Join Date: Jul 2004
Posts: 928
|
|
Yes the funny thing is though, the mysql.sock does not have anything in it...?.. I dont get it..
|

11-26-2004, 03:30 PM
|
|
Web Hosting Master
|
|
Join Date: Jul 2004
Posts: 928
|
|
Heres what i get when i check it:
[root@localhost ~]# rpm -qa | grep mysql
mod_auth_mysql-20030510-5
mysql-devel-3.23.58-13
freeradius-mysql-1.0.1-1
libdbi-dbd-mysql-0.6.5-9
gda-mysql-1.0.4-3
mysql-3.23.58-13
mysql-server-3.23.58-13
php-mysql-4.3.9-3
mysql-bench-3.23.58-13
[root@localhost ~]#
Maybe i should install an up-to-date version of mysql? like version 4?
|

11-26-2004, 04:54 PM
|
|
Web Hosting Master
|
|
Join Date: Jan 2004
Location: /home/dislexik
Posts: 820
|
|
ITs always a good idea to update your services, and it is even better to compile them
DislexiK
__________________
"You don’t learn to hack, you hack to learn"
|

11-26-2004, 05:54 PM
|
|
Web Hosting Master
|
|
Join Date: Jul 2003
Location: Nothing but, net
Posts: 2,062
|
|
You can fix it by not running a developer preview OS on a server.
See http://www.centos.org/ for a better server operating system. 
|

11-26-2004, 06:42 PM
|
|
Web Hosting Master
|
|
Join Date: Jul 2004
Posts: 928
|
|
But i like fedora  lol
|

11-27-2004, 03:38 AM
|
|
Community Guide
|
|
Join Date: Jul 2003
Location: Kuwait
Posts: 5,100
|
|
Get a decent server OS. Like FreeBSD or RHE. Gentoo is good too, but its really optimized for the desktop.
Updating MySQL would be a step in the right direction.
__________________
In order to understand recursion, one must first understand recursion.
If you feel like it, you can read my blog
Signal > Noise
|

11-27-2004, 05:54 AM
|
|
Newbie
|
|
Join Date: Nov 2004
Posts: 5
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
| Postbit Selector |
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|
| Login: |
|
|
| Advertisement: |
|
|
| Web Hosting News: |
|
|
|