How to connect Navicat to ubuntu database

Navicat connect to ubuntu database

  • The basic steps
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;
  • Modify the configuration file
root@yjc:/etc/mysql/mysql.conf.d# vim mysqld.cnf 

Add a line of code below [mysqld]

skip-grant-tables

(Note: skip-grant-tables: do not start grant-tables authorization table, as a startup parameter: MYSQL server does not load permission judgment, any user can access the database)

Guess you like

Origin blog.csdn.net/qq_45125250/article/details/109935987