给MySQL授权远程访问
putty登录服务器;
登录MySQL:
mysql -u root -p
新建远程用户:
CREATE USER 'myusername' IDENTIFIED BY 'mypassword';
授权:
grant all on *.* to john@'101.102.103.104' identified by 'mypassword'; flush privileges;
101.102.103.104是你的外网ip
现在,你就可以用客户端从远程访问了
相关推荐
lpfvip00 2020-10-07
CoderToy 2020-11-16
emmm00 2020-11-17
王艺强 2020-11-17
ribavnu 2020-11-16
bianruifeng 2020-11-16
wangshuangbao 2020-11-13
苏康申 2020-11-13
vivenwan 2020-11-13
moyekongling 2020-11-13
云中舞步 2020-11-12
要啥自行车一把梭 2020-11-12
aydh 2020-11-12
kuwoyinlehe 2020-11-12
minerk 2020-11-12
vitasfly 2020-11-12
jazywoo在路上 2020-11-11
敏敏张 2020-11-11