mirror of https://github.com/CrimsonTome/tldr.git
Merge pull request #433 from vpilot/patch-1
missing space between -p and {{password}}waldyrious/alt-syntax
commit
220ded5a22
|
@ -6,9 +6,9 @@
|
|||
|
||||
`mysql {{database_name}}`
|
||||
|
||||
- Connect to a database using credentials
|
||||
- Connect to a database, user will be prompted for a password
|
||||
|
||||
`mysql -u {{user}} -p{{password}} {{database_name}}`
|
||||
`mysql -u {{user}} --password {{database_name}}`
|
||||
|
||||
- Execute SQL statements in a script file (batch file)
|
||||
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
|
||||
> Backups mysql databases
|
||||
|
||||
- creating a backup
|
||||
- Create a backup, user will be prompted for a password
|
||||
|
||||
`mysqldump -u {{user}} -p{{password}} {{database_name}} > {{filename.sql}}`
|
||||
`mysqldump -u {{user}} --password {{database_name}} > {{filename.sql}}`
|
||||
|
||||
- restoring a backup
|
||||
- Restoring a backup, user will be prompted for a password
|
||||
|
||||
`mysql -u {{user}} -p{{password}} {{database_name}} < {{filename.sql}}`
|
||||
`mysql -u {{user}} --password {{database_name}} < {{filename.sql}}`
|
||||
|
|
Loading…
Reference in New Issue