linux LI
Ubuntu linux上安装MySQL(详细过程)
https://blog.csdn.net/m0_6...

1、使用以下命令即可进行mysql安装,注意安装前先更新一下软件源以获得最新版本:

$ sudo apt-get update #更新软件源
$ sudo apt-get install mysql-server #安装mysql

上述命令会安装以下包:
apparmor
mysql-client-5.7
mysql-common
mysql-server
mysql-server-5.7
mysql-server-core-5.7
因此无需再安装mysql-client等。安装过程会提示设置mysql root用户的密码,设置完成后等待自动安装即可。默认安装完成就启动了mysql。

2、启动和关闭mysql服务器:

$ service mysql start
$ service mysql stop
#linux
#ubuntu
#mysql
4 年 以前
17

暂无回复

这篇帖子暂时没有回复。你可以点击帖子左下方的 图标回复 linux LI。

<!-- Google tag (gtag.js) --> <script async src="https://www.googletagmanager.com/gtag/js?id=G-91NWN6B8EC"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-91NWN6B8EC'); </script>