SyntaxFix
Write A Post
Hire A Developer
Questions
While invoking the mysql CLI, you can specify the database name through the -D option. From mysql --help:
mysql
-D
mysql --help
-D, --database=name Database to use.
I use this command:
mysql -h <db_host> -u <user> -D <db_name> -p