Best method to start, restart, the server is with the service command: service mysql start service mysql stop service mysql restart
Of course, this assumes that you have it configured in the init.d, which is something mysql installation normally does itself (at least with the rpm). These commands use safe_msyqld (mysqld_safe) to start the server. So you from the commandline you can best use mysqld_safe to start (under normal circumstances). Cheers /rudy Ps: there is no linux 8.0 :) think you mean RH 8.0 -----Original Message----- From: Eternal Designs, Inc [mailto:[EMAIL PROTECTED] Sent: dinsdag 15 juli 2003 4:17 Cc: [EMAIL PROTECTED] Subject: Re: !!! NEWBIW !!! how to start? !!! NEWBIE !!! William R. Mussatto wrote: >>Hello everyone, >> >>Im extremaly newbie with using MySQL under Linux. >>Im using: mysql Ver 11.18 Distrib 3.23.51, for slackware-linux-gnu >>(i386) - ( btw - should i uprgade this or its enough to learn ? ) >> >> >>My question is: >> >>How to start mysql deamon? >>When i type: mysqld >> then apear: >>ERROR 2002: Can't connect to local MySQL server through socket >>'/var/run/mysql/mysql.sock' (2) >> >>Whats wrong? >>Its a default installation >> >>I have a little experience with MySQL under MS Windows ( run mysqld then >>open MySQLadmin and thats it ), but i wish to use database under >>Linux. >> >>If any one can help then o would be in debt forever. >> >>-- >>Best regards, >> mailto:[EMAIL PROTECTED] >> >> >Did you try typing 'ps aux | grep mysqld' ? You should get three lines >(plus sometimes the grep line) if the server is running. >Normally you will start a safe_mysqld rather than mysqld >Alternatively you would start it with mysqladmin > >William R. Mussatto, Senior Systems Engineer >Ph. 909-920-9154 ext. 27 >FAX. 909-608-7061 > > > > > I believe William is right. I have had the same error more than twice and this is what I did to solve it - I just can't explain why. My Linux 8.0 comes with X Window System and I use the GNOME desktop. Main Menu | Server Settings (I thing - cause I am now in Windows) | Services Then I scrolled down and put a check mark on mysql and then updated I then scrolled down to xinetd, highlighted it and then click Restart on the Services Toolbar. When I went back to the command line, I was able to launch mysql. Hope this helps!! -- Peter K. Aganyo Eternal Designs Inc., +1(617)344-8023 (fax & voicemail) -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]