Results 1 to 4 of 4
Can't connect to local mysql server through socket '/var/lib/mysql/mysql.sock' (2)
This is what the shell says when i type 'mysql'. Any suggestions on how to make it work
thanks for ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 12-18-2003 #1Just Joined!
- Join Date
- Dec 2003
- Posts
- 6
mysql.....again
Can't connect to local mysql server through socket '/var/lib/mysql/mysql.sock' (2)
This is what the shell says when i type 'mysql'. Any suggestions on how to make it work
thanks for any help
Tyrone
- 12-18-2003 #2Linux Guru
- Join Date
- Apr 2003
- Location
- London, UK
- Posts
- 3,284
is the mysql server started?
try:
If you dont get any output, then its not started.Code:netstat -ant | grep :3306
cd to the directory where you installed mysql, then run as root:
or it may be (i cannot remember):Code:./bin/safe_mysqld --user=mysql
If you used an RPM to install it, then the chances are that it is not installed anywhere inparticular (thanks redhat!), so just run safe_mysqld or mysqld_safe (i cannot remember).Code:./bin/mysqld_safe --user=mysql
Jason
Jason
- 12-18-2003 #3Linux Engineer
- Join Date
- Jul 2003
- Location
- Farnborough, UK
- Posts
- 1,305
As root type
service mysqld start
hth
- 12-19-2003 #4Linux Engineer
- Join Date
- Apr 2003
- Location
- Sweden
- Posts
- 796
Check if your mysql-processes are up and running...
If so verify if mysql have binded a socket withCode:ps -efl | grep mysql
If you dont get any hits on thoose 2 commands something is wrong with mysql, have you verifed that its installed and are attempt to start??Code:netstat -anp |grep LIST |grep mysql


Reply With Quote
