Navicat如何连接ubuntu数据库

Navicat连接ubuntu数据库

  • 基本步骤
mysql -u root -p
USE mysql;
select user, plugin from mysql.user;
update user set 
authentication_string=password("123456"),plugin='mysql_native_password' where user='root';
FLUSH PRIVILEGES;
exit;
  • 修改配置文件
root@yjc:/etc/mysql/mysql.conf.d# vim mysqld.cnf 

在[mysqld]下面添加一行代码

skip-grant-tables

(注:skip-grant-tables:不启动grant-tables授权表,作为启动参数的作用:MYSQL服务器不加载权限判断,任何用户都能访问数据库)

猜你喜欢

转载自blog.csdn.net/qq_45125250/article/details/109935987