Skip to main content

Database remote access

Comments

5 comments

  • cPRex Jurassic Moderator
    Hey there! Just to confirm, the same application can connect when you use databaseA but NOT when you use databaseB, correct? If so, I'm not sure what would cause that since it would be using the same connection string and hostname to establish that connection, with the only difference being the database name and username. It might be best to contact your hosting provider or datacenter to have them check that the remote access is properly granted to the database on the MySQL side of things.
    0
  • djacktx
    I have the old database (A) and I am moving to new database (B). I can connect to both databases using MySQL Workbench and Visual Studio's Server Explorer. When I change to database B and build the app, it will not connect to it. Shows the error mentioned above. I switch back to database A in the app and it connects just fine. Since I can connect to database B via several programs I would say the database is working and access is fine. So I am leaning toward the way Visual Studio is building the connection in the app unless anyone else has other ideas.
    0
  • cPRex Jurassic Moderator
    That sounds logical to me - since other external tools (MySQL Workbench) are able to connect, the issue wouldn't be with the external connection or the database's authentication details. Let us know if you find anything else with your troubleshooting!
    0
  • djacktx
    I did find the actual issue and I feel stupid for not seeing it earlier. I forgot that I am transitioning from an MSSQL database to a MySQL database and needed to change some client info in the app. Once I did that it started working perfectly.
    0
  • cPRex Jurassic Moderator
    I'm glad the found the issue!
    0

Please sign in to leave a comment.