Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. connecting to MySQL with .Net 2.0

connecting to MySQL with .Net 2.0

Scheduled Pinned Locked Moved ASP.NET
helpcsharpdatabasemysqlcom
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jszpila
    wrote on last edited by
    #1

    Hello everyone, I'm currently writing a app that uses MySQL. However, I'm having trouble connecting to my database. I'm running the tests from my local machine and I *DO* have the MySQL Connector .Net 1.0.7 driver installed and the ODBC namespace imported. This is the connection string I'm using: Driver={MySQL ODBC 3.51 Driver};server=myserver.myhost.com;user id=myusername; password=mypassword; database=mydatabase; pooling=false This is the error I'm receiving: System.Data.Odbc.OdbcException: ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified Any ideas? I've looked throught quite a few tutorials and I seem to be doing everything that they say correctly. Thanks in advance for any help! ------------------- abort, retry, fail?

    B G 2 Replies Last reply
    0
    • J jszpila

      Hello everyone, I'm currently writing a app that uses MySQL. However, I'm having trouble connecting to my database. I'm running the tests from my local machine and I *DO* have the MySQL Connector .Net 1.0.7 driver installed and the ODBC namespace imported. This is the connection string I'm using: Driver={MySQL ODBC 3.51 Driver};server=myserver.myhost.com;user id=myusername; password=mypassword; database=mydatabase; pooling=false This is the error I'm receiving: System.Data.Odbc.OdbcException: ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified Any ideas? I've looked throught quite a few tutorials and I seem to be doing everything that they say correctly. Thanks in advance for any help! ------------------- abort, retry, fail?

      B Offline
      B Offline
      Braulio Dez
      wrote on last edited by
      #2

      Hello, In this page you will find all the settings and parameters to connect to MySQL via .net http://www.connectionstrings.com Let's hope is just a parameter issue :-(, Good luck Braulio /// ----------------------- Braulio Díez http://www.bdiez.com /// -----------------------

      1 Reply Last reply
      0
      • J jszpila

        Hello everyone, I'm currently writing a app that uses MySQL. However, I'm having trouble connecting to my database. I'm running the tests from my local machine and I *DO* have the MySQL Connector .Net 1.0.7 driver installed and the ODBC namespace imported. This is the connection string I'm using: Driver={MySQL ODBC 3.51 Driver};server=myserver.myhost.com;user id=myusername; password=mypassword; database=mydatabase; pooling=false This is the error I'm receiving: System.Data.Odbc.OdbcException: ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified Any ideas? I've looked throught quite a few tutorials and I seem to be doing everything that they say correctly. Thanks in advance for any help! ------------------- abort, retry, fail?

        G Offline
        G Offline
        Guffa
        wrote on last edited by
        #3

        You have installed a driver that you don't use, and use a connection that you have no driver installed for. Either use the driver you installed, or install an ODBC driver to keep using the ODBC connection you have. --- b { font-weight: normal; }

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups