Results 1 to 4 of 4

Thread: cant connect to MySQL server with VB.NET but can with PHP and MySQLAdminstrator

  1. #1

    Thread Starter
    Member
    Join Date
    Dec 2004
    Posts
    49

    cant connect to MySQL server with VB.NET but can with PHP and MySQLAdminstrator

    I'm trying to add a connection under the database connections in vb.net but it always says:

    Test connection failed because of an error in initializing provider. [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.

    I'm choosing Microsoft OLE DB Provider for SQL Server as the provider
    and I'm trying to logon as root with a password.

    Will the Provider for SQL Server work with MySQL v4.0?
    The database is located on localhost.

    I can access the database with MySQLAdministrator and have a few php programs that utilize the database without any problems at all. Does anyone have any suggestions? thanks.

  2. #2

    Thread Starter
    Member
    Join Date
    Dec 2004
    Posts
    49

    Unhappy Re: cant connect to MySQL server with VB.NET but can with PHP and MySQLAdminstrator

    no one here uses MySQL? everyone uses SQL Server??

    any advice :-(

  3. #3
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367

    Re: cant connect to MySQL server with VB.NET but can with PHP and MySQLAdminstrator

    If you are using mySQL then why are you using the Microsoft OLE DB Provider for SQL Server, that is for Microsoft SQL server.

    MYSQL offers an ADO.NET Connector to connect to their DBs:

    http://www.mysql.com/products/connector/net/

  4. #4

    Thread Starter
    Member
    Join Date
    Dec 2004
    Posts
    49

    Re: cant connect to MySQL server with VB.NET but can with PHP and MySQLAdminstrator

    Quote Originally Posted by Negative0
    If you are using mySQL then why are you using the Microsoft OLE DB Provider for SQL Server, that is for Microsoft SQL server.

    MYSQL offers an ADO.NET Connector to connect to their DBs:

    http://www.mysql.com/products/connector/net/
    obiviously i was using the OLE DB Provider for SQL Server because I didn't know what other one to use since there was no MySQL option on there...jeeeeez. That's all the help i needed, thanks.

Posting Permissions

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



Click Here to Expand Forum to Full Width