mySQL Problem...
I tried installing the mySQL Binary on Slackware 10.2 (w/ fluxbox if that matters).. I just downloaded it, tar -xzf'ed it, then ./configure;make;make installed it... I thought that would be all I needed, but whenever I try to start up the daemon, I get this error:
Code:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) I can't find it =| |
i just searched LQ for that exact error message, and got 70 exact identical questions... you might like to try that next time. the answer to all those threads... start the mysql service. all you'd doing is starting the client, not the daemon.
|
Wait, I got it, and now i'm running the mysqld, but whenever I do I get this problem:
Code:
bash-3.00$ ./rc.mysqld start |
Does the file have executable permission? If not do chmod +x /etc/rc.d/rc.mysqld and try again.
|
The directory is odd (but then, I haven't tried 11 yet). And is the
script actually set to executable? :} [edit]Heh, too slow[/edit] Cheers, Tink |
Yes it is. New issue. Sorry bout the confusion, Thank you all for your help.
It's 10.2 by the way. I have 11 on DVD and this damn lappy doesn't have a DVD drive ;) |
Wait, I don't think I even have a mysql.pid... what's going on... =|
|
Bump! HELP ME! =|
Please. |
No bumping 'til 24 hours are up. Read the rules
And no, if you didn't start the mysqld you wouldn't have a pid. And you haven't answered btmillers question. Cheers, Tink |
Quote:
This is the error now: Starting mysqld daemon with databases from /var/lib/mysql STOPPING server from pid file /var/run/mysql/mysql.pid 061110 11:18:32 mysqld ended I cd'ed to /var/run/mysql/ and the directory was empty... Sorry about that, I didn't mean to annoy anyone by prematurely bumping, I just need to set up mySQL in a hurry, knaamean? |
I think you forget to create the initial database. Have a look in /etc/rc.mysqld, the command is mentioned there (something like mysql_installdb or so).
|
I did, I ran the commands in the rc.mysqld file a while back. Created a password for the mysql user and everything.. I've done everything it says to do in the files, but I still get that error.
mysql@rawrcore:~$ Starting mysqld daemon with databases from /var/lib/mysql STOPPING server from pid file /var/run/mysql/mysql.pid 061111 15:40:32 mysqld ended |
Quote:
|
So you installed MySQL from source and not the slackware package?
Cheers, Tink |
Quote:
Just to clarify the PID issue: the Process ID (PID) of many services/daemons are stored in files in /var/run when the service is started. This makes it very easy to: 1. stop the service (just executes a "kill" or "killall" on the stored PID) 2. check if the service is still running (by checking if the PID file exists or not). So, when you start mysqld, it'll create the PID file in /var/run. In your case, mysqld then stopped immediately and erased the PID file (because the Process ID stored inside it is no longer valid). Anyways, it seems that mysqld is starting allright, so no execution permission issue. It just immediately stops, probably caused by an error or something. Maybe you can check out the MySql log files (if you don't know where they're stored, search in /var/log or on the MySql website). It should give you some indication why mysqld fails to start. |
All times are GMT -5. The time now is 03:30 AM. |