当前位置:Gxlcms > 数据库问题 > mysql远程连接只显示部分数据库问题

mysql远程连接只显示部分数据库问题

时间:2021-07-01 10:21:17 帮助过:44人阅读

host,user from mysql.user;

技术分享

3.查看当前用户

mysql> select current_user();

技术分享

4.查看当前用户权限

mysql> show grants from current_user();

技术分享

5.新建一个用户

mysql> create user haha@% identified by password;

技术分享

6.授予权限

mysql> grant all privileges on *.* to haha@% identified by password with grant option;

技术分享

7.登入新用户看看权限吧

 技术分享

嗯,还有就是经过公司前辈的介绍,navicat等远程工具都可以通过ssh然后本地连接mysql啦,突然觉得自己好low啊,暴露自己是菜鸟了,也记录下吧

首先通过ssh选项卡连接远程服务器

技术分享

然后就可以像本地一样连接mysql了,怎么样,神奇吧!!!

mysql远程连接只显示部分数据库问题

标签:本地   log   连接   creat   ima   current   分数   用户权限   databases   

人气教程排行