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
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/
We get this error when mysql client is not installed in your machine.
C:\Program Files\MySQL\MySQL Server 8.0\bin
to PATH
environment variable.This will solve the problem.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With