mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-12-26 02:12:16 +03:00
Author: Vlad <vpoltava@gmail.com> Date: Mon Dec 28 22:49:37 2015 +0000
This commit is contained in:
parent
235c7f1879
commit
2479464ff3
@ -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
Block a user