Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

startup mysql service

Status
Not open for further replies.
Apr 30, 2003
56
US
When I issued mysql -u root -p I got the following error message:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

I checked the system, it's because the mysql serice is not running on the server. Our mysql admin left the company and I am taking over. I have no prior knowledge of mysql what so ever. I am having difficulty to get the service started. I googled online and tried several method, but none of them works.
I tried /etc/init.d mysql start; mysql.server start; service mysqld start. All of them returned command not found or no such directory exist. I am totally clueless at this point. Could anyone shed some light? Thank you very much.
 
your error message indeed confirms the server is not started.

run LOCATE mysql or WHICH mysql to find out where it is installed. i'd then suggest you change directories so you are in the /mysql/bin directory wherever that is located.

are you logged in to your system as root? if so you won't have a permission problem running mysql. if you are logged in as a regular user you may find that mysql is owned by a user called mysql and you may not have permissions to start it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top