3

django管理画面から値を挿入しようとするとエラーが発生します-

Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it accesses a non-transactional table after accessing a transactional table within the same transaction.
Request Method: POST
Request URL:    *<My URL>*
Django Version: 1.3.1
Exception Type: Warning
Exception Value:    
Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it accesses a non-transactional table after accessing a transactional table within the same transaction.
Exception Location: /Library/<Application>/2.7/site-packages/MySQLdb/cursors.py in _warning_check, line 92
Python Executable:  /usr/bin/python
Python Version: 2.7.1

Webで読んでみましたが、問題を適切に修正できませんでした。何か助けはありますか?

4

1 に答える 1

3

問題を把握して解決しました。これは、すべてのテーブルが同じエンジンで作成されたわけではないためです(新しいテーブルはmysql 5.5のために「InnoDB」の下にあり、古いテーブルはmysql 5.0のために「MyISAM」の下にありました)。

詳細な説明は次のとおりです-http: //generics7.blogspot.com/2012/08/unsafe-statement-written-to-binary-log.html

同じエンジンですべてのテーブルを作成すると、正常に機能します。

于 2012-08-30T13:23:23.883 に答える