【发布时间】:2018-05-26 20:28:46
【问题描述】:
我正在尝试使用 Compose.io 的 Mysql 服务 默认情况下,此服务具有复制(3 个节点) 当我尝试通过 Drush 或 WebUI 安装 Drupal 时,出现一些错误:
Failed to INSERT a value into a test table on your database server. We tried inserting a value with the command INSERT INTO {drupal_install_test} (id) VALUES (1) and the server reported the following error: SQLSTATE[HY000]: General error: 3098 The table does not comply with the requirements by an external plugin.: INSERT INTO {drupal_install_test} (id) VALUES (1); Array ( ) .
Failed to UPDATE a value in a test table on your database server. We tried updating a value with the command UPDATE {drupal_install_test} SET id = 2 and the server reported the following error: SQLSTATE[HY000]: General error: 3098 The table does not comply with the requirements by an external plugin.: UPDATE {drupal_install_test} SET id = 2; Array ( ) .
Failed to DELETE a value from a test table on your database server. We tried deleting a value with the command DELETE FROM {drupal_install_test} and the server reported the following error: SQLSTATE[HY000]: General error: 3098 The table does not comply with the requirements by an external plugin.: DELETE FROM {drupal_install_test}; Array ( ) .
当复制开启时,每个表都需要有一个主键,显然 Drupal 默认不添加这些。
在配置 Drupal 以使用 Mysql 数据库并启用 Replication 时,是否有任何解决方法?
请注意,Compose.io 不会向用户公开副本,而只会向用户公开主节点。
【问题讨论】: