mysql授权IP登录
授权所有,youpassword为登录密码
GRANT ALL PRIVILEGES ON *.* TO ‘root‘@‘%‘ IDENTIFIED BY ‘youpassword‘ WITH GRANT OPTION;
指定IP
GRANT ALL PRIVILEGES ON *.* TO ‘root‘@‘171.111.8.130‘ IDENTIFIED BY ‘youpassword‘ WITH GRANT OPTION;
如果失败删除后重新授权
delete from user where host = ‘171.111.8.130‘ and user = ‘root‘;
保存配置
flush privileges;
相关推荐
sunysh00 2020-07-18
娜娜 2020-06-22
chenjiazhu 2020-06-03
姚强 2020-06-02
adsadadaddadasda 2020-05-27
韩学敏 2020-05-25
翡翠谷 2020-05-25
hithyc 2020-05-07
zhengsj 2020-05-03
huacuilaifa 2020-05-02
azhou 2020-04-20
lysanderK 2020-04-19
jiong 2020-03-08
CHINA华军 2020-02-16
云之飞踢 2020-01-01
阿亮 2019-12-31
数据齿轮 2019-12-29
rareli 2019-12-23