linux 软件安装 ---- mysql安装

一,Ubuntu 安装

1. 安装mysql服务:

    apt install mysql-server

2. 配置网外连接

    进入mysql配置文件:vim /etc/mysql/mysql.conf.d/mysqld.cnf

   注释 bind_addres 配置

   连接mysql: mysql -h 127.0.0.1 -u root -p

   修改mysql库user表root用户的host为%

   use mysql;

   update user set host ='%' where user = 'root' limit 1;

  刷新配置:flush privileges;

  重启mysql: service mysql restart

二: CnetOS安装

https://www.cnblogs.com/shuo1208/p/11237713.html

发布了56 篇原创文章 · 获赞 86 · 访问量 18万+

猜你喜欢

转载自blog.csdn.net/qq_32331997/article/details/105029460