When I trying to connect its hitting this error ->mysqli::mysqli(): (28000/1045): Access denied for user ‘examplec_testte1’@‘localhost’ (using password: YES). Where $parameters[‘mysql_hostname’] is ‘localhost’ & if I set $parameters[‘mysql_hostname’] = ‘172.17.0.2’ then its connecting to mysqli without error.
Is it required to do changes in any .config files OR php.ini file ?If anything else need to change please suggest me the same.
Hi Kiran
if you log into nodeworx, server settings, logs, MYSQL log, can you see the below shown (note, you may need to restart mysql to view the startup options set at the time)
170706 9:09:06 [Note] Server socket created on IP: ‘0.0.0.0’.
170706 9:09:06 [Note] - ‘0.0.0.0’ resolves to ‘0.0.0.0’;
170706 9:09:06 [Note] Server hostname (bind-address): ‘0.0.0.0’; port: 3306
If your are different, please could you post your 3 lines
Many thanks
John
In my script I did few changes i.e If I get $parameters[‘mysql_hostname’] == ‘localhost’ then I set $parameters[‘mysql_hostname’] = ‘127.0.0.1’. Now its working fine. Thank you for the information.:). I will get back to you If I found any error!.