ubuntu mysql 安装

ubuntu mysql 安装

(1.)下载镜像源配置

https://dev.mysql.com/downloads/repo/apt/
dpkg -i mysql.xxx.deb  //安装,选择OK

(2.)更新镜像源

sudo apt-get update

(3.)安装mysql

sudo apt-get install mysql-server

(4.)问题解决

dpkg: error processing package mysql-server-5.7 (--configure):

sudo rm -r /etc/mysql/mysql.conf.d/
sudo apt-get remove --purge mysql-server mysql-client mysql-common
sudo rm -rf /var/lib/mysql
sudo apt autoremove
sudo apt install mysql-server

(5.) Ubuntu 18.04 上安装和使用 MySQL Workbench

https://www.linuxidc.com/Linux/2019-08/159899.htm

相关链接

https://dev.mysql.com/doc/mysql-apt-repo-quick-guide/en/#apt-repo-fresh-install //官方指导
https://blog.csdn.net/weixx3/article/details/94133847

原文地址:https://www.cnblogs.com/tomtellyou/p/12257505.html