ubuntu安装mysql及远程连接

1.vmware15下载 ubuntu具体过程可以查看ubtuntu使用教程
https://www.bilibili.com/video/BV1na4y1773c?from=search&seid=3029453707042620702
2.进行关闭防火墙
3. 如何设置su root
https://blog.csdn.net/weixin_45631815/article/details/119677504
4.apt install mariadb-server安装
5.修改文件 50-server.cnf
vim /etc/mysql/mariadb.conf.d/50-server.cnf
#bind-address = 127.0.0.1
4. mysql -u root连接
5.

GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123456' WITH GRANT OPTION;
FLUSH PRIVILEGES;   

8.最后重启 service mysql restart

猜你喜欢

转载自blog.csdn.net/weixin_45631815/article/details/119679514