mysql -u app -p appdb

Category: Databases & SQL

mysql -u app -p appdb

Connect to a MySQL database interactively

Connects as app to the appdb database; -p prompts for the password. Once inside, run SQL statements or backslash commands like SHOW DATABASES. Add -h for a remote host and -P for a non-default port.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.