Merge pull request #433 from vpilot/patch-1

missing space between -p and {{password}}
waldyrious/alt-syntax
Igor Shubovych 2015-12-30 12:36:37 +02:00
commit 220ded5a22
2 changed files with 6 additions and 6 deletions

View File

@ -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)

View 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}}`