Unable to setup mysql database connection with dreamfactory v2.2.0?




Last i used dreamfactory v2.1.2 but now i am using v2.2.0 version and facing issues while setting mysql database connectivity with its neweset version…
Can anyone tell me how to establish connection, any link with proper guide ?



Hello @aamirk,

Can you answer the following questions so I can get more information in order to help troubleshoot this issue?

  • Are you using ‘localhost’ or ‘’ in your host config?
  • Can you Telnet the database?
  • What is the error message you are receiving?

Any other details would help.



I am getting SQLSTATE[HY000] [2002] Connection timed out error.
You can see the screenshots for more details.

Thanks @AlexBowen for your response.


Ok, i got what i am doing wrong i.e, in “Host” i mentioned “mysql:host=localhost”.But it should be only “localhost”,

Now, i am getting new error “SQLSTATE[HY000] [1045] Access denied for user ‘df_admin’@‘localhost’ (using password: YES)”.

Please tell me how to resolve this error.
Thanks in advance.


Hey @aamirk,

Can you confirm that your config db server has access rules set for you to access it?



Hey @AlexBowen

Yes, i gave all the privileges and access permission but still showing access denied using password yes.



Hey @AlexBowen

It was “” instead of “localhost” In ‘Host’ feild.

Now, everything is working fine.

Thanks a lot for your help.


I am glad to hear that you figured it out @aamirk! Thanks for also posting about how you resolved the issue.