Hello,
Last week I installed a new server with FreeBSD 9.1-RELEASE. On this server I did a clean install of mysql56-server. I have several others where I upgraded from earlier versions of mysql to 5.6 but on this server I installed 5.6 first.
On the new server with the clean install, mysql is in a strict mode where any column inserted without a default value it throws an error, saying
I have determined that this is because the sql_mode is set to STRICT_TRANS_TABLES. I have a bunch of old applications that need to be updated before using this strict mode is feasible. In the meantime, In phpMyAdmin, I can send the command
I have edited /etc/my.cnf and removed STRICT_TRANS_TABLES. All it says now is:
The server does not seem to be reading this from the configuration and I'm not sure why. Any help or insight would be greatly appreciated.
If it's helpful, here is the error log from the last restart and failed insert:
Thanks in advance!
Last week I installed a new server with FreeBSD 9.1-RELEASE. On this server I did a clean install of mysql56-server. I have several others where I upgraded from earlier versions of mysql to 5.6 but on this server I installed 5.6 first.
On the new server with the clean install, mysql is in a strict mode where any column inserted without a default value it throws an error, saying
Code:
Error Code: 1364. Field 'FOO' doesn't have a default value.
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"
and inserts will work without an error. However, I cannot seem to configure the server to start in this mode. I have edited /etc/my.cnf and removed STRICT_TRANS_TABLES. All it says now is:
Code:
sql_mode="NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
The server does not seem to be reading this from the configuration and I'm not sure why. Any help or insight would be greatly appreciated.
If it's helpful, here is the error log from the last restart and failed insert:
Code:
130818 13:24:09 mysqld_safe Starting mysqld daemon with databases from /var/db/mysql
2013-08-18 13:24:09 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2013-08-18 13:24:58 829fd4400 InnoDB: Error: Table "mysql"."innodb_table_stats" not found.
2013-08-18 13:24:58 829fd4400 InnoDB: Error: Fetch of persistent statistics requested for table "FOO"."USERS" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead.
2013-08-18 13:24:58 829fd4400 InnoDB: Error: Table "mysql"."innodb_table_stats" not found.
2013-08-18 13:24:58 829fd4400 InnoDB: Error: Fetch of persistent statistics requested for table "MIGHTCLUB"."MIGHT_FLOCK" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead.
Thanks in advance!