Discuz! Board

 找回密碼
 立即註冊
搜索
熱搜: 活動 交友 discuz
查看: 3|回復: 0

MySQL database to compare

[複製鏈接]

1

主題

1

帖子

5

積分

新手上路

Rank: 1

積分
5
發表於 2024-3-10 11:20:03 | 顯示全部樓層 |閱讀模式
Mysqli_error()); } echo 'Connected successfully'; mysqli_close($link); ?> If necessary, do not hesitate to contact the support of the company responsible for hosting. If the service is of good quality, you will be quickly assisted and directed towards correcting the error. Verify credentials As we already mentioned, if your credentials are incorrect or outdated, WordPress will not be able to connect to the MySQL database, generating the error in question. So if you find that the server is not the problem, check that the database login information matches what was recorded in the wp-config.php file .

Doing this is not difficult, you can use a specific plugin Telegram Number Data or simply enter the WordPress file manager. Then go to the /public_html/ page, find the wp-config.php file and use the right mouse button to access the configuration options. Then, simply click “ Edit ”, as indicated in the image below. Error establishing a database connection Source : Hostinger Your purpose is to find and record the following lines of code: ADVERTISEMENT // ** MySQL settings - You can get this info from your web host 'DB_HOST', 'localhost' ); See what each of the elements means: DB_NAME: database name; DB_USER: username; DB_PASSWORD: access password; DB_HOST – The host of the database.



Write down the information found and return to your MySQL database to compare it with the registered credentials. You will come across a page that looks like this: Error establishing a database connection Source : WPBeginner If you notice that the data does not match, your problem is almost solved. To make the necessary changes, edit the following lines in the wp-config.php file: define('DB_NAME', 'fill_this_with_your_current_database_name'); define('DB_USER', 'fill_this_with_your_current_username') ; ADVERTISEMENT define('DB_HOST', 'fill_this_with_your_current_localhost'); If after confirming that the credentials are correct, the problem still persists, you should explore other methods.

回復

使用道具 舉報

您需要登錄後才可以回帖 登錄 | 立即註冊

本版積分規則

Archiver|手機版|自動贊助|GameHost抗攻擊論壇

GMT+8, 2024-5-15 16:08 , Processed in 0.045280 second(s), 18 queries .

抗攻擊 by GameHost X3.4

© 2001-2017 Comsenz Inc.

快速回復 返回頂部 返回列表
一粒米 | 中興米 | 論壇美工 | 設計 抗ddos | 天堂私服 | ddos | ddos | 防ddos | 防禦ddos | 防ddos主機 | 天堂美工 | 設計 防ddos主機 | 抗ddos主機 | 抗ddos | 抗ddos主機 | 抗攻擊論壇 | 天堂自動贊助 | 免費論壇 | 天堂私服 | 天堂123 | 台南清潔 | 天堂 | 天堂私服 | 免費論壇申請 | 抗ddos | 虛擬主機 | 實體主機 | vps | 網域註冊 | 抗攻擊遊戲主機 | ddos |