mysql server side help

skeletal29

Senior member
Oct 2, 2001
274
0
0
I am trying to install mysql on my sever and i installed the rpm with out any erros and now when i try to run mysql i get a error.

[root@dhcppc3 root]# mysql
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/m
ysql.sock' (2)

Any one wanna help?

(im running apache as webserver and its Running redhat 7.2)
 

RSMemphis

Golden Member
Oct 6, 2001
1,521
0
0
Try "mysql -h=127.0.0.1"

If that fails, either mysqld is not running (check with ps -ax or whatever it is called over on the linux side) or it is not running on the default port.
Otherwise, mysqld is just not configured to use local sockets like this - or looks in a different directory...

Honestly, I think your mysqld server is not running.
 

skeletal29

Senior member
Oct 2, 2001
274
0
0
im a total newbie to this mysql thing...I need it now on my php site for some scrips so here i am...


[root@dhcppc3 root]# mysql -h=127.0.0.1
ERROR 2005: Unknown MySQL Server Host '=127.0.0.1' (2)
[root@dhcppc3 root]# mysql -h=192.168.0.4
ERROR 2005: Unknown MySQL Server Host '=192.168.0.4' (2)
[root@dhcppc3 root]# ps -aux | grep mysqld
root 1931 0.0 0.2 1728 584 pts/1 R 16:05 0:00 grep mysqld
[root@dhcppc3 root]# ps -aux | grep mysql
root 1933 0.0 0.2 1728 592 pts/1 S 16:05 0:00 grep mysql
[root@dhcppc3 root]#
 

skeletal29

Senior member
Oct 2, 2001
274
0
0
im a total newbie to this mysql thing...I need it now on my php site for some scrips so here i am...


[root@dhcppc3 root]# mysql -h=127.0.0.1
ERROR 2005: Unknown MySQL Server Host '=127.0.0.1' (2)
[root@dhcppc3 root]# mysql -h=192.168.0.4
ERROR 2005: Unknown MySQL Server Host '=192.168.0.4' (2)
[root@dhcppc3 root]# ps -aux | grep mysqld
root 1931 0.0 0.2 1728 584 pts/1 R 16:05 0:00 grep mysqld
[root@dhcppc3 root]# ps -aux | grep mysql
root 1933 0.0 0.2 1728 592 pts/1 S 16:05 0:00 grep mysql
[root@dhcppc3 root]#
 

RSMemphis

Golden Member
Oct 6, 2001
1,521
0
0
Hmm, apparently your mysql does not have the equation sign.

try -h 127.0.0.1

But then, the second part actually answers it all: there is no mysql server running...
Check to make sure it is all installed - sorry, I have limited knowledge of Linux, so for more exhausting help, maybe someone else will come along.