[英]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: 我正在使用mariadb,并且mysql.server start我想指定mariadb文档中给出的启动选项:
innodb_page_size=4k innodb_page_size = 4k
however, when I try: 但是,当我尝试:
mysql.server start --innodb_page_size=4k 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. 这不起作用,我也尝试将innodb_page_size放在my.cnf中的[mysqld]标签下,并且当我尝试启动mysql服务器时,这也导致了错误。
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 实际上,对于Mysql / MariaDB,每个选项都有一个命令行启动选项的名称,以及my.cnf配置文件
--innodb-page-size
for passing the option from the command line 使用--innodb-page-size
从命令行传递选项 innodb_page_size
for passing the option from my.cnf configuration file 使用innodb_page_size
从my.cnf配置文件中传递选项 Options taken from mysql 5.7 version's documentation . 选项取自mysql 5.7版本的文档 。
Best regards. 最好的祝福。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.