Let me preface this by saying I have absolutly no idea what I'm doing with Moodle. I've been in IT for a long time but never had much to do with Web and DB services. I was asked by a NFP I volunteer at to get them setup.
I believe I have created the Database server correctly running MYSQL on one MS 2019 server box. On the other MS 2019 server box I believe I have installed IIS correctly and hosted the moodle www and relevant php options.
As the DB and Web services are not on the same box I opened the config.php file and set the options as I specififed when creating the database. I have tried using FQDN and IP with both root and moodleuser accounts and in all instances it states that the "Database connection failed".
If I use telnet on 3306 I get the expected result.
I appreciate any assistance.