Can't connect to a database from a dedicated server!.

Status
This thread has been locked.

ImGomezPvP

Feedback score
0
Posts
3
Reactions
0
Resources
0
So i already made a post on spigot about this but, i didn't got much help from there

So we made a website for our server which includes the Stats/elo from one of our plugins by using a database, i already tested it on my computer with a database from a different website and it works just fine, but if i try to connect it to the dedicated's server database it wont work, We tried to host it on the dedicated server and the pages that don't need the database work fine but not the ones that require a database.

Here some errors that we get:
Code (Text):
Connection Failed: Unknown MySQL server host '172.106.202.44:3306' (11)

Not Found
The requested URL /perfil was not found on this server.
Apache/2.4.7 (Ubuntu) Server at mc.nexusplayers.net Port 80
Its all hosted on 1 machine


I already tried to connect to the database from the dedicated server from my computer to test a plugin but it just wont let me.

Any help?
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

matthewp

Software Developer
Supreme
Feedback score
14
Posts
542
Reactions
503
Resources
0
If the plugin is running on the dedicated server, use localhost. If you are trying to connect to it remotely, make sure you don't have any firewalls blocking the port 3306.
 

Tripps

SysAdmin | Developer
Premium
Feedback score
19
Posts
784
Reactions
313
Resources
0
So i already made a post on spigot about this but, i didn't got much help from there

So we made a website for our server which includes the Stats/elo from one of our plugins by using a database, i already tested it on my computer with a database from a different website and it works just fine, but if i try to connect it to the dedicated's server database it wont work, We tried to host it on the dedicated server and the pages that don't need the database work fine but not the ones that require a database.

Here some errors that we get:
Code (Text):
Connection Failed: Unknown MySQL server host '172.106.202.44:3306' (11)

Not Found
The requested URL /perfil was not found on this server.
Apache/2.4.7 (Ubuntu) Server at mc.nexusplayers.net Port 80
Its all hosted on 1 machine


I already tried to connect to the database from the dedicated server from my computer to test a plugin but it just wont let me.

Any help?
Seeing as this is a very common issue, since connection to the server is disabled you need to allow it from the mysql config file.
 

buildblox

Entrepreneur
Deactivated
Feedback score
16
Posts
471
Reactions
429
Resources
0
So i already made a post on spigot about this but, i didn't got much help from there

So we made a website for our server which includes the Stats/elo from one of our plugins by using a database, i already tested it on my computer with a database from a different website and it works just fine, but if i try to connect it to the dedicated's server database it wont work, We tried to host it on the dedicated server and the pages that don't need the database work fine but not the ones that require a database.

Here some errors that we get:
Code (Text):
Connection Failed: Unknown MySQL server host '172.106.202.44:3306' (11)

Not Found
The requested URL /perfil was not found on this server.
Apache/2.4.7 (Ubuntu) Server at mc.nexusplayers.net Port 80
Its all hosted on 1 machine


I already tried to connect to the database from the dedicated server from my computer to test a plugin but it just wont let me.

Any help?

If you want, I can fix this up for around $5.
Please add me on Skype: live:areksds_1
 
Status
This thread has been locked.
Top