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

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

WBOY
Release: 2016-06-06 09:42:56
Original
2088 people have browsed it

mysqlc#

代码如下

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

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template