当前位置:论坛首页 > Linux面板 > 求助

【已解答】更新宝塔后网站打不开Error establishing a database co...

发表在 Linux面板2023-5-18 22:23 [复制链接] 1 3645

本帖最后由 堡塔运维小林 于 2023-5-18 23:08 编辑

为了能快速了解并处理您的问题,请提供以下基础信息:
面板、插件版本:MySQL 5.6.50
系统版本:Cent O S 7
问题描述:Error establishing a database connection
This either means that the username and password information in your wp-config.php file is incorrect or that contact with the database server at localhost could not be established. This could mean your host’s database server is down.
  • Are you sure you have the correct username and password?
  • Are you sure you have typed the correct hostname?
  • Are you sure the database server is running?
If you are unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress support forums.

  
相关截图(日志、错误):

cde0bfa208f2d4e7ead17b5a48c01f8.png
使用道具 举报 只看该作者 回复
发表于 2023-5-18 23:07:58 | 显示全部楼层
您好,如果出现"Error establishing a database connection" 错误,这表示的 WordPress 网站无法连接到数据库。
以下是修复该错误的一些步骤:
1. 检查 wp-config.php 文件: 打开 wp-config.php 文件,并确保以下值与你的 MySQL 数据库配置都正确:数据库名称、用户名 、密码和主机名。如果其中任何一个设置不正确,你可能需要手动更正它。
2. 检查 MySQL 服务器是否运行: 确认你的 MySQL 服务器正在运行并已启动。
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

点击联系技术免费分析

工作时间:09:00至18:30

快速回复 返回顶部 返回列表