When I start mysqld server (in slackware linux 11), got error as follows:
root@kseeker-lvzg:~# mysqld_safe --user='mysql' &
[1] 10624
root@kseeker-lvzg:~# Starting mysqld daemon with databases from /var/lib/mysql
STOPPING server from pid file /var/lib/mysql/kseeker-lvzg.pid
070129 18:55:45 mysqld ended
oh, you need to su mysql and run mysql_install_db to fix the problem.
root@kseeker-lvzg:~# su mysql
mysql@kseeker-lvzg:/root$ mysql_install_db
Installing all prepared tables
Fill help tables
To start mysqld at boot time you have to copy support-files/mysql.server
to the right place for your system
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h kseeker-lvzg password 'new-password'
See the manual for more instructions.
You can start the MySQL daemon with:
cd /usr ; /usr/bin/mysqld_safe &
You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; perl run-all-tests
Please report any problems with the /usr/bin/mysqlbug script!
The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at http://shop.mysql.com
No comments:
Post a Comment