centos7下lnmp1.4一键安装包(https://lnmp.org/install.html)mysql5.7授权远程连接

Mysql操作命令 :

mysql -uroot -p

show databases;

use mysql;

show tables;

select host,user from user;

使用mysql数据库(真正的数据库,而非数据库软件),将所有数据库的所有表(*.*)的所有权限(all privileges),授予通过任何ip(%)访问的root用户,密码为123456,最后刷新(flush privileges)即可

grant all privileges on *.* to 'root'@'%' identified by '123456';

flush privileges;

有防火墙的点此链接
全部评论

相关推荐

08-07 11:43
门头沟学院 Java
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务