flexview非法混合排序错误

时间:2013-08-01 05:46:31

标签: mysql materialized-views

我尝试设置flexview以支持MySQL中的物化视图,但发生了以下错误:

PHP Strict standards:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/share/php/Console/Getopt.php on line 109
PHP Stack trace:
PHP   1. {main}() /home/arash/application/flexviews/consumer/setup_flexcdc.php:0
PHP   2. get_commandline() /home/arash/application/flexviews/consumer/setup_flexcdc.php:29
PHP   3. Console_Getopt->getopt2() /home/arash/application/flexviews/consumer/setup_flexcdc.php:14
PHP   4. Console_Getopt->doGetopt() /usr/share/php/Console/Getopt.php:75
PHP Strict standards:  Non-static method PEAR::isError() should not be called statically in /home/arash/application/flexviews/consumer/setup_flexcdc.php on line 15
PHP Stack trace:
PHP   1. {main}() /home/arash/application/flexviews/consumer/setup_flexcdc.php:0
PHP   2. get_commandline() /home/arash/application/flexviews/consumer/setup_flexcdc.php:29
setup starting
SQL_ERROR IN STATEMENT:
DELETE bcs.* FROM `binlog_consumer_status` bcs where exec_master_log_pos >= master_log_size and server_id=1 AND master_log_file not in (select log_name from log_list)
DELETE bcs.* FROM `binlog_consumer_status` bcs where exec_master_log_pos >= master_log_size and server_id=1 AND master_log_file not in (select log_name from log_list)
Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8_unicode_ci,IMPLICIT) for operation '='

为什么会发生此错误?

1 个答案:

答案 0 :(得分:0)

看起来您的数据库使用UTF8作为客户端或服务器字符集,但flexcdc创建的临时表使用latin1。

您可以尝试更改CREATE TEMPORARY TABLE中创建log_list的字符集。