Read username and password from a file

Hi, I need to know how to read username and password from a file to connect to a specific mysql database and replace the data in this syntax.
MYSQL (Connect connid localhost user passwd test)
Thank you.
Regards.

Using MYQL function is deprecated instead I suggest you use OBDC , but you can use Asterisk File() function to assing variable values first from a file, also shell function will work


MYSQL(Connect connid dhhost dbuser dbpass dbname )