Error when creating temporary table
-
MySql version – 5.5.30
MySql client version – 5.0.45
PHP version – 5.2.5
OS : Windows XPI am developing a shop site using WooCommerce.
During its initialisation, WooCommerce adds extra tables to the database.
Here is an example of the table name causing problems :
prefix_woocommerce_downloadable_product_permissions
It has 51 characters.
When the plugin generates the temporary table name, it gives this :
1444147631184_prefix_woocommerce_downloadable_product_permissions
It has 65 characters.
The temporary table creation fails as the name exceeds the 64 character limit.Note that the log entry is misleading, here are two lines for information :
[Tuesday 6th October 2015 : 06:10:49pm] Creating table prefix_woocommerce_downloadable_product_permissions has been failed.
[Tuesday 6th October 2015 : 06:10:51pm] Table 1444147631184_prefix_woocommerce_downloadable_product_permissions has been created, BUT inserting rows failed. This happens sometimes when a table had been updated during staging process. Exclude this table from copying and try again. Offset: 0This is not a major problem for me as the table is empty, but it blocks the staging process.
The topic ‘Error when creating temporary table’ is closed to new replies.