标签:san 加密 密码 set drop 查看 服务 span ble
1、修改MySQL用户密码
1、先来看一个PASSWORD()函数,MYSQL使用MD5加密 SELECT PASSWORD(‘root’); 2、使用mysql数据库,查看用户表 USE mysql; SELECT * FROM USER; 3、修改密码 UPDATE USER SET PASSWORD = PASSWORD(‘123456‘) WHERE USER=‘root‘ 4、重启mysql服务,新密码生效
2、设置权限账户
命令格式如下 GRANT 权限 ON 数据库.表 TO ‘账户名‘@‘账户类型‘ IDENTIFIED BY ‘密码‘ 权阴有‘SELECT’、‘INSERT’、‘UPDATE’、‘DROP’、‘CREATE’、或‘ALL’ GRANT SELECT ON table.employee TO ‘zhangsan‘ @ ‘localhost‘ IDENTIFIED BY ‘123456’
标签:san 加密 密码 set drop 查看 服务 span ble
原文地址:http://www.cnblogs.com/StanLong/p/6884199.html