mysql创建远程访问用户

创建过程如下:

1. 创建用户

create user 用户; 

2. 授权

GRANT ALL PRIVILEGES ON *.* TO 用户@”%” IDENTIFIED BY ‘密码’ WITH GRANT OPTION; 

3. 生效

flush privileges;

create user admin; 
GRANT ALL PRIVILEGES ON *.* TO admin@"%" IDENTIFIED BY 'admin' WITH GRANT OPTION;
flush privileges; 
联系我们

邮箱 626512443@qq.com
电话 18611320371(微信)
QQ群 235681453

Copyright © 2015-2024

备案号:京ICP备15003423号-3