问题
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