码迷,mamicode.com
首页 > 数据库 > 详细

debian9安装mysql

时间:2019-03-12 10:44:31      阅读:366      评论:0      收藏:0      [点我收藏+]

标签:apt   连接   .com   0.0.0.0   tmp   https   登录   5.7   dpkg   

cd /tmp
wget https://dev.mysql.com/get/mysql-apt-config_0.8.7-1_all.deb
dpkg -i mysql-apt-config_*.deb
选择5.7版本
apt update
apt install mysql-community-server -y
安装完成
登录mysql,设置允许远程连接
GRANT ALL PRIVILEGES ON *.* TO ‘root‘@‘%‘ IDENTIFIED BY ‘password‘ WITH GRANT OPTION;
FLUSH PRIVILEGES;
vim mysql.conf.d
将bind-address  = 127.0.0.1”改为“bind-address  = 0.0.0.0

debian9安装mysql

标签:apt   连接   .com   0.0.0.0   tmp   https   登录   5.7   dpkg   

原文地址:https://www.cnblogs.com/phpk/p/10514982.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!