连接未打开....使用MySql [英] Connection not opened.... using MySql

查看:76
本文介绍了连接未打开....使用MySql的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我正在使用VS2008和MySql 5.5版本.我下载并使用了MySqlConnector6.2.4.这里的问题是当我运行应用程序时,连接没有打开.毫无疑问,代码中.谁能帮帮我.
谢谢.

Hi all,i am using VS2008 with MySql 5.5 version. I downloaded MySqlConnector6.2.4 & using it. Problem here is when i am running the application, connection is not opening. There is no doubt in code. Can any one help me out.
Thank you.

推荐答案

毫无疑问,代码是正确的."这是极不可能的,因为许多其他人使用相同的连接器应用程序.这意味着您的问题实际上在您的代码中.
调试您的应用程序,并确保您没有隐藏任何引发的异常.检查并研究您返回的消息,您将发现错误.
"There is no doubt in code." This is highly unlikely as many others use the same connector application. That means that your issue is in fact in your code.
Debug your application and make sure you don''t hide any exceptions that are thrown. Examine and study the messages you get back and you will find the bug.


您的计算机是32位还是64位计算机?
is your machine a 32bit or 64bit machine?


MySQL包含内部用户数据库,请确保您仍然有权访问要尝试访问的任何数据库.另外,请确保您没有防火墙阻止访问.
MySQL contains an internal database of users, make sure you still have permission to access whatever database you''re trying to get to. Also, make sure you don''t have a firewall blocking access.


这篇关于连接未打开....使用MySql的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆