mysql 用户权限管理

root用户登陆 >mysql uroot -pxxxx; 切换到mysql >use mysql; 建立数据库: >create database db_xxx; 建立用户 CREATE USER 'username'@'host' IDENTIFIED BY 'password'; host默认值为'%'。 修改密码: >update user set password=password('x
相关文章
相关标签/搜索