Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9023215
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T05:42:32+00:00 2026-06-16T05:42:32+00:00

I have a remote hosted website with a MySQL database. I am trying to

  • 0

I have a remote hosted website with a MySQL database.

I am trying to access that database from a small C# program.

What I’ve tried:

  • Referencing the MySQL DLL in the project
  • Using MySQL connection strings
  • Disabling my firewall
  • Adding my IP address to the Remote MySQL Databases in the site’s cPanel

What I’m getting:

  • Access denied for user blabla@mycomputerip in the Visual Studio console

What boggles my mind:

  • How can I find out if my webhosting service allows remote connections to the DB?
  • Do I really need to connect with PuTTy to the server and tweak the configs?
  • ^ if so, do I even have access to do that?

LATER EDIT:

  • Interesting enough. If I do

    GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'%' WITH GRANT OPTION;
    

    it throws me this:

    #1045 - Access denied for user 'blabla'@'localhost' (using password: YES)
    

    Common sense should tell you that my username is not actually ‘blabla’.

LATER LATER EDIT:

I don’t have privileges to CREATE USER, nor do I have SSH access via PuTTy or so.
Does this basically mean that it’s my hosting’s fault that I can’t connect from a remote location to the DB?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T05:42:33+00:00Added an answer on June 16, 2026 at 5:42 am

    Have a look at the users in your mysql database. A couple things to check:

    1. With cPanel on shared hosting, if you create a user named blah the actual name of the user in mysql is often unixusername_blah. This is done automatically to prevent MySQL user name conflicts between different cPanel accounts sharing the same MySQL server.

    2. With MySQL you can define which hosts a user is allowed to connect from. Is the new user you defined allowed to connect from your IP?

    ETA:

    Might want to have a look at the permissions for that user account and make sure appropriate permissions are granted. You can do this by running the following in phpMyAdmin or at the console:

    SHOW GRANTS FOR 'something_root'@'localhost'
    

    And compare the grants you see there to what you get here:

    SHOW GRANTS FOR 'something_root'@'%'
    

    Finally, depending on your hosting environment you may not have permissions to create new users or expand their privileges enough to be able to do this. This would be particularly likely if you have a shared hosting account.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a remote mySQL table that I use in a few tools, occasionally
First of all, the website I run is hosted and I don't have access
I have an iframe that loads a remote page (not hosted on the same
I have a local repository I'm working on and its remote is hosted on
I know the app servers like Websphere and Weblogic have remote deployment capabilities that
I have a remote call that I make and I am wondering where it
I have a remote SVN repository that I connect to via HTTPS. The repository
I have a remote database on a shared host, and I can connect to
I have successfully hosted my mvc website on server. But I'm not able to
I have a large ASP.NET website on a hosted platform. It shares the machine

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.