Test MySQL reachability from the gateway host
Start with the network path. If the gateway cannot resolve or reach the server, credentials and schema settings do not matter yet.
Test-NetConnection 127.0.0.1 -Port 3306
Test-NetConnection <mysql-server-name-or-ip> -Port 3306
Resolve-DnsName <mysql-server-name>
Test the MySQL login with mysql.exe or Workbench
Run the same host, port, database, and username that Power Automate will use. If mysql.exe is not in PATH, use its full installation path.
& "C:\Program Files\MySQL\MySQL Server 8.0\bin\mysql.exe" -h 127.0.0.1 -P 3306 -u <user> -p <database> -e "SELECT CURRENT_USER(), DATABASE();"
Confirm MySQL account host grants
MySQL accounts include a user and host. A user that works as user@localhost might not work as user@% or user@127.0.0.1 unless each account/grant exists.
CREATE USER IF NOT EXISTS 'flowmigrator_mysql_user'@'%' IDENTIFIED BY '<password>';
GRANT SELECT, INSERT, UPDATE, DELETE ON flowmigrator_mysql_lab.* TO 'flowmigrator_mysql_user'@'%';
FLUSH PRIVILEGES;
Check the gateway driver/provider after MySQL client changes
If the local login works but Power Automate still fails, verify the MySQL provider on the gateway machine and restart the gateway service after driver changes.
Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*','HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*' | Where-Object { $_.DisplayName -like '*MySQL Connector/NET*' } | Select DisplayName, DisplayVersion
Restart-Service PBIEgwService