我正在使用 MySQL 版本 5.5.44 运行 Ubuntu
mysqld Ver 5.5.44-0ubuntu0.14.10.1 for debian-linux-gnu on x86_64 ((Ubuntu))
我有一个带外键的数据库。我希望在系统级别(而不是在会话中)禁用外键检查。
我看到系统 var foreign_key_checks似乎控制了这种行为,但是当我/etc/mysql/my.cnf
(通过添加foreign_key_checks = 0
)设置它时,服务器将无法启动。错误日志如下所示:
150729 15:38:18 [Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in a future release. Please use the full name instead.
150729 15:38:18 [Note] Plugin 'FEDERATED' is disabled.
150729 15:38:18 InnoDB: The InnoDB memory heap is disabled
150729 15:38:18 InnoDB: Mutexes and rw_locks use GCC atomic builtins …
Run Code Online (Sandbox Code Playgroud)