Used this method to solve Discuz! Database Error error

1. Error reporting

1.1 Build a forum on the LAMP architecture, mysql service builds a highly available

Insert picture description here

Two, troubleshooting ideas

The report is a database error, so we check from the database

1. Check whether the database port is open and whether you can successfully log in to the database

2. Check if the user is authorized

3. Check if the virtual IP exists

Three, the solution

Use the ifconfig command on the master to view the virtual IP, the virtual IP address does not exist

Use the /sbin/ifconfig ens33:1 14.0.0.99/24 command to open the virtual IP

Refresh and visit the forum normally
Insert picture description here

Guess you like

Origin blog.csdn.net/kimowinter/article/details/108636899