mysql daemon won't start on boot
The last message I get when I boot my computer is this
Code:
Hangover login: STOPPING server from pid file /var/run/mysql/mysql.pid 090102 13:25:54 mysqld ended |
Quote:
|
chmod -x /etc/rc.d/rc.mysqld
typed as root will prevent mysql to start at boot. |
Quote:
|
Quote:
If you decide to use mysql you will also need to initialize the database and create a user for it so you will not get the startup failures as in your first post. See the distribution docs, very easy, or just post back here and we will point you to it. |
As root:
sh /etc/rc.d/rc.mysqld start The file don't need to be executable for that. When you are done, don't forget to type: sh /etc/rc.d/rc.mysqld stop as the MySQL daemon won't be automatically stopped when you shutdown or reboot your system, if the file is not executable. |
I'm afraid the above answers are a bit wrong. By default Slackware does not create the initial tables needed to start mysql. If you read the contents of the rc.mysqld script, they will tell you what has to be done to create the initial tables.
|
Quote:
Quote:
|
Ok so it's just that mysql isn't properly configured to run right now, that all I needed to know, I'll try to find out what I have to do... But I didn't know mysql needed some tables to run, in what database? Anyway I'll search but if you have an awnser don't hesitate.
Thanks. |
got it. Thanks guys.
|
Quote:
Code:
# Before you can run MySQL, you must have a database. To install an initial useradd -s /bin/false -c 'system user for mysql 5' mysql If you want to know more see /usr/doc/mysql-5.0.51b/Docs/INSTALL-BINARY (this from SW 12.1, adjust for 12.1). That is from the mysql distribution itself, but it will tell you what is actually happening with the mysql_install_db script. After you have run mysql_install_db you can start and stop mysql server with... /etc/rc.d/rc.mysqld start /etc/rc.d/rc.mysqld stop ...and set it to be executable to automatically start at boot. Good luck! [EDIT]You beat me to it! Glad you got it working![/EDIT] |
Yeah I actually ran just mysql_install_db then it wasn't working I had to chown in to the mysql user to make it work.. but now it does. Thanks for your help and your links are very useful.
|
Excellent!
Glad you got it going and thanks for letting us know - enjoy! |
All times are GMT -5. The time now is 07:48 PM. |