Cannot connect to database. Unknown MySQL server host  [SOLVED]

Please describe the issue you're having
If you accept the answer, please mark the topic as [SOLVED] by clicking the tick.

Moderators: RussH, cptr13

Forum rules
Just please remember to play nicely once you walk through the door. You can disagree with us, or any other commenters in this forum, but respect our space and keep your comments directed to the topic at hand.
Post Reply
Kempston
Posts: 8
Joined: 11 Dec 2017, 11:02
what is two(2) plus three(3) ?: 5

Cannot connect to database. Unknown MySQL server host

Post by Kempston » 10 May 2019, 09:14

Hello all,

I'm trying to install OpenCATS on a new server and connect it to an existing database on a different server. When I put in the database details in the wizard and test it, I get the error "Cannot connect to database. Unknown MySQL server host...". Any ideas?

I can connect to the database remotely, just not from my OpenCATS server (CentOS 7).

I'm not too familiar with Linux but I think there's something on the server blocking outgoing requests.

Many thanks,

Rob

Kempston
Posts: 8
Joined: 11 Dec 2017, 11:02
what is two(2) plus three(3) ?: 5

Re: Cannot connect to database. Unknown MySQL server host  [SOLVED]

Post by Kempston » 10 May 2019, 09:48

Got it working! I had skipped installing MySQL on the server as I didn't intend using it so I installed it. I also changed the server name to the IP address and now it's working. Not sure if it was necessary to install the database server but hey, it's working now.

Post Reply