Hello, been having issue connecting my wordpress site to external database, after more research it seems that the issue is that even I if specify a correct DB name, user password on my Wordpress config files, Plesk tries to call / use local database and return error of user denied..I have tested connections from Server A where all files are and Server B / database via ssh and additionally I add a new DB server in Plesk to test connection and I can access the remote server, but when it goes to retrieve files for my site, it try's local DB instead of the one specified on Wordpress confg..I have bind-address on plesk Server A set to listen to the IP of the external DB...Here is the error log sample
PHP Warning: mysqli_real_connect(): (HY000/1045): Access denied for user 'wpuser to external db'@'206.189.xxx.xxx <----its calling IP of server A not the IP of the external DB as specified on Wordpress confg file so of course, the user name is not on local DB its on external so there is always "Error can not connect"...
Any idea or file I can change to fix this? I attached a screen shot.
Thank You
PHP Warning: mysqli_real_connect(): (HY000/1045): Access denied for user 'wpuser to external db'@'206.189.xxx.xxx <----its calling IP of server A not the IP of the external DB as specified on Wordpress confg file so of course, the user name is not on local DB its on external so there is always "Error can not connect"...
Any idea or file I can change to fix this? I attached a screen shot.
Thank You