MySql用户创建、授权以及删除

mysql> CREATE USER yy IDENTIFIED BY ’123′;

如果要限制在固定地址登陆,比如localhost 登陆:
mysql> CREATE USER yy@localhost IDENTIFIED BY ’123′;

grant:
mysql> GRANT ALL PRIVILEGES ON *.* TO user@localhost;

grant select,insert,update,delete on *.* to test1@”%” Identified by “abc”;
格式:grant select on 数据库.* to 用户名@登录主机 identified by “密码”

您可能感兴趣的文章

  1. mysql不能启动 Manager of pid-file quit without updating file.
  2. rails3.0 安装mysql2 失败,发生lmysqlclient 错误
  3. fedora13 编译安装 mysql innodb引擎
  4. mysql 横向扩展性
  5. mysql 纵向扩展性
  6. MySQL server has gone away
  7. MySQL中的mysqldump命令使用详解
  8. ruby与rails版本差异不能连接mysql
  9. mysql my.cnf
  10. mysql 配置文件
分享到Twitter 分享到新浪微博 分享到开心 分享到QQ空间 分享到人人 分享到鲜果 分享到豆瓣 分享到网易微博 分享到搜狐微博
You can leave a response, or trackback from your own site.

Leave a Reply

You must be logged in to post a comment.

Powered by WordPress | Find Wireless Deals at BestInCellPhones.com. | Thanks to iCellPhoneDeals.com Free Cell Phones, Find Highest CD Rates and Incinerador De Grasa Revisión