本帖最后由 caiying_163 于 2010-07-01 15:57:18 编辑

解决方案 »

  1.   

    Standard
    Server=myServerAddress;Database=myDataBase;Uid=myUsername;Pwd=myPassword;
    Default port is 3306.
     
    Specifying port
    Server=myServerAddress;Port=1234;Database=myDataBase;Uid=myUsername;Pwd=myPassword;
    Download the driver at MySQL Developer Zone
     
    Named pipes
    Server=myServerAddress;Port=-1;Database=myDataBase;Uid=myUsername;Pwd=myPassword;
    It is the port value of -1 that tells the driver to use named pipes network protocol. This is available on Windows only. The value is ignored if Unix socket is used.
     
    Multiple servers
    Use this to connect to a server in a replicated server configuration without concern on which server to use.
    Server=serverAddress1 & serverAddress2 & etc..;Database=myDataBase;Uid=myUsername;Pwd=myPassword;
     
     
    Using encryption
    This one activates SSL encryption for all data sent between the client and server. The server needs to have a certificate installed.
    Server=myServerAddress;Database=myDataBase;Uid=myUsername;Pwd=myPassword;Encryption=true;
    This option is available from Connector/NET version 5.0.3. In earlier versions, this option has no effect.
     
    Using encryption, alternative
    Some reported problems with the above one. Try replacing the key "Encryption" with "Encrypt" instead.
    Server=myServerAddress;Database=myDataBase;Uid=myUsername;Pwd=myPassword;Encrypt=true;
      

  2.   

    那你们谁用过ibatis连接过mysql的?我单独加分
      

  3.   

    http://blog.sina.com.cn/s/blog_71b9f1d10100u0qe.html,我配置时的一些步骤,楼主可以看看