如题,我想在Windows下用MFC远程登录安装在Linux系统中的MySQL服务器(局域网),请问该如何做呢?谢谢!!

解决方案 »

  1.   

    使用ADO或者ODBC都可以访问网络中的MYSQL数据库..只要把连接字符串中的server项填上网络数据库IP就可以了..
    用ADO访问数据库的文章:
    http://www.vckbase.com/document/viewdoc/?id=1215 
    http://www.vckbase.com/document/viewdoc/?id=610
      

  2.   

    mysqlwrapped-1.6 http://www.dbdesigner.net/project/mysql/记得加分!
      

  3.   

    我下载了MySQL,V5.0.67版的,安装好之后,
    在基于对话框的OnInitDialog()函数里连接MySQL服务器,此外#include "winsock.h" 和#include "mysql.h"已在头文件中声明
    const char *SERVER_NAME = "localhost";
    const char *DB_USER = "root";
    const char *DB_USERPASS = "123456";
    const char *DB_NAME = "mydb";mysql_init (&mysql);
    if(NULL == mysql_real_connect(&mysql,SERVER_NAME,DB_USER,DB_USERPASS,DB_NAME,3306,NULL,0))
    {
    CString strError;
    strError.Format("Error connecting to database: %s\n",mysql_error(&mysql)); AfxMessageBox(strError);  return FALSE;
    }如上代码,弹出的对话框提示信息是Error connecting to database:Client does not authentication protocol requested by server;consider upgrading MySQL client请问这是怎么回事呢?
      

  4.   

    MySQL 5 使用了一种不同于MySQL 4.0 和MySQL 3.x的认证方法,你需要用一个新的MySQL客户端库文件来重新编译你的程序,或者使用低版本的MySQL..