开发者

PDOException: SQLSTATE[42S02]

开发者 https://www.devze.com 2023-04-01 17:24 出处:网络
开发者_StackOverflow中文版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
开发者_StackOverflow中文版

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

PDOException: SQLSTATE[42S02]


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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消