数据库
首页 > 数据库> > 乌班图Ubuntu 20.04.1 LTS中安装MySQL8.0.22

乌班图Ubuntu 20.04.1 LTS中安装MySQL8.0.22

作者:互联网

Windows10操作系统使用VMware15Pro安装了乌班图Ubuntu 20.04.1 LTS

在乌班图中安装MySQL8.0.22

1.Ctrol Alt T打开终端,输入指令如下查询是否已经安装了MySQL:

sudo dpkg -l | grep mysql

2.没有的话则安装MYSQL

sudo apt-get install mysql-server                    //服务端

sudo apt-get install mysql-client                     //客户端

sudo apt-get install libmysqlclient-dev           //程序编译时链接库

3.安装完成后检查是否安装成功,如果处于LISTEN状态表示安装成功

sudo netstat -tap | grep mysql

4.验证MYSQL服务器正在运行,输入如下:

sudo systemctl status mysql

5.进入MYSQL Shell,输入指令,密码出直接回车,这里可能会报错Error1698(28000),如果报错,参考https://www.cnblogs.com/zwb121/p/5832670.htmlhttps://blog.csdn.net/weixin_42550666/article/details/106104249

mysql -uroot -p

6.卸载MySQL参考https://blog.csdn.net/weixin_38331049/article/details/104750276

7.设置新密码时出现Error1819(HY000),参考https://blog.csdn.net/calistom/article/details/87939956

8.show tables时出现Error 1449 (HY000)时,参考https://learnku.com/articles/51780

 

 

 

标签:LTS,22,乌班图,get,sudo,blog,https,mysql,安装
来源: https://blog.csdn.net/thecyy/article/details/112604307