mysql
Verified for current stable LTS
Mysql Commands
Mysql command syntax with verified terminal examples.
Commands
7 commands for Mysql
mysql Operations
Mysql Command: Connect To Database
mysql <database_name> mysql Operations
Mysql Command: Connect To Database Another Host
mysql -h <database_host> <database_name> mysql Operations
Mysql Command: Connect To Database Prompt Password
mysql -u <user> -p <database_name> mysql Operations
Mysql Command: Connect To Database Via Unix Socket
mysql -S <path/to/socket.sock> mysql Operations
Mysql Command: Execute Sql From Script File
mysql -e "source <filename.sql>" <database_name> mysql Operations
Mysql Command: Restore All Databases From Backup Prompt Password
mysql < <path/to/backup.sql> -u <user> -p mysql Operations
Mysql Command: Restore Database From Backup Prompt Password
mysql < <path/to/backup.sql> -u <user> -p <database_name> Suggest a Mysql Command
Submit missing workflows, corrections, or verified alternatives for this tool.
FAQ
Coverage: Focused examples for common Mysql workflows.
Verified version: current stable LTS.
Verification: Test commands in a disposable workspace and submit notes for edge cases.