Database
MySQL Commands
Manage MySQL databases from the command line. Learn mysql client commands, queries, and administration tasks.
57 commands
Pro Tips
Use 'mysql -e "query"' for one-off queries without entering interactive mode.
Use 'mysqldump' for backups and 'mysql < dump.sql' to restore databases.
Common Mistakes
Running mysql as root without password is a security risk. Always set a root password.