请在 下方输入 要搜索的题目:

you have been tasked with creating a QA MySQL instance a DB host,which already has one large instance in/var/lib/mysql/running as the mysql user. The MySQL configuration file for the existing . (mysqlD.Datadir =/var/lib/mysql Log_error =/var/log/mysqld.log Innodb_data_home__dir =/data/innodb Innodb_log_file_mize =512M The default instance was installed using the OS package manager .the latest binaries for both client and server the are Already in ENV PATH. The new instance will run as a different user from the existing instance for security purposes. You create the new data directory successfully and move on to initialize new DATADIR. You verify the output to confirm the operation’s success: mysqlQA@linux/var/lib/]$ mysqld --initialize --datadir =/var/lib/mysql_QA 2 >&1 |tall -n3 2018-05-03T12:16:10.928809Z 0 ERROR] Could not open file ‘/var/log/mysqld.log’ for error logging:Permission Denied 2018-05-03T12:16:10.928841Z 0 ERROR] Aborting mysqlQA2 Linux /var/lib/]$ The initialization of the instance has faileD.What would you do to enable the initialization to succeed?


A、Change permissions on/var/log/mysqld.log to allow writes.
B、Pass --log--error=/var/log/mysql_QA/mysqld.log
C、Use mysql_install_d
B、
D、Use --no-defaults to ignore the existing config file in the default PATH.

发布时间:2025-06-30 02:09:15
推荐参考答案 ( 由 快搜搜题库 官方老师解答 )
联系客服
答案:B
专业技术学习
专业技术学习
搜搜题库系统