PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'database.semaphore' doesn't
2014-04-22 12:03
731 查看
PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table '[database].semaphore' doesn't exist: SELECT expire, value FROM {semaphore} WHERE name = :name; Array ( [:name] => variable_init
) in lock_may_be_available() (line167 of
E:\xampp\htdocs\[www.xx.com]\includes\lock.inc).
今天终于解决了,是因为用phpmyadmin工具导出的数据库不完整,后来用命令行导出的方式导出数据库看了下,生成的文件大小确实不一样(虽然表的数目与之前刀的是一致的)。通过Google看到好多人也有这问题,但是都没有给出正确的解决方案,希望学习drupal的朋友们能够得到启发。这里要感谢下公司的网管,学网络的这方面还是比较厉害。
附上导出命令:mysqldump --opt -u 【username】 -B 【DB】 > out.sql
) in lock_may_be_available() (line167 of
E:\xampp\htdocs\[www.xx.com]\includes\lock.inc).
今天终于解决了,是因为用phpmyadmin工具导出的数据库不完整,后来用命令行导出的方式导出数据库看了下,生成的文件大小确实不一样(虽然表的数目与之前刀的是一致的)。通过Google看到好多人也有这问题,但是都没有给出正确的解决方案,希望学习drupal的朋友们能够得到启发。这里要感谢下公司的网管,学网络的这方面还是比较厉害。
附上导出命令:mysqldump --opt -u 【username】 -B 【DB】 > out.sql
相关文章推荐
- SQLSTATE[42S02]: Base table or view not found: 1146 Table 'blog.user' doesn't exist (SQL: select * f
- thinkphp中SQLSTATE[42S02]: Base table or view not found: 1146 Table错误解决方法
- magento -- magento错误:SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'core_resource' already exists
- SQLSTATE[42S02]: Base table or view not found: 1146 Table 'aplum.t_blogger_generalize' doesn't exist
- MySQL导入.sql文件以及#1146 - Table 'hibernate.person_email' doesn't exist
- thinkphp3.2.2升级3.2.3后 Base table or view not found: 1146解决办法
- Laravel使用php artisan migrate报错: [PDOException] SQLSTATE[42S02]: Base table or view not found: 114
- ERROR 1146 (42S02): Table 'mysql.slow_log' doesn't exist
- SQLSTATE[42S22]: Column not found: 1054 Unknown column 'tbl_contact' in 'where clause'.
- undefined method `devise' for User(Table doesn't exist):Class解决方法
- 解决Discuz! X2.5 后台能登陆,前台提示“[1146] Table 'xxx.myrepeats' doesn't exist”错误
- com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'bbs2011._catgory' doesn't exist
- 安装Magento报错:SQLSTATE[42000]: Syntax error or access violation: 1067 Invalid default value for 'perio
- Database ERROR:Table 'snort.acid_ag' doesn't exist
- 1146 - Table 'xxx.xxx' doesn't exist
- 解决 Class not found和Base table or view not found: 1051 问题
- [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist
- hive java.sql.SQLException: Table/View 'PARTITION_STATS_V2' already exists in Schema 'APP'.
- MySql数据库文件frm的移植 (ERROR 1146 (42S02): Table 'xxx.xxxx&#03
- django.db.utils.ProgrammingError: (1146, "Table 'test_b.products_category' doesn't exist")