我正在研究在只读模式下运行MySQL对我的代码的影响,我正在运行MySQL 5.5.49.0和PHP5.5.9.1(在Ubuntu14.04上)。我使用以下命令将数据库设置为只读:set global read_only = 1;ERROR 1223Can't execute the query because you have a conflicting read lock
我正在尝试使用主机挂载只读的数据目录在码头容器中启动MariaDB。MySQLd当然会关闭主机。2380610236d1:/# mysqld --innodb-read-only
140807 19:19:38 [Warning] Can't create test file /var/lib/mysql:19:38 [ERROR] mysqld: Got error 'Can't create file' when trying to use aria control file