When I open the forum, I get a Discuz Database Error, what is the problem?

Updated on technology 2024-05-01
7 answers
  1. Anonymous users2024-02-08

    1. For example, the table content of the MySQL database is too large, and more than 10G may affect the operation of the Discuz forum.

    <>3. The database configuration is incorrect, sometimes it may be the host move, the database move, etc., resulting in the database information filling in incorrectly, or the old database information is not updated in time, such as the database user name, password, database table filling error.

    4. You can repair the relevant database information, you can find the config directory in the config directory and modify the database information configuration file.

    discus!3 There are three reference profiles. Double-check that the database configuration and other configurations are up to date.

    Installation directory config config installation directory config config installation directoryFor more information, see the official discuz documentation.

    5. The database is not running.

    6. Check whether the host's MySQL database program is running or closed. If it's a web host.

    You can contact the space provider to turn it on. If the virtual host does not support the MySQL database, you can resolve this issue by replacing the host or space provider.

  2. Anonymous users2024-02-07

    You yourself said that you changed the root password, and it's not normal to be unable to connect to the database.

    You need to change the database password in both files.

    config/config_

  3. Anonymous users2024-02-06

    This is usually a conflict between plugins, especially if you get an error message.

    Go into the background and close the latest installed plugin.

  4. Anonymous users2024-02-05

    There was an error in the database, the password was wrong, etc

  5. Anonymous users2024-02-04

    This ** database file is missing, and the data should be upgraded or migrated.

  6. Anonymous users2024-02-03

    The database information is wrong, and it is estimated that this ** is moving.

  7. Anonymous users2024-02-02

    Solve database and php configuration issues.

    Discuz is a general-purpose community forum software system that has been around for about 10 years and is now very mature. It runs on the integration of Apache, PHP and MySQL.

    The question prompts a database problem, and there are two possibilities:

    1. Check the MySQL database: whether the installation is correct, and the account and password are configured to PHP;

    Configure database information.

    dbhost = 'localhost'; // database server

    Database server.

    dbuser = 'dbuser'; // database username

    Database username.

    dbpw = 'dbpw'; // database password

    Database password.

    dbname = 'discuz'; // database name

    The name of the database.

    adminemail = ''; // admin email

    Forum system email

    dbreport = 0; // send db error report? 1=yes

    Do you send database error reports? 0=No, 1=Yes.

    2. Check PHP configuration: Is MySQL support enabled in the configuration?

    Database Connectivity Test:

    dbhost = 'localhost';

    dbuser = 'dbuser'; // database username

    dbpass = 'dbpw'; // database password

    dbname ='discuz'; // database name

    link = mysql_connect($dbhost,$dbuser,$dbpass);

    if(!$link) echo "fail";

    else echo "success";

    mysql_close();

Related questions
9 answers2024-05-01

Summary. Hello dear, after opening a word document always appears that you already have office. This prompt appears, it should be installed software management software, open the file, the default way is WPS, or other, but the system has installed Microsoft Office, and the software management software appears prompt. >>>More

5 answers2024-05-01

Hello, the game is not finished

The Trace of the Sky is installed in Windows, after the file is copied, a DOS interface will pop up, there are many items, and all of them will be 100% before they will prompt FinishThis is the time when all the installation is complete and you can play the game. >>>More

3 answers2024-05-01

Fixed: Command cannot be executed when the word opening prompt dialog box is opened.

12 answers2024-05-01

The reasons for eclipse startup failures are summarized as follows: >>>More

25 answers2024-05-01

To tell the truth,The situation you said is a typical IE hijacking,Generally this kind of behavior is not too exaggerated,At most, it's to change a registry key or something,It can be cleared after redoing the system,According to the situation you described,It should be the author who has joined the technology such as embedded ** or image hijacking,There are two solutions,One is simple,It is recommended to go directly to a third-party browser such as Firefox,This non-ie kernel browser can well protect its own kernel from attacks,Basically there will be no hijacking, At most, a warning or exception pop-up pop-up for the first run; The second method is more troublesome, you need to redo the system (it must not be a one-click recovery), and then without opening any drive letter outside the C drive, install antivirus software and upgrade to the latest version, enter the safe mode to fully disinfect the virus, after completion, it is best to install 360 again and then enter the safe mode to check the vicious**, so that it should be solved.