美文网首页
mysql常用命令

mysql常用命令

作者: yuansc | 来源:发表于2015-09-15 14:44 被阅读46次

在这里只是简单记录下mysql的常用命令,以备忘记。

  • mysql新建用户
mysql>insert into mysql.user(Host,User,Password) values('localhost','node','1234');
//刷新系统权限表
mysql>flush privileges;
  • 新建DB
mysql>create database nodeDB;
  • 将一个表的行为授权给某个用户
mysql>grant all privileges on nodeDb.* to 'node@localhost' identified by '1234';

相关文章

网友评论

      本文标题:mysql常用命令

      本文链接:https://www.haomeiwen.com/subject/kqlmcttx.html