Can you specify the configuration file directory of mysql during the initialization of mysql, installation under linux?

1. I happened to see that when someone posted a post to initialize the mysql_install_db data directory, he saw that someone specified the location of the configuration file directory, but the command was forgotten. Can you specify it in the initialization?

2. Can you specify the initial directory of the configuration file in cmake or previous versions of. / configure? I think the configuration file is copied only when the installation is completed and there are files at the time of initialization. The cmake and configure were specified before they were installed. The dizzy
really didn"t notice it before. Now I want to look back and learn

.
Nov.01,2021

normally it is made up of

./configure --prefix=your_dir --config()=your_dir

configuration directory. After initializing the entire project, make is used to compile


didn't you download the compiled file? Enter the directory where the compilation is located, and then execute . / configure-- prefix=your_dir-- config (pseudo code) upstairs = your_dir


whether it is binary installation or source installation, you can specify your own customized parameter file during initialization:
5.6scripts/mysql_install_db-- defaults-file=/etc/my.cnf-- user=mysql
5.7bin/mysqld-- defaults-file=/etc/my.cnf-- initialize-- user=mysql

.
Menu