首页 电脑 电脑学堂 查看内容

mysql添加用户、更改密码

2011-3-7 11:32 741 0

摘要:   mysql添加用户方法  建立数据库gamesp  create database gamesp;  添加用户  grant  all  on  数据库名.*&nbs...
关键词: nbsp gamesp localhost mysql password 密码 数据库 用户 grant identified

  mysql添加用户方法  建立数据库gamesp  create database gamesp;  添加用户  grant  all  on  数据库名.*   to   用户名@localhost  identified  by  '密码';  grant all on gamesp.* to newuser@localhost identified by 'password';  说明:  (1)grant all 赋予所有的权限  (2)gamesp.* 数据库 gamesp 中所有的表  (3)newuser 用户名  (4)@localhost 在本地电脑上的 mysql server 服务器  (5)identfified by 'password' 设置密码  删除用户  use mysql  mysql>Delete FROM user Where User="xxxxx" and Host="localhost";  mysql>flush privileges;  修改密码  mysqladmin -uroot -plk317921web password "111111"
声明:文章版权归原作者所有 部分文章转自互联网 如有侵权请联系 [邮箱地址] 删除

路过

雷人

握手

鲜花

鸡蛋

最新评论

返回顶部