MySQL添加新用户、为用户建立数据库、为新用户分配权限

登陆MySQLmysql mysql -u root -p 添加新用户 容许本地 IP 访问 localhost, 127.0.0.1sql create user 'test'@'localhost' identified by '123456'; 容许外网 IP 访问数据库 create user 'test'@'%' identified by '123456'; 刷新受权 flush pr
相关文章
相关标签/搜索