No, I had not initialized it and that was part of the problem. I found an error log in /var/lib/mysql and googling the last error before the server shutdown led me to the MySQL forum and it turned out that the solution was:
rm -rf /var/lib/mysql
cd /usr/lib
./mysql_install_db --user=mysql --ldata ...
Search found 3 matches
- 19. Jan 2010, 01:30
- Forum: Problems
- Topic: [Solved] MySQL
- Replies: 9
- Views: 6487
- 18. Jan 2010, 17:56
- Forum: Problems
- Topic: [Solved] MySQL
- Replies: 9
- Views: 6487
Re: MySQL
I've tried both methods and it seems to start and then immediately stop.
root[glen]# chmod +x /etc/rc.d/rc.mysqld
root[glen]# chown -R mysql:mysql /var/lib/mysql
root[glen]# /etc/rc.d/rc.mysqld start
root[glen]# nohup: redirecting stderr to stdout
Starting mysqld daemon with databases from /var ...
root[glen]# chmod +x /etc/rc.d/rc.mysqld
root[glen]# chown -R mysql:mysql /var/lib/mysql
root[glen]# /etc/rc.d/rc.mysqld start
root[glen]# nohup: redirecting stderr to stdout
Starting mysqld daemon with databases from /var ...
- 18. Jan 2010, 15:48
- Forum: Problems
- Topic: [Solved] MySQL
- Replies: 9
- Views: 6487
[Solved] MySQL
Hello All,
I am new to Salix and slackware. I've installed MySQL and checked the box for mysqld in the 'Startup Services' dialog. However, it does not appear to be starting:
glen[~]$ mysql -u root
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock ...
I am new to Salix and slackware. I've installed MySQL and checked the box for mysqld in the 'Startup Services' dialog. However, it does not appear to be starting:
glen[~]$ mysql -u root
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock ...