0

我尝试设置 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 '='

为什么会发生这个错误?

4

1 回答 1

0

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

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

于 2013-08-01T07:06:16.677 回答