Jump to content

Hi all,

 

I am trying to connect to my cpanel MySQL Database by C# but doesn't seem to work at all..

 

I have looked up multiple topics and videos but all the code is very similar or does not work.

 

Below you can see the code I am using, I marked out the key bits as they belong to my server.

image.png.a12f941c75c95c189b0e382b146adaa9.png

 

When I run this code the following message appears after about 15-30 seconds.

image.png.5a82c116a493b3d8a19d6df012e932df.png

 

I have added my home IP to the access list and everything but still no joy on getting connected..

However I can access via MySQL Workbench but I am using Standard TCP/IP over SSH method.

 

Hopefully someone out there can help me.

 

Thanks in advance!

 

-Scott

 

Link to comment
https://linustechtips.com/topic/1051965-connecting-to-mysqlphpmyadmin-via-c/
Share on other sites

Link to post
Share on other sites

6 minutes ago, SD2020_ said:

Hi all,

 

I am trying to connect to my cpanel MySQL Database by C# but doesn't seem to work at all..

 

I have looked up multiple topics and videos but all the code is very similar or does not work.

 

Below you can see the code I am using, I marked out the key bits as they belong to my server.

image.png.a12f941c75c95c189b0e382b146adaa9.png

 

When I run this code the following message appears after about 15-30 seconds.

image.png.5a82c116a493b3d8a19d6df012e932df.png

 

I have added my home IP to the access list and everything but still no joy on getting connected..

However I can access via MySQL Workbench but I am using Standard TCP/IP over SSH method.

 

Hopefully someone out there can help me.

 

Thanks in advance!

 

-Scott

 

1. Recheck db server url/ip

2. When you say whitelisted home ip, thats the router/ap's external ip right (not the dev pc's local ip...)

3. Is that port allowed/forwarded cross all network nodes

 

 

Link to post
Share on other sites

3 minutes ago, Bartholomew said:

1. Recheck db server url/ip

2. When you say whitelisted home ip, thats the router/ap's external ip right (not the dev pc's local ip...)

3. Is that port allowed/forwarded cross all network nodes

 

 

1. I will give that a go to make sure but 99% sure everything is in line.

2. Correct.

3. I’m not sure about this how can I check.

 

im sure it be something silly.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×