navicat premium使用Root用户连接上mysql后只能看到information_schema库
这是权限不足导致的,尽管是用root账户登录,navicat登录相当于是远程ip登录数据库,仍会出现权限不足只能看到information_schema临时库。
连接测试没有问题:
打开连接:只能看到information_schema库
-- 1.root用户登陆系统:
mysql -u root -p mysql
-- 2.切换数据库:
use mysql;
-- 3.查看user表中root用户的权限:
select * from user where user='root';
如图:输入数字ip地址的权限都为N。