This function will create a MySQL option file at the given path. To ensure it works, set these environment variables before calling this function:
MYSQL_HOST
: The host name of the MySQL server.MYSQL_USER
: The user name of the MySQL server.MYSQL_PASSWORD
: The password of the MySQL server.