If you read the article and think "Isn't it okay?", Please LGTM.
-Install MariaDB on CentOS built with docker ・ The version of CentOS is as follows
$ cat /etc/redhat-release
CentOS Linux release 8.2.2004 (Core)
Add repository
$ wget https://downloads.mariadb.com/MariaDB/mariadb_repo_setup
$ chmod +x mariadb_repo_setup
$ ./mariadb_repo_setup
install
$ yum install MariaDB-server MariaDB-client
$ mariadb --version
mariadb Ver 15.1 Distrib 10.5.7-MariaDB, for Linux (x86_64) using readline 5.1
Run the initialization script
$ /usr/bin/mysql_secure_installation
Press Enter except for the new password setting Set a new password with the new password setting as shown below
New password:
Re-enter new password:
Then press Enter all
Log in with the following command You will be asked for a password when you log in, so enter the password you set.
$ mariadb -u root -p
Recommended Posts