简体   繁体   中英

My wordpress site in a local (xampp) server now shows "Error establishing a database connection"

错误图像

The site was completely fine but once I uninstalled xampp and again installed it. The site folder is inside htdocs folder. Can anyone help? Thank you

After uninstalling and re-installing XAMPP, your database related to the WordPress site might got deleted. Try re-creating a database with the same name or create a new database and edit your wp-config.php file's DB_NAME key with the new database value.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM