Home  >  Article  >  Database  >  c#-C# 访问mysql数据库 conn.Open();出错

c#-C# 访问mysql数据库 conn.Open();出错

WBOY
WBOYOriginal
2016-06-06 09:42:562034browse

mysqlc#

代码如下

<code>          MySQLConnection conn = null;            conn = new MySQLConnection(new MySQLConnectionString("localhost", "wsnvlab", "root", "123456").AsString);            try            {                conn.Open();            }            catch(Exception e)            {            }            return conn;</code>

执行到 conn.Open();时出错,错误提示
无法加载 DLL“libmySQL.dll”: 找不到指定的模块。 (异常来自 HRESULT:0x8007007E)。
该怎么解决

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn