HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

mysqld — Start the MySQL database server. More information: <https://dev.mysql.com/doc/refman/en/mysqld.html>

Submitted by: @import:tldr-pages··
0
Viewed 0 times
theservercommandstartdatabaseclimysqlmysqld

Problem

How to use the mysqld command: Start the MySQL database server. More information: <https://dev.mysql.com/doc/refman/en/mysqld.html>.

Solution

mysqld — Start the MySQL database server. More information: <https://dev.mysql.com/doc/refman/en/mysqld.html>.

Start the MySQL database server:
mysqld


Start the server, printing error messages to the console:
mysqld --console


Start the server, saving logging output to a custom log file:
mysqld --log={{path/to/file.log}}


Print the default arguments and their values and exit:
mysqld --print-defaults


Start the server, reading arguments and values from a file:
mysqld --defaults-file={{path/to/file}}


Start the server and listen on a custom port:
mysqld --port={{port}}


Display help:
mysqld --verbose --help

Code Snippets

Start the MySQL database server

mysqld

Start the server, printing error messages to the console

mysqld --console

Start the server, saving logging output to a custom log file

mysqld --log={{path/to/file.log}}

Print the default arguments and their values and exit

mysqld --print-defaults

Start the server, reading arguments and values from a file

mysqld --defaults-file={{path/to/file}}

Context

tldr-pages: common/mysqld

Revisions (0)

No revisions yet.