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
mysql troubles
Re: mysql troubles
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?
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?
-
- Retired Moderator
- Posts: 18276
- Joined: 2006/12/13 20:15:34
- Location: Tidewater, Virginia, North America
- Contact:
mysql troubles
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.