PDOException: SQLSTATE[42S02]

2019-06-05 22:51发布

I have just install Drupal 7 through microsoft web platform installer after successful installation when i run web matrix and run it. It show me this error I am new to drupal so have no clue what is this error and how to solve it enter image description here

2条回答
【Aperson】
2楼-- · 2019-06-05 23:28

It's a simple problem to solve, just visit install.php on your website and you should be able to install as normal. Sometimes the installer doesn't automatically redirect to install.php and instead visits the root of the site. The exception happens because Drupal looks for the database tables and they don't exist, install.php not having been run. There's a discussion here:

http://groups.drupal.org/node/121629#comment-395209

查看更多
够拽才男人
3楼-- · 2019-06-05 23:40

How to fix this problem

Go to xampp\mysql\bin
Open my.ini
Change "max_allowed_packet" from "1m" to "16m"
Save my.ini
Now restart MySql through the XAMPP control panel.

Found this solution here. http://minorpoint.blogspot.com/2007/09/mysql-server-has-gone-away.html

查看更多
登录 后发表回答