Generate config file before setting up data dir. Make mysql_install_db use config