mysql client connection gcloud

情到浓时终转凉″ 提交于 2020-01-24 04:26:10

问题


I have installed gcloud client library but GCP keeps on giving me this error what could the issue

ERROR: (gcloud.sql.connect) Mysql client not found. Please install a mysql client and make sure it is in PATH to be able to connect to the database instance


回答1:


The problem is that either you have not installed the MySQL client locally, or gcloud can't find it.

If you have not installed MySQL yet, follow the instructions to do so.

If you have installed MySQL but you're still getting this error, try entering mysql at the shell prompt. If you get a command not found error, MySQL is missing from your $PATH, and you need to figure out where it has been installed.

For example, on OS X, MySQL defaults to /usr/local/mysql/bin/. Add this to your $PATH, and it should start working:

export PATH=$PATH:/usr/local/mysql/bin/


来源:https://stackoverflow.com/questions/44429326/mysql-client-connection-gcloud

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!