mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-24 09:35:25 +02:00
Update mysql.md
Added an example with a database on a different host.
This commit is contained in:
parent
063766060c
commit
c4147a5596
1 changed files with 5 additions and 1 deletions
|
@ -8,7 +8,11 @@
|
|||
|
||||
- Connect to a database using credentials
|
||||
|
||||
`mysql -u {{user}} -p{{password}} {{database_name}}`
|
||||
`mysql -h {{database_host}} -u {{user}} -p{{password}} {{database_name}}`
|
||||
|
||||
- Connect to a database on a different host. MySQL will prompt for a password if none is supplied.
|
||||
|
||||
`mysql -h {{database_host}} -u {{user}} -p {{database_name}}`
|
||||
|
||||
- Execute SQL statements in a script file (batch file)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue