mysql杂记

绑定了本地地址,打开 /etc/mysql/my.cnf,找到:


bind-address = 127.0.0.1


去除 IP 地址绑定,把它改为:


bind-address = 0.0.0.0


然后重启 MySQL Server:


/etc/init.d/mysql restart


115.28.237.210
如果要设置为任何客户端都可以以root连接的话,可以这么写:
grant all on *.* to 'root'@'%' identifiied by '123456'


grant all on *.* to 'root'@'222.76.240.186' identified by '123456'
grant all on *.* to 'root'@'117.30.162.253' identified by '3134327408'


grant all on *.* to 'root'@'%' identified by '3134327408'


grant select on server.* to 'root'@'52.192.144.50' identified by '168'


grant select on server.* to 'root'@'222.76.240.186' identified by 'server'
grant all on *.* to username@'%' identified by 'password;
grant all on server.* to root@'%' identified by '123456';
grant all on server.* to root@'%' identified by '123456';


revoke all on *.* from 'root'@117.30.162.253;


flush privileges


show grants for root@localhost



 select a.acc_id as '帐号', b.coin as '铜钱', b.ingot '元宝', b.bind_ingot as '绑元' from player as a join player_data as b on a.id = b.player_id where a.acc_id like "%bajian%";

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值