1.linux下安装mysql:
sudo apt-get update sudo apt-get install mysql-server sudo systemctl start mysql sudo mysql_secure_installation #这一步不是必须的,甚至有害的
2.授权
use mysql; update user set host='%'where user='root';flush privileges; grant all privileges on *.* to 'root'@'名';
3.创建用户
3.1登录root账号
mysql -uroot -p666666 --uroot中root为登录用户, -p666666中666666为登录密码
3.2创建用户
create user haihong@'%' identified by '666666';
4.查看检索mysqluser
select user ,host from user
5.navicat连接
标签:linux,sudo,navicat,user,mysql,root,连接 From: https://www.cnblogs.com/HaiHong/p/18286919