Difference between revisions of "Review"
Jump to navigation
Jump to search
| (3 intermediate revisions by the same user not shown) | |||
| Line 13: | Line 13: | ||
* Reload privileges table. (This updates the system to reflect the previously made changes.) | * Reload privileges table. (This updates the system to reflect the previously made changes.) | ||
Root DB account is locked by default following this install due to a bug. Solve with the following: | Root DB account is locked by default following this install due to a bug. Solve with the following: | ||
| + | $ sudo mysql | ||
mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'mynewpasswd'; | mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'mynewpasswd'; | ||
| + | |||
| + | ;Percona Server 8 on Ubuntu 20.04 | ||
| + | sudo apt-get install gnupg2 | ||
| + | This step works but then a number of problems installing percona: | ||
| + | * curl needs to be installed | ||
| + | * "Enabling the Percona Original repository" message; run ap-get update | ||
| + | |||
| + | ; MariaDB on Ubuntu 20.04 | ||
| + | * I couldn't get 10.3 to install from the default repos and had to download 10.5.8 separately | ||
| + | * How to [http://hostadvice.com/how-to/how-to-relocate-a-mysql-data-directory-on-ubuntu-18-04/ move the data dir] | ||
Latest revision as of 14:21, 14 February 2021
Chapter 1[edit]
MySQL 8 on Ubuntu 20.04
sudo apt update
sudo apt-install mysql-server
sudo mysql_secure_installation
Secure options:
- VALIDATE PASSWORD. Forbids insecure passwords. Options are LOW, MEDIUM and STRONG
- Remove anonymous users
- Prohibit ("disallow") root login remotely
- Remove test database and access to it
- Reload privileges table. (This updates the system to reflect the previously made changes.)
Root DB account is locked by default following this install due to a bug. Solve with the following:
$ sudo mysql mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'mynewpasswd';
- Percona Server 8 on Ubuntu 20.04
sudo apt-get install gnupg2
This step works but then a number of problems installing percona:
- curl needs to be installed
- "Enabling the Percona Original repository" message; run ap-get update
- MariaDB on Ubuntu 20.04
- I couldn't get 10.3 to install from the default repos and had to download 10.5.8 separately
- How to move the data dir