Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2008
    Posts
    1

    Red face Unanswered: MySQL asp.net connection in VS2008

    Hey,
    I am creating a asp.net web page and need to connect it to a mysql database. I have downloaded both the .net connector and the odbc connector but neither of them seem to be working.

    Does anyone know a simple example of connecting a asp.net page to a mysql database using c#??

    Thanks

  2. #2
    Join Date
    Jan 2009
    Location
    NYC
    Posts
    11
    .NET
    Driver={mySQL};Server=myServerAddress;Port=3306;Op tion=131072;Stmt=; Database=myDataBase; User=myUsername;Password=myPassword;

    ODBC:
    Driver={MySQL ODBC 5.1 Driver};Server=myServerAddress;Port=3306;Database= myDataBase;User=myUsername; Password=myPassword;Option=3;

  3. #3
    Join Date
    Sep 2009
    Posts
    1

    connecting mysql to asp.net

    @alexsqlforums:
    i know what to do from inside the pages.but can you please tell me how to connect the database( i mean from server explorer in visual studio 2005). i cannot find the mysql server in the system dsn even after installing the connector.i am using mysql odbc connector.
    please help me out.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •