Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Ctrl + C exits the MySQL client

If I use the Cloud SQL for MySQL client, hitting Ctrl + C directly exits the shell instead of doing nothing. This is annoying behavior since most developers are used to hitting Ctrl + C for exiting out of an unfinished/improperly typed query.

Steps to reproduce:

Use gcloud CLI to login to MySQL:

gcloud sql connect <name> --user=<username> --project <gcloud-project>

Select your database

Hit Ctrl + C

Observe that the client exits.

References: https://dba.stackexchange.com/a/132936

0 0 61
0 REPLIES 0