ITeye博客

创建一个MYSQL用户

czhwin · 2014-08-08 12:07 · MYSQL · 数据库 · Markdown

创建一个MYSQL用户

C:>mysql -uroot -p
Enter password: ******
Welcome to the MySQL monitor. Commands end with ; or g.
Your MySQL connection id is 16 to server version: 5.0.18-nt

Type 'help;' or 'h' for help. Type 'c' to clear the buffer.

mysql> CREATE USER yanjz IDENTIFIED BY '123';
Query OK, 0 rows affected (0.03 sec)

mysql> GRANT ALL PRIVILEGES ON *.* TO yanjz;
Query OK, 0 rows affected (0.02 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)

mysql> exit
Bye

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。