Discuz Update cache Hint (1146) Table *.common_member_archive doesn t exist

Source: Internet
Author: User
Tags php debug

discuz! Database Error(1146) Table ' ****.common_member_archive ' doesn ' t existreplace into common_member_archive SELECT * From Common_member WHERE uid (' 8 ', ' 9 ', ' 10 ')

PHP Debug

No. File Line Code
1 forum.php 49 Discuz_application->init ()
2 source/class/discuz/discuz_application.php 70 Discuz_application->_init_cron ()
3 source/class/discuz/discuz_application.php 482 Discuz_cron::run ()
4 source/class/discuz/discuz_cron.php 42 Include (%s)
5 source/include/cron/cron_member_optimize_daily.php 13 Table_common_member->split (%d)
6 source/class/table/table_common_member.php 364 Discuz_database::query (%s, Array, False, True)
7 source/class/discuz/discuz_database.php 136 Db_driver_mysql->query (%s, false, True)
8 source/class/db/db_driver_mysql.php 151 Db_driver_mysql->halt (%s,%d,%s)
9 source/class/db/db_driver_mysql.php 218 Break ()

Solution One

Method: In Webmaster-database-Upgrade (discuz! Database upgrade-Please paste the database upgrade statement below to execute the statement:

Note Pre_ If your database prefix is something else please write well.
Copy the code, and if you don't find the input window that executes the statement, modify the $_config[admincp][runquery] setting in config/config_global.php to 1 (after confirming that the 1146 error has been resolved after the statement has been safely executed) Then configure the back to be refreshed before entering execution.
Recommend backing up data before executing the statement for data security

Back up the table first pre_common_setting

DELETE from ' pre_common_setting ' WHERE ' skey ' = ' membersplit ';

Workaround Two

Method: Log in phpMyAdmin and then find the corresponding database table. Back up each of the following tables

Pre_common_member pre_common_member_profile pre_common_member_field_forum pre_common_member_field_home pre_common_ Member_status Pre_common_member_count

And then duplicate a copy and name the following plus _archive

Finally, you can optimize the tool-schedule task-daily user table. Run up. If also reported is wrong, continue copying the datasheet name plus _archive.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.