try: #chown -R mysql:mysql /var/lib/mysql[root@localhost beinan]# /etc/init.d/mysqld start 启动 MySQL: [ 确定 ] [root@localhost lib]# mysqladmin -uroot password '123456' [root@localhost lib]# mysql -uroot -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 3 to server version: 4.1.11Type 'help;' or '\h' for help. Type '\c' to clear the buffer
klan 的方法可以启动mysql4 mysql5的启动 =============== [root@localhost ~]# mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql=========== 然后新开一个命令行[root@localhost ~]# mysql -uroot -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1 to server version: 5.0.27Type 'help;' or '\h' for help. Type '\c' to clear the buffer.mysql>======================= 关闭命令 [root@localhost ~]# mysqladmin shutdown -uroot -p Enter password: [root@localhost ~]#
#chown -R mysql:mysql /var/lib/mysql[root@localhost beinan]# /etc/init.d/mysqld start
启动 MySQL: [ 确定 ]
[root@localhost lib]# mysqladmin -uroot password '123456'
[root@localhost lib]# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3 to server version: 4.1.11Type 'help;' or '\h' for help. Type '\c' to clear the buffer
mysql5的启动
===============
[root@localhost ~]# mysqld_safe
Starting mysqld daemon with databases from /var/lib/mysql===========
然后新开一个命令行[root@localhost ~]# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1 to server version: 5.0.27Type 'help;' or '\h' for help. Type '\c' to clear the buffer.mysql>=======================
关闭命令
[root@localhost ~]# mysqladmin shutdown -uroot -p
Enter password:
[root@localhost ~]#