3个步骤实现在Ubuntu安装MysqL Server:
1.添加apt源
shell> sudo dpkg -i /PATH/version-specific-package-name.deb # 仓库文件下载地址:https://dev.MysqL.com/downloads/repo/apt/
shell> sudo apt-get update
2.安装
shell> sudo apt-get install MysqL-server
3.启动服务
shell> sudo service MysqL status
shell> sudo service MysqL stop
shell> sudo service MysqL start
需要特别注意的是: 在安装过程中会提示设置root账户密码,一定要在这里设置好,否则安装完毕之后无法登录MysqL,切记切记!!!
【参考】
https://dev.mysql.com/doc/mysql-apt-repo-quick-guide/en/ A Quick Guide to Using the MysqL APT Repository
https://blog.csdn.net/lyhdream/article/details/40717467 Ubuntu下取消MysqL自动启动