MySQL initial statement in ODBC connector (under windows) not taking effect -


I am using MySQL ODBC 5.1 driver under Windows to connect to my database. In the "Initial Statement" field, I have configured this to run the SET session binlog_format = 'ROW' , when the connection starts. Unless I had to restart mysql database server, it was working fine.

No, not all connections are started with this binolog format, and instead use system defaults. The variable '% binlog%' that is running on the server shows 'STATEMENT' instead of 'ROW'.

I tried to enable debug logging in the driver, but it is not showing any useful information tried to restart MySQL server - no luck. Both the event viewer and the mysql server were seen in the error log - there is no indication that anything is wrong.

Does anyone know whether it is not right?

Edit: Checked privilege (as suggested by Charles), and the user has all the privileges on the server.

This indicates that the user is running in 5.1.29 As SUPER is private. Can you check the permissions of the user you are connecting with? I can bet that your user is not at any time at super , although I really expect MySQL to complain about it.

Comments