1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-30 10:15:28 +02:00
tldr/pages/common/mysql.md
Igor Shubovych ce3cbad34c Pages: mysql
2014-05-08 22:37:47 +03:00

19 lines
No EOL
404 B
Markdown

# 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`