Skip to main content

Start the MySQL database server.

# To start the MySQL database server:
mysqld

# To start the server, printing error messages to the console:
mysqld --console

# To start the server, saving logging output to a custom log file:
mysqld --log=<path/to/file.log>

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

# To start the server, reading arguments and values from a file:
mysqld --defaults-file=<path/to/file>

# To start the server and listen on a custom port:
mysqld --port=<port>

# To show all help options and exit:
mysqld --verbose --help