The below high-level steps were used to install and configure MySQL on a CentOS 7.9 Linux server.
-
Login to the server with root credentials.
-
(Optional) Update the server prior to the install.
|
›_ Console |
|---|
|
-
Go to the directory where MySQL Zip file is copied and unzip it.
-
Install MySQL using the following command:
|
›_ Console |
|---|
|
During the installation, you might be prompted to enter the password for the root user for your MySQL installation.
-
When installing MySQL on CentOS 7.9, a temporary root password is generated and available in mysqld.log file under /var/log.
-
Log in to the MySQL client.
|
›_ Console |
|---|
|
-
Enter the Temporary password created for the root user.
-
Change the root password.
|
›_ Console |
|---|
|
9. Test the new password.
|
›_ Console |
|---|
|