mysql troubles

Issues related to applications and software problems
Post Reply
JerrePip
Posts: 6
Joined: 2011/09/17 09:18:47

mysql troubles

Post by JerrePip » 2011/09/22 08:31:00

Hey I just installed mysql-server with yum but when i try to run "mysqld start" i get
"/etc/init.d/mysqld: line 16: /etc/sysconfig/network: No such file or directory"

and when trying to run "mysql" i get
"ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)"

can anyone explain to me how to create this socket or what i did wrong?

regards

JerrePip
Posts: 6
Joined: 2011/09/17 09:18:47

Re: mysql troubles

Post by JerrePip » 2011/09/22 09:31:47

after a lot more reading i found a solution that works for me
open a terminal and type

nano /etc/sysconfig/network

HOSTNAME=internal.hostname.DOMAIN.com

close and save

is this a correct way to do it or did i do something wrong?

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

mysql troubles

Post by pschaff » 2011/09/25 13:03:16

You have not provided enough information to know with any certainty, but it appears your system was not configured correctly at installation. The setup process should have created /etc/sysconfig/network. I don't quite understand how you could install with yum without a network, unless using [c5-media]. If more help is needed then please [url=http://www.centos.org/modules/newbb/viewtopic.php?topic_id=28723&forum=54]provide more information about your system[/url] by running "./getinfo.sh" and showing us the output file, and more details about how you installed.

Post Reply