I just installed Magento 2.1.9 on CentOS 7.4. I have configured MySql 5.7.17. I am using the web-based Setup Wizard.
On the step for 'Add a Database' I get the error
SQLSTATE[HY000] [2002] Permission denied
My MySql server is on a separate host from my Magento2. I am able to connect to the MySql server using command line from the Magento2 server.
How can I get past this error in the web-based Setup Wizard?
mysql> SHOW GRANTS FOR CURRENT_USER; +------------------------------------------------------+ | Grants for magento@% | +------------------------------------------------------+ | GRANT USAGE ON *.* TO 'magento'@'%' | | GRANT ALL PRIVILEGES ON `magento`.* TO 'magento'@'%' | +------------------------------------------------------+ 2 rows in set (0.01 sec)