mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
mariadb: add page (#15771)
Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> Co-authored-by: Wiktor Perskawiec <git@spageektti.cc> Co-authored-by: CleanMachine1 <78213164+CleanMachine1@users.noreply.github.com> Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
This commit is contained in:
parent
004ea96001
commit
716d1e7ec6
1 changed files with 36 additions and 0 deletions
36
pages/common/mariadb.md
Normal file
36
pages/common/mariadb.md
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
# mariadb
|
||||||
|
|
||||||
|
> The mariadb client tool.
|
||||||
|
> More information: <https://mariadb.com/kb/en/mariadb-command-line-client/>.
|
||||||
|
|
||||||
|
- Connect to a specific MariaDB database:
|
||||||
|
|
||||||
|
`mariadb {{db_name}}`
|
||||||
|
|
||||||
|
- Connect to a specific MariaDB database using username and password:
|
||||||
|
|
||||||
|
`mariadb --user {{user_name}} --password {{your_password}} {{db_name}}`
|
||||||
|
|
||||||
|
- Show warnings after every statement in interactive and batch mode:
|
||||||
|
|
||||||
|
`mariadb --show-warning`
|
||||||
|
|
||||||
|
- Display less verbose outputs (can be used multiple times to produce less output):
|
||||||
|
|
||||||
|
`mariadb {{-s|-ss|-sss|--silent}}`
|
||||||
|
|
||||||
|
- Execute SQL statements from a script file:
|
||||||
|
|
||||||
|
`mariadb {{db_name}} < {{path/to/script.sql}} > {{path/to/output.tab}}`
|
||||||
|
|
||||||
|
- Check memory and open file usage at exit:
|
||||||
|
|
||||||
|
`mariadb --debug-check`
|
||||||
|
|
||||||
|
- Connect using a socket file for local connections:
|
||||||
|
|
||||||
|
`mariadb {{[-S|--socket]}} {{path/to/socket_name}}`
|
||||||
|
|
||||||
|
- Display help:
|
||||||
|
|
||||||
|
`mariadb {{[-?|--help]}}`
|
Loading…
Add table
Reference in a new issue