PDOException: SQLSTATE[42S02]

烈酒焚心 提交于 2019-12-10 11:36:26

问题


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


回答1:


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




回答2:


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



来源:https://stackoverflow.com/questions/7237619/pdoexception-sqlstate42s02

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!