打开错误提示看了一下,提示错误如下:
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '--DROP TABLE IF EXISTS zentao.`zt_action`' at line 1' in D:\www\zentaopms\module\install\model.php:385 Stack trace: #0 D:\www\zentaopms\module\install\model.php(385): PDO->query('--DROP TABLE IF...') #1 D:\www\zentaopms\module\install\model.php(257): installModel->createTable('5.0') #2 D:\www\zentaopms\module\install\control.php(94): installModel->checkConfig() #3 [internal function]: install->step3() #4 D:\www\zentaopms\framework\router.class.php(1140): call_user_func_array(Array, Array) #5 D:\www\zentaopms\www\install.php(38): router->loadModule() #6 {main} thrown in D:\www\zentaopms\module\install\model.php on line 385
执行SQL :
--DROP TABLE IF EXISTS zentao.`zt_action` 出错
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '--DROP TABLE IF EXISTS zentao.`zt_action`' at line 1' in D:\www\zentaopms\module\install\model.php:385 Stack trace: #0 D:\www\zentaopms\module\install\model.php(385): PDO->query('--DROP TABLE IF...') #1 D:\www\zentaopms\module\install\model.php(257): installModel->createTable('5.0') #2 D:\www\zentaopms\module\install\control.php(94): installModel->checkConfig() #3 [internal function]: install->step3() #4 D:\www\zentaopms\framework\router.class.php(1140): call_user_func_array(Array, Array) #5 D:\www\zentaopms\www\install.php(38): router->loadModule() #6 {main} thrown in D:\www\zentaopms\module\install\model.php on line 385