From the command line, one can get **mysql** and **mysqldump** to read a config file using
--defaults-extra-file
. This can contain username and password for connection.
Is there a way to get **mysqli** from **php** to read a similar file? I know I could just read it and parse it, but that destroys its protection.
Asked by Rohit Gupta
(2122 rep)
Oct 3, 2022, 11:03 PM
Last activity: May 18, 2023, 01:46 PM
Last activity: May 18, 2023, 01:46 PM