简体   繁体   English

WordPress的网站数据库连接错误

[英]Wordpress website db connection error

I came over this serious problem. 我遇到了这个严重的问题。 My WordPress website was running all right. 我的WordPress网站运行正常。 suddenly It showed the page of WordPress installation. 突然它显示了WordPress安装页面。 so, I quickly registered a user and so on. 因此,我迅速注册了一个用户,依此类推。 Then it showed "db connection error". 然后它显示“数据库连接错误”。 I went to my server and tried to log into my phpmyadmin but the password didn't work. 我去了服务器,尝试登录到phpmyadmin,但是密码不起作用。 This kept happening for 5 mins. 这持续发生了5分钟。 then thing worked normal again. 然后事情又恢复正常了。

1- is this a hacker attack? 1-这是黑客攻击吗? 2- how do I prevent the page of WP installation from showing up if the db connection goes down again? 2-如果数据库连接再次断开,如何防止WP安装页面显示? because this is a desaster 因为这是一场灾难

  • how do I prevent wp-admin from showing the name of my db in the db connection error ? 如何防止wp-admin在数据库连接错误中显示我的数据库名称? Better preventing any error report from my website when anything is down? 更好地防止发生任何故障时从我的网站发出任何错误报告?

thanks 谢谢

Nobody can tell you whether it was hacker related without a lot more information. 没有很多信息,没人能告诉您是否与黑客有关。 There should be logs on the machine hosting your site--I would check them first to see if you can tell if the database went down and why. 托管您站点的计算机上应该有日志-我将首先检查它们,以查看是否可以确定数据库是否关闭以及原因。 If you don't admin your own site you can ask your hosting provider what the problem was--they may have been rebooting a database machine, for example. 如果您不管理自己的站点,则可以询问主机提供商这是什么问题,例如,它们可能正在重新引导数据库计算机。

I would also do a full backup of your site and database in case there is any hardware trouble you don't know about. 如果您不知道任何硬件故障,我还将对您的站点和数据库进行完整备份。

In the meantime, if you administer the site yourself, take a look at advice for hardening Wordpress: http://codex.wordpress.org/Hardening_WordPress 同时,如果您自己管理站点,请查看有关加强Wordpress的建议: http : //codex.wordpress.org/Hardening_WordPress

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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