|
|

楼主 |
发表于 2004-9-18 13:12:40
|
显示全部楼层
ok
/***************************************
[root@mylinux root]# mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 7 to server version: 5.0.1-alpha-standard
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> use mysql;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> update user set password=PASSWORD('mypassword') where user='root';
Query OK, 2 rows affected (0.00 sec)
Rows matched: 2 Changed: 2 Warnings: 0
mysql> exit
Bye
[root@mylinux root]# service mysql restart
Killing mysqld with pid 2932
Wait for mysqld to exit. done
[root@mylinux root]# mysql -h localhost -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1 to server version: 5.0.1-alpha-standard
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> show databases;
+----------+
| Database |
+----------+
| mysql |
| smartipb |
| test |
+----------+
3 rows in set (0.00 sec)
mysql>
/*********************************************** |
|