mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-09 19:33:49 +02:00
Pages: mysql
This commit is contained in:
parent
6bf0e6019e
commit
ce3cbad34c
1 changed files with 19 additions and 0 deletions
19
pages/common/mysql.md
Normal file
19
pages/common/mysql.md
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
# mysql
|
||||||
|
|
||||||
|
> the MySQL command-line tool
|
||||||
|
|
||||||
|
- Connect to database *database_name*
|
||||||
|
|
||||||
|
`mysql {{database_name}}`
|
||||||
|
|
||||||
|
- Connect to database *database_name* using *user* and *password* credentials.
|
||||||
|
|
||||||
|
`mysql -u {{user}} -p{{password}} {{database_name}}`
|
||||||
|
|
||||||
|
or
|
||||||
|
|
||||||
|
`mysql --user={{user}} --password={{password}} {{database_name}}`
|
||||||
|
|
||||||
|
- Execute SQL statements in a script file (batch file)
|
||||||
|
|
||||||
|
`mysql {database_name} < script.sql`
|
Loading…
Add table
Reference in a new issue