简体   繁体   中英

How to specify start up option with mysql.server start

I am using mariadb, and mysql.server start I want to specify a start up option as given in the mariadb documentation:

innodb_page_size=4k

however, when I try:

mysql.server start --innodb_page_size=4k

this doesn't work I also tried to put innodb_page_size in my.cnf under the [mysqld] tag, and this also resulted in a error when I tried to startup the mysql server.

Where exactly can I specify these startup options?

You have mistyped the option. Indeed for Mysql/MariaDB each option has a name for the command line's startup options, and the my.cnf configuration file

  • use --innodb-page-size for passing the option from the command line
  • use innodb_page_size for passing the option from my.cnf configuration file

Options taken from mysql 5.7 version's documentation .

Best regards.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM