mirror of https://github.com/CrimsonTome/tldr.git
Author: Vlad <vpoltava@gmail.com> Date: Mon Dec 28 22:49:37 2015 +0000waldyrious/alt-syntax
parent
235c7f1879
commit
2479464ff3
|
@ -6,9 +6,9 @@
|
||||||
|
|
||||||
`mysql {{database_name}}`
|
`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)
|
- Execute SQL statements in a script file (batch file)
|
||||||
|
|
||||||
|
|
|
@ -2,10 +2,10 @@
|
||||||
|
|
||||||
> Backups mysql databases
|
> 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