admin管理员组文章数量:1354389
Specifically, is checkForServerUpgrade() available in google cloud's sql for mySQL? When I log into the cloud shell, connect to the db, and run the command, I get this.
I'm trying to update a db from MySQL 5.7 to 8.0, and I'm following the Google documentation for an in place update.
Specifically, is checkForServerUpgrade() available in google cloud's sql for mySQL? When I log into the cloud shell, connect to the db, and run the command, I get this.
I'm trying to update a db from MySQL 5.7 to 8.0, and I'm following the Google documentation for an in place update.
Share Improve this question asked Mar 31 at 3:30 Mike DeeMike Dee 5891 gold badge7 silver badges17 bronze badges2 Answers
Reset to default 1You are trying to execute checkForServerUpgrade from mysql's command line client, which does not support much beyond sql statements.
checkForServerUpgrade is only available in mysql shell utilities. Mysql shell utilities are only available in javascript and python modes, not in sql mode in mysql shell. Mysql shell can be started with mysqlsh command, not with mysql.
GCP's guidance to upgrade mysql correctly refers to mysql shell and its documentation, so you probably just mixed mysql cli up with mysql shell.
util.checkForServerUpgrade('[email protected]:3306',{"password":"password","targetVersion":"8.0.27", "outputFormat":"JSON", "configPath":"/mysql/data/306/my.cnf"})
本文标签: google cloud sqlIs checkForServerUpgrade available in mySQL 57Stack Overflow
版权声明:本文标题:google cloud sql - Is checkForServerUpgrade available in mySQL 5.7? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743969059a2570425.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论