-   Slackware (
-   -   cannot start mysqld? (

michaelinux 12-18-2010 09:40 AM

cannot start mysqld?
everytime i try to start mysqld this happens:

root@Slackstigma:/etc/rc.d# ./rc.mysqld start
root@Slackstigma:/etc/rc.d# 101218 09:35:25 mysqld_safe Logging to '/var/lib/mysql/Slackstigma.err'.
101218 09:35:25 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
101218 09:35:26 mysqld_safe mysqld from pid file /var/run/mysql/ ended

and then it just stays there, nothing happens.. what should i do?

willysr 12-18-2010 09:44 AM

read the commented information in /etc/rc.d/rc.mysqld
it's written clearly how to work with MySQL in Slackware :)

# To start MySQL automatically at boot, be sure this script is executable:
# chmod 755 /etc/rc.d/rc.mysqld

# Before you can run MySQL, you must have a database. To install an initial
# database, do this as root:
# mysql_install_db --user=mysql
# Note that the mysql user must exist in /etc/passwd, and the created files
# will be owned by this dedicated user. This is important, or else mysql
# (which runs as user "mysql") will not be able to write to the database
# later (this can be fixed with 'chown -R mysql.mysql /var/lib/mysql').

lumak 12-18-2010 10:27 AM

Seriously... I think the only way Pat can make that more visible is to check the exit code of starting the daemon and output that message to the user.

boomhower182 03-24-2014 02:01 PM

I have the same issue and yes I have ran 'mysql_install_db --user=mysql' in fact it was starting after my fresh install and the only thing that has been changed was my httpd.conf.

All times are GMT -5. The time now is 04:28 PM.