Results 1 to 4 of 4

Thread: MySQL and Compact Framework

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2009
    Posts
    3

    MySQL and Compact Framework

    Hello,

    i want to use MySQL with my mobile phone. I have installed the "MySQL Connector" and use this code:

    Code:
    Dim conn As New MySql.Data.MySqlClient.MySqlConnection
    Dim myConnectionString as String
    
    myConnectionString = "server=127.0.0.1;" _
                & "uid=root;" _
                & "pwd=12345;" _
                & "database=test;"
    
    Try
      conn.ConnectionString = myConnectionString
      conn.Open()
    
    Catch ex As MySql.Data.MySqlClient.MySqlException
      MessageBox.Show(ex.Message)
    End Try
    My machine has erros with "MySql.Data.MySqlClient.MySqlException" and "MySql.Data.MySqlClient.MySqlConnection"

    How can i solve this problem? With the normale Framework i can use MySQL...

    thanks

    vb!

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: MySQL and Compact Framework

    did you reference the assembly?

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3

    Thread Starter
    New Member
    Join Date
    Dec 2009
    Posts
    3

    Re: MySQL and Compact Framework

    Yes I add MySQL.Data.Dll to the reference.

    My machine has a prolbleme with "System.Data.Common.DbConnection" an
    "System.Data.Common.DbException".

    thanks

  4. #4
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: MySQL and Compact Framework

    I have never heard of MySQL that works on Windows Mobile.

    There are commercial versions to allow the functionality available like this:
    http://www.handango.com/catalog/Prod...oductId=183025

    Is using MySQL a must? If not, you could just use SQL Server CE, which works in the compact framework.

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