I posted a while back about running mysql in a Docker container on an Apple Silicon MacBook. It’s been a while since I’ve run mysql locally, and it seems the mysqlsh client is now preferred over the previous mysql client.
With mysqlsh, after connecting, to issue a ‘use’ command to select a db, use ‘\use dbname’
Once a db is selected, to issue other mysql commands enter the sql mode with ‘\sql’ command.