D:/MySQL/bin>mysql -u root -p Enter passWord: ******* Welcome to the MySQL monitor. Commands end with ; or /g. Your MySQL connection id is 51 to server version: 4.1.12a-nt
Type 'help;' or '/h' for help. Type '/c' to clear the buffer.
mysql> GRANT ALL PRIVILEGES ON jcc.* TO jcc@localhost IDENTIFIED BY 'jsp.com.cn' WITH GRANT OPTION; Query OK, 0 rows affected (0.01 sec)
mysql> USE mysql; Database changed mysql> SELECT Host,User,Password FROM user; +-----------+------+-------------------------------------------+ Host User Password +-----------+------+-------------------------------------------+ localhost root *60D5B730382EC2170CA366DE181767E4C5343DE8 % jsp *C22AB0FD8A289C7D337C9998B63B8EA8335E5F35 localhost jcc *C22AB0FD8A289C7D337C9998B63B8EA8335E5F35 +-----------+------+-------------------------------------------+ 3 rows in set (0.01 sec)
mysql> exit Bye
D:/MySQL/bin>mysql -u jcc -p Enter password: ********** Welcome to the MySQL monitor. Commands end with ; or /g. Your MySQL connection id is 57 to server version: 4.1.12a-nt
Type 'help;' or '/h' for help. Type '/c' to clear the buffer.