[英]XAMPP WordPress fresh "re-install" - Error establishing a database connection
So, I mucked things up pretty good.所以,我把事情搞砸了。 I've researched this topic, but none of the solutions I found work or quite fit my situation.我已经研究过这个主题,但我发现没有一个解决方案有效或非常适合我的情况。
Let me explain.让我解释。 I had somehow managed to get a local install of WordPress using Xampp onto my Win10 PC.我以某种方式设法在我的 Win10 PC 上使用 Xampp 本地安装了 WordPress。 I remember it was a struggle then and that was a week ago.我记得那是一场斗争,那是一周前。 Problem is that I forgot my admin password and I couldn't figure out a way around it.问题是我忘记了我的管理员密码,我想不出解决办法。 So...所以...
That's when I got the message -- Error establishing a database connection.就在那时我收到消息——建立数据库连接时出错。
I'm not sure how that's possible considering it was just connected and created all the tables in the database.考虑到它刚刚连接并创建了数据库中的所有表,我不确定这怎么可能。
Here's what's in my wp_config.php file, though I'm not sure what could be wrong with it since it was working fine a second ago (:{):这是我的 wp_config.php 文件中的内容,虽然我不确定它有什么问题,因为它在一秒钟前工作正常(:{):
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'wp');
/** MySQL database username */
define('DB_USER', 'root');
/** MySQL database password */
define('DB_PASSWORD', '');
/** MySQL hostname */
define('DB_HOST', 'localhost');
I'm sure someone can tell me where I went wrong and hopefully how to fix it.我相信有人可以告诉我哪里出错了,并希望如何解决它。 I'm fine with starting over again.我可以重新开始。 I just want to get it installed so I can learn the inner-workings.我只是想安装它,这样我就可以了解内部工作原理。 ;P ;P
Thanks in advance.提前致谢。 I look forward to learning from you all.我期待着向大家学习。 Jen珍
仅供参考,我最终卸载了 Xampp 并重新安装以解决此问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.