Ubuntu 20.04
可运行 sudo apt isntall mysql-server
命令直接安装。
1 | CREATE USER 'pma'@'localhost' IDENTIFIED WITH caching_sha2_password BY 'pmapass'; |
下载:
https://dev.mysql.com/downloads/
https://dev.mysql.com/downloads/mysql/
文档:
https://dev.mysql.com/doc/refman/8.0/en/
https://dev.mysql.com/doc/refman/8.0/en/binary-installation.html
https://dev.mysql.com/doc/mysql-apt-repo-quick-guide/en/
安装(https://dev.mysql.com/doc/refman/8.0/en/binary-installation.html#binary-installation-layout):
推荐安装在 /usr/local
目录
1 | tar -xvf mysql_8.tar.xz //解压 tar.xz 文件 |
https://www.cnblogs.com/keme/p/10288168.html
APT 安装:
https://blog.csdn.net/wm609972715/article/details/83759266
如何在Ubuntu 18.04中安装MySQL 8.0数据库服务器_数据库技术_Linux公社-Linux系统门户网站 (linuxidc.com)
Ubuntu中更改MySQL数据库文件目录:
1 | service mysql stop |
1 | vim /etc/apparmor.d/usr.sbin.mysqld |
1 | service apparmor restart |