创建数据库报错--MySQL server is running with the --super-read-only option


创建数据库时报了这个问题:

  • The MySQL server is running with the --super-read-only option so it cannot exeute this statement

解决:

  • read-only 只读
  • 库是读写分离,检查下连接是否是读库,
  • 改成写库连接即可