Stop Microsoft

Operating Systems => Linux and UNIX => Topic started by: KernelPanic on 24 September 2002, 02:09

Title: mysql
Post by: KernelPanic on 24 September 2002, 02:09
what is the slackware equivalent of
chkconfig mysqld on
in redhat?
Title: mysql
Post by: Master of Reality on 24 September 2002, 02:12
my Q is related.
how do i set mysqld to run at startup in slackware.

Currently when i type 'safe_mysql' it says(or something similar):
starting mysqld daemon in /var/lib/mysql  
mysql end

this is on slackware, how am i supposed to get my sql started.

[ September 23, 2002: Message edited by: The Master of Reality / Bob ]

Title: mysql
Post by: KernelPanic on 24 September 2002, 20:13
My problem was, that I forgot I was using slackware. I assumed things had been done for me, but essentially mySQl had only really been compiled.

Here is how I sorted it, for those who care:

located mysql_install_db and ran it

# chown -R root /usr/share/mysql
# chown -R mysql /var/lib/mysql
# chgrp -R mysql /usr/share/mysql

# safe_mysqld --user=mysql &

After that I set my root password and made a user and made my database and all that malarkey...
Title: mysql
Post by: Master of Reality on 24 September 2002, 20:36
was mysql installed afterwards or with the Slackware installation?
Title: mysql
Post by: voidmain on 24 September 2002, 20:46
To start MySQL automatically at system startup you will likely need to add it to the appropriate RC file...
Title: mysql
Post by: Master of Reality on 24 September 2002, 20:47
doing that stuff didnt help my mysql
Title: mysql
Post by: Master of Reality on 24 September 2002, 20:59
i fixed it.
Title: mysql
Post by: voidmain on 24 September 2002, 20:59
If nothing else, try getting the latest MySQL source and following the included directions which should look similar to this:

http://www.linuxplanet.com/linuxplanet/tutorials/1224/3/ (http://www.linuxplanet.com/linuxplanet/tutorials/1224/3/)
Title: mysql
Post by: Master of Reality on 24 September 2002, 20:59
you posted a tad late.
Title: mysql
Post by: voidmain on 24 September 2002, 21:00
I noticed.
Title: mysql
Post by: KernelPanic on 24 September 2002, 21:17
quote:
Originally posted by The Master of Reality / Bob:
i fixed it.


Correction Tux fixed it  (http://smile.gif)