繁体   English   中英

在 AWS RDS 上运行 checkForServerUpgrade 时“configPath”的值

[英]Value for 'configPath' when running checkForServerUpgrade on AWS RDS

为了准备从 mysql 5.7 升级到 mysql 8,我想运行升级实用程序检查程序 这是我到目前为止所做的:

  1. 在我的机器上安装了mysqlsh
  2. 启动mysqlsh
  3. 针对我要升级的服务器执行util.checkForServerUpgrade

这是我在第 3 步中使用的确切命令:

util.checkForServerUpgrade('root@my-remote-host:3306', { "password":"my-password" })

这运行正常,但一些检查没有执行,因为我没有提供configPath参数。 例如,这是我收到的警告:

14) Removed system variables for error logging to the system log configuration
  To run this check requires full path to MySQL server configuration file to be specified at 'configPath' key of options dictionary
  More information:
    https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-13.html#mysqld-8-0-13-logging

有人知道我应该为configPath参数提供的值吗?

我尝试使用定义 configPath 的命令 util.checkForServerUpgrade 来做同样的事情,但没有成功。 然后我尝试直接从 mysqlsh shell 外部运行相同的命令,并成功:

mysqlsh -- util check-for-server-upgrade root@localhost --target-version=8.0.13 --output-format=JSON --config-path=/etc/mysql/my.cnf

它奏效了。 需要注意的是,当我尝试从 session root@localhost 中的 mysqlsh 运行命令时:

util.checkForServerUpgrade({"configPath":"/etc/mysql/my.cnf"})

mysqlsh 回复:“Util.checkForServerUpgrade:参数 #1:连接选项中的值无效:configPath (ArgumentError)”

尝试放入连接字符串,例如,

util.checkForServerUpgrade('root@localhost',{'configPath': '/etc/my.cnf'})

这对我有用,但没有连接字符串就不行。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM