Click here for "Safe Air Conditioner Repair and Proper Freon Recovery".

CentOS7.9 ; MySQL8 , WordPress

Mysql8 Install

1.Preparation and Confirmation

If MariaDB is already installed, remove it.

Stopping and Deleting MariaDB

2.MySQL8 install

Add Official MySQL Repository

MySQL  install

Check the version

MySQL startup and autostart settings

Confirm and save default password
Required for initialization in the next "mysql_secure_installation".

MySQL Initial Setup
Use the "mysql_secure_installation" command to set the root user password and set some basic policies

Securing the MySQL server deployment.

Enter password for user root:******** Default password saved above

The existing password for the user account root has expired. Please set a new password.

New password:xxxxxxxx  New password to be set
Re-enter new password:xxxxxxxx  Same as above Password
The 'validate_password' component is installed on the server.
The subsequent steps will run with the existing configuration
of the component.
Using existing password for root.

Estimated strength of the password: 100
Change the password for root ? ((Press y|Y for Yes, any other key for No) : y

New password:xxxxxxxx Newly set password
Re-enter new password:xxxxxxxx Same as above Password

Estimated strength of the password: 100
Do you wish to continue with the password provided?(Press y|Y for Yes, any other key for No) : y
By default, a MySQL installation has an anonymous user,
allowing anyone to log into MySQL without having to have
a user account created for them. This is intended only for
testing, and to make the installation go a bit smoother.
You should remove them before moving into a production
environment.

Remove anonymous users? (Press y|Y for Yes, any other key for No) : y
Success.

Normally, root should only be allowed to connect from
'localhost'. This ensures that someone cannot guess at
the root password from the network.

Disallow root login remotely? (Press y|Y for Yes, any other key for No) : y
Success.

By default, MySQL comes with a database named 'test' that
anyone can access. This is also intended only for testing,
and should be removed before moving into a production
environment.

Remove test database and access to it? (Press y|Y for Yes, any other key for No) : y
-Dropping test database…
Success.

-Removing privileges on test database…
Success.

Reloading the privilege tables will ensure that all changes
made so far will take effect immediately.

Reload privilege tables now? (Press y|Y for Yes, any other key for No) : y
Success.

All done!

Create a new charset.cnf with the following contents

[mysqld]
character-set-server = utf8mb4
[client]
default-character-set = utf8mb4

WordPress Install

1. Create database for Word Press

As an example, assume database [wp_db] database user [wp_user] password [?W123456]

2.Wordpress Installation

3.Edit WordPress configuration file

4.Moving Files

Move the expanded contents under /var/www/html/[domain name for wordpress]

After confirming that the files have been moved, delete the wordpress directory and the downloaded latest.tar.gz

Make apache the owner of the wordpress directory.

5.Starting wordpress installation

Go to http://cent.korodes.com/wp-admin/install.php in your browser.
Enter your username, password, and other necessary information to start the installation

Your server's PHP does not seem to be able to utilize the MySQL extensions required for WordPress." If you see this, install the following and restart apache and mysql

again
Access http://cent.korodes.com/wp-admin/install.php

On the following input screen

Site Title   Any name
Username   Any name
Password  Any password
Your Email  Administrator's email address

Enter the information and click "Install WordPress". Remember to enter your "username" and "password" as they are required to access the WordPress administration screen.

 

Copied title and URL