Connect app to remote MySQL DB

If you're a new user of AppGini, feel free to ask general usage questions, or look for answers here.
Post Reply
mysh_eireannach
Veteran Member
Posts: 35
Joined: 2016-02-16 22:31

Connect app to remote MySQL DB

Post by mysh_eireannach » 2018-05-29 19:03

Hi All,

I have question. Need connect app located on first web server, to MySQL DB on second.

What I need to use at config.php $dbServer = 'localhost' instead localhost?

I add second server IP Address to Remote MySQL. But if I replace 'localhost' with 'Second server IP', no connection.

In addition, checked 'Second server IP:3306' same, no connection.

Any tips for my problem?

Thanks

R Tammam
Veteran Member
Posts: 113
Joined: 2017-08-26 15:35

Re: Connect app to remote MySQL DB

Post by R Tammam » 2018-05-31 13:48

Hello mysh_eireannach,
i think you will need to make sure that port 3306 on the second server is open

pbottcher
AppGini Super Hero
AppGini Super Hero
Posts: 1635
Joined: 2018-04-01 10:12

Re: Connect app to remote MySQL DB

Post by pbottcher » 2018-06-02 19:16

Also verify that your user is allowed to connect. An verify what kind of mysql installation you are running. If it is a secured installation you need special settings.
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.

Post Reply