A回话;
[root@Slave02 bin]# ./mysqld_safe --skip-grant --user=root&
[1] 5333
[root@Slave02 bin]# 130124 17:58:09 mysqld_safe Logging to '/usr/local/mysql/data/Slave02.err'.
130124 17:58:09 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data
B回话:
[root@Slave02 ~]# cd /usr/local/mysql/bin/
[root@Slave02 bin]# ./mysql -uroot
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.5.13-log Source distribution
Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
然后执行修改即可