GreatSQL社区

搜索

[已解决] 新手请教mysqlrouter初始化报错解决办法

132 2 2024-3-26 11:06
本帖最后由 tony 于 2024-3-28 10:31 编辑
  1. root@mgr01:~# mysqlrouter --bootstrap root@localhost:3306 --user=mysqlrouter
  2. Please enter MySQL password for root:
  3. Error: Expected MySQL Server 'localhost:3306' to contain the metadata of MySQL InnoDB Cluster, but the schema does not exist.
  4. Checking version of the metadata schema failed with: Error executing MySQL query "SELECT * FROM mysql_innodb_cluster_metadata.schema_version": Unknown database 'mysql_innodb_cluster_metadata' (1049)

  5. See https://dev.mysql.com/doc/mysql-shell/en/deploying-production-innodb-cluster.html for instructions on setting up a MySQL Server to act as an InnoDB Cluster Metadata server
复制代码
mysqlrouter版本8.0.35  mysql版本也是8.0.35
全部回复(2)
KAiTO 2024-3-26 11:15:07
你没有用MySQL shell 创建的mgr,所以没有生成 InnoDB Cluster 的元数据信息,使用mysql shell 即可
tony 2024-3-26 13:34:59
KAiTO 发表于 2024-3-26 11:15
你没有用MySQL shell 创建的mgr,所以没有生成 InnoDB Cluster 的元数据信息,使用mysql shell 即可 ...

原来如此
tony

5

主题

0

博客

21

贡献

新手上路

Rank: 1

积分
32

合作电话:010-64087828

社区邮箱:greatsql@greatdb.com

社区公众号
社区小助手
QQ群
GMT+8, 2024-4-28 18:31 , Processed in 0.020756 second(s), 13 queries , Redis On.
快速回复 返回顶部 返回列表