【发布时间】:2020-02-13 06:26:06
【问题描述】:
我在 MySQL Shell 实用程序中以 JS 模式运行 util.checkForServerUpgrade() 函数。 我需要在文件而不是命令行中输出上述函数。
这是我使用的确切语法:
util.checkForServerUpgrade('root@localhost:3306', {"password":"abc", "targetVersion":"8.0.11", "outputFormat":"JSON", "configPath":"C:\ProgramData\MySQL\MySQL Server 5.7\my.ini"})
我已尝试添加 > output.json 以及更多内容,但对我不起作用。
【问题讨论】:
标签: javascript mysql database-administration