ITeye博客

mysql common used command

zhoumin007 · 2008-03-29 12:20 · 数据库 · MySQL · Markdown

1:connect: mysql -u root -p

 

2:change password:

use mysql
update user set Password=password('newpassword') where User='root';
flush privileges;

 

3:create database discuz;

 

4:grant all privileges on discuz.* to discuz@localhost identified by '123456';

评论(0)

暂无评论。

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