Qt5.2连接Mysql的问题,为什么链接不上呢 [问题点数:20分,结帖人anz130]

Bbs1
本版专家分:0
结帖率 94.44%
Bbs3
本版专家分:749
Bbs1
本版专家分:0
Bbs1
本版专家分:0
MMX
Bbs1
本版专家分:0
Bbs1
本版专家分:20
Bbs1
本版专家分:0
Blank
GitHub 绑定GitHub第三方账户获取
Bbs1
本版专家分:0
Blank
GitHub 绑定GitHub第三方账户获取
Bbs1
本版专家分:0
Bbs1
本版专家分:0
mysql 连接不上?
我的<em>mysql</em> <em>为什么</em><em>连接</em>不上呀?rn是我连本机器 本机IP:192。168。1。54rn user:rootrn pwd:空rn rn它提示我的错误代码1130:<em>连接</em>数据库失败,没有<em>连接</em>数据库的权限rn这是<em>为什么</em>呀?
连接不上MySql
用管理员身份运行PowerShell bash sudo service <em>mysql</em> status, 可以看到服务器状态已停止 sudo service <em>mysql</em> start
连接不上mysql
[root bin]#./<em>mysql</em>rnERROR 2002: Can't connect to local MySQL server through socket '/tmp/<em>mysql</em>.sock' (2)
连接不上MySQL!!!!!!!!!
我的操作系统是WINDOWS 2K P,WEB服务器是APACHE+PHP+MySQL。以前使用一切正常,可是最近用APACHE调用PHP却<em>连接</em>不上MySQL服务器了,而用MySQL自带的客户端软件(<em>mysql</em>.exe)却可以正常使用,请问各位大虾如何解决???
MySQL连接不上
电脑还原后重装MySQL,重装时步骤可能和以前不太一样(端口变成了8089),数据库安装算是成功吧,MySQL数据库显示正常。但用以前的程序改端口<em>连接</em>不上了,不知什么原因,希望各路高手为我解题。rn[code=Java]The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.rn at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)rn at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)rn at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)rn at java.lang.reflect.Constructor.newInstance(Constructor.java:513)rn at com.<em>mysql</em>.jdbc.Util.handleNewInstance(Util.java:406)rn at com.<em>mysql</em>.jdbc.SQLError.createCommunicationsException(SQLError.java:1074)rn at com.<em>mysql</em>.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2209)rn at com.<em>mysql</em>.jdbc.ConnectionImpl.(ConnectionImpl.java:776)rn at com.<em>mysql</em>.jdbc.JDBC4Connection.(JDBC4Connection.java:46)rn at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)rn at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)rn at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)rn at java.lang.reflect.Constructor.newInstance(Constructor.java:513)rn at com.<em>mysql</em>.jdbc.Util.handleNewInstance(Util.java:406)rn at com.<em>mysql</em>.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:352)rn at com.<em>mysql</em>.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:284)rn at java.sql.DriverManager.getConnection(DriverManager.java:582)rn at java.sql.DriverManager.getConnection(DriverManager.java:154)rn at org.springframework.jdbc.datasource.DriverManagerDataSource.getConnectionFromDriverManager(DriverManagerDataSource.java:174)rn at org.springframework.jdbc.datasource.DriverManagerDataSource.getConnectionFromDriver(DriverManagerDataSource.java:165)rn at org.springframework.jdbc.datasource.AbstractDriverBasedDataSource.getConnectionFromDriver(AbstractDriverBasedDataSource.java:149)rn at org.springframework.jdbc.datasource.AbstractDriverBasedDataSource.getConnection(AbstractDriverBasedDataSource.java:119)rn at org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.getConnection(LocalDataSourceConnectionProvider.java:82)rn at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:446)rn ... 26 morernCaused by: com.<em>mysql</em>.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure[/code]
mysql连接不上
<em>mysql</em><em>连接</em>不上,日志中的错误信息:Can't open and lock privilege tables: Table '<em>mysql</em>.host' doesn't exist,网上查了下可以将老的数据权限表复制到当前的数据目录,不过老的被删除了啊,请教各位有还有什么办法么,难道只能重装了?
为什么连接不上呢?送分
我自己的ip是172.24.23.81rnmask是255.255.255.128rn网关172.24.23.9rnoracle服务器的ip是172.24.16.188rn<em>为什么</em>我用jdbc<em>连接</em>时,总是说没有办法建立<em>连接</em>?rn是在地址上有什么特殊的设置吗?
为什么连接不上呢?
rnrn查询分析器可以<em>连接</em>上,<em>为什么</em>用上面代码<em>连接</em>总出现Microsoft OLE DB Provider for ODBC Drivers 错误 '80004005' rnrn[Microsoft][ODBC SQL Server Driver][Named Pipes]没有发现指定的 SQL Server。 rnrn/chinese/conn.asp,行7 rn
IMediaDet接口为什么连接不上呢
HRESULT hr;rn// 定义IMediaDet接口实例rnCComPtr< IMediaDet > pDet;rnhr = CoCreateInstance( CLSID_MediaDet, NULL, CLSCTX_INPROC_SERVER, IID_IMediaDet, (void**) &pDet );rnif (FAILED(hr))rnreturn hr;rnrn// 将影片文件名转换成BSTR类型rnCComBSTR openBSTR("D:\\yule\\1.wmv");rn// 设置IMediaDet接口的文件关联rnhr = pDet->put_Filename(openBSTR);rnif (FAILED(hr))rnAfxMessageBox("here");rnreturn hr;rnrnrn我已经对COM组件初始化了rn代码调试没有错误rn<em>为什么</em> 运行后 显示 here 就表示 设置IMediaDet接口的文件关联 没有成功rn<em>为什么</em>这个会不成功呢
为什么我的LINU下的MYSQL连接不上
我在Linux上安装了MYSQL 3.23.55。我运行了服务器程序,用PS命令也看到了服务器在运行中,可是我在Windows的客户端上却无法<em>连接</em>上数据库!请问这个是<em>为什么</em>呢?难道我没有安装正确?我是按照它的说明装的啊!
为什么连接不上mysql
-
连接不上服务器的MYSQL?为什么?WHY?
<em>连接</em>不上服务器的MYSQL?<em>为什么</em>?WHY?rnrn服务器里的DEDE站都<em>连接</em>没<em>问题</em>,localhost:3306的rnrn我在我本地写1个文件,<em>链接</em>到服务器上的MYSQL, XXX.XXX.XXX:3306rn<em>链接</em>不上,我想应该是MYSQL需要设置一下,请问怎么设置rnrnNAVCAT也<em>链接</em>不上
Mysql连接问题127.0.0.1连接不上
MySQL said: Can't connect to MySQL server on '127.0.0.1' (61)rnrnMysql安装版,命令行可以<em>连接</em>。用客户端localhost可以<em>连接</em>,但是127.0.0.1<em>连接</em>不上,请问是我哪里配置有<em>问题</em>吗?rn
mysql链接不上报错
Uncaught exception 'Exception' with message 'Connect failed: Can't connect to MySQL server on 'localhost' (10055)'。。。。。。。。
PHP链接不上MYSQL
今天看了很多的关于PHP<em>链接</em>不到MySQL的帖子,处理方法很多,复制dll文件到window文件夹的等等,都没有解决我的<em>问题</em>,后来发现把前几天装的Zend卸载后就可以了,一切回复了。现在贴出来希望同类<em>问题</em>的朋友少走弯路。just this 。
C#链接mysql链接不上
public static string connectionString = "Data Source=127.0.0.1; Initial Catalog=userdb; User ID=root; Password=123456; Max Pool Size=75; Min Pool Size=5; MultipleActiveResultSets=true";rnrnrnrn public IQueryable FindAll()rn rn rn DataContext db = new DataContext(sqlConns);rn rn IQueryable users = db.GetTable();rn return users;rn rn [img=https://img-bbs.csdn.net/upload/201403/06/1394083386_702623.png][/img]rnrnrn提示错误为:rn在与 SQL Server 建立<em>连接</em>时出现与网络相关的或特定于实例的错误。未找到或无法访问服务器。请验证实例名称是否正确并且 SQL Server 已配置为允许远程<em>连接</em>。 (provider: Named Pipes Provider, error: 40 - 无法打开到 SQL Server 的<em>连接</em>)[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/onion/1.gif][/img]求解求解
解决MySQL链接不上问题
今天<em>链接</em>MySQL时出现如下<em>问题</em>: Host 'localhost' is not allowed to connect to this MySql server 在网上找到了解决办法,在这里整理下,方便以后使用。 1、使用管理员打开命令窗口,输入如下命令: 停止<em>mysql</em>服务:sc stop <em>mysql</em> 输入:<em>mysql</em>d --skip-grant-tables
navicat连接不上mysql
我这有2个Mysql,一开始把<em>mysql</em>启动了,把端口占用了,其实应该启动<em>mysql</em>80 解决:百度搜索2059 https://blog.csdn.net/kwy15732621629/article/details/80059416 原因:8.0版本太高了 ...
Linux下连接不上MySQL
我用的是MySQL3.23.55,也装了Connector/J3.0,运行时tomcat显示”Server configuration denies access to data source”,可我已经把Connector中的jar文件放到了Tomcat下的/common/lib的下面,也执行了“grant all privileges on guest.* to root@localhost identified by [password];”,<em>为什么</em>呢?哪位能够指点迷津。
远程连接mySQL连接不上!
现象:在自己电脑可以连上,在自己电脑的虚拟机里面也可以<em>连接</em>上,但是程序拷贝到其他电脑上<em>连接</em>就<em>连接</em>不上,不知道<em>问题</em>出在哪里了,请高手指教:
PHP连接不上mysql
rnrn应该没什么<em>问题</em>吧,可是怎么一直报错,ACCESS DENIEDrnrn";rn$amount_sql = "SELECT MAX(PATH_ID) FROM pathwayrn LIMIT 1;";rn$result_amount = <em>mysql</em>_query($amount_sql);rn$pathway_array = <em>mysql</em>_fetch_assoc($result_amount);rn$pathway_amount = $pathway_array['PATH_ID'];rn?>rn下面为报错的内容!rnWarning: <em>mysql</em>_query() [function.<em>mysql</em>-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\xampp\htdocs\pathway\colon bacillus system.php on line 36rnrnWarning: <em>mysql</em>_query() [function.<em>mysql</em>-query]: A link to the server could not be established in C:\xampp\htdocs\pathway\colon bacillus system.php on line 36rnrnWarning: <em>mysql</em>_fetch_assoc() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\pathway\colon bacillus system.php on line 37
mysql一直连接不上
我昨天写的php还可以对<em>mysql</em>进行操作,今天重启电脑以后就一直显示unable to connectrn
hive连接不上mysql
请问hive<em>连接</em><em>mysql</em>出现这个错误 是什么原因?rn[img=https://img-bbs.csdn.net/upload/201704/13/1492074653_934022.jpg][/img]
局域网连接不上mysql
我用Navicat<em>连接</em>局域网的<em>mysql</em>,出现错误:Host:192.168.1.240 is not allowed to connect to this <em>mysql</em> serverrn192.168.1.240 进入客户端,修改了<em>mysql</em>数据库中user表的user=root的host为%,还是不行。在我的电脑上telnet 192.168.1.240 3306 出现了一下错误:192.168.1.188 is not allowed to connect to this <em>mysql</em> serverrn失去了跟主机的联系。rnrnrn请问高手这个改怎么解决。我现在用Navicat连不上这个数据库了
phpmyadmin连接不上mysql
环境:windows2003+IIS6+<em>mysql</em>6+phpmyadmin10.1rnrn<em>mysql</em>已经安装好,并能在命令行下正常登录使用;rnrn rn显示有内容rnrn rn显示成功;rnrnrnrn但phpmyadmin出现以下结果:rn____________________________________________________________________rn欢迎使用 phpMyAdmin 2.10.1rnrnphpMyAdmin 试图<em>连接</em>到 MySQL 服务器,但服务器拒绝<em>连接</em>。您应该检查 config.inc.php 中的主机、用户名和密码,并且确定这些信息与 MySQL 服务器的管理员所给出的信息一致。rnrn错误rnMySQL 返回: rnrn#1045 - Access denied for user 'root'@'localhost' (using password: NO) rn____________________________________________________________________rnrn但config.inc.php我已经设置完了,填写都应该是正确的。rnrnrn rnrnrn
MySQL外网连接不上
遇到如上<em>问题</em>,一直以为是root帐号没有远程访问的权限。 可是修改了user表里面的root的Host为%并没有暖用。 找了很久原因,用netstat -tunlp命令看了下监听的端口情况 发现: tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      8954/<em>mysql</em>d
(急)mySQL连接不上?
调试程序时出现了下面的<em>问题</em>:(MySQL服务是启动了的)rnrnrnWarning: <em>mysql</em>_connect() [function.<em>mysql</em>-connect]: Can't connect to MySQL server on 'localhost' (10061) in D:\MYOA\webroot\liuyanban\index.php on line 2rnrnWarning: <em>mysql</em>_select_db() [function.<em>mysql</em>-select-db]: Access denied for user: 'ODBC@localhost' (Using password: NO) in D:\MYOA\webroot\liuyanban\index.php on line 3rnrnWarning: <em>mysql</em>_select_db() [function.<em>mysql</em>-select-db]: A link to the server could not be established in D:\MYOA\webroot\liuyanban\index.php on line 3rnrnWarning: <em>mysql</em>_query() [function.<em>mysql</em>-query]: Access denied for user: 'ODBC@localhost' (Using password: NO) in D:\MYOA\webroot\liuyanban\index.php on line 4rnrnWarning: <em>mysql</em>_query() [function.<em>mysql</em>-query]: A link to the server could not be established in D:\MYOA\webroot\liuyanban\index.php on line 4rnrnWarning: <em>mysql</em>_query() [function.<em>mysql</em>-query]: Access denied for user: 'ODBC@localhost' (Using password: NO) in D:\MYOA\webroot\liuyanban\index.php on line 6rnrnWarning: <em>mysql</em>_query() [function.<em>mysql</em>-query]: A link to the server could not be established in D:\MYOA\webroot\liuyanban\index.php on line 6rnrnWarning: <em>mysql</em>_fetch_object(): supplied argument is not a valid MySQL result resource in D:\MYOA\webroot\liuyanban\index.php on line 7rn
php连接不上mysql
使用下面语句测试,结果浏览器什么也不显示rnrn';rnif(<em>mysql</em>i_connect_errno())rnrn echo "<em>连接</em>失败";rnrnrnelsern echo "<em>连接</em>成功";rn$link->close();rn?>rnrn
eclpise连接不上mysql
七月 25, 2017 5:33:54 下午 org.apache.tomcat.util.digester.SetPropertiesRule beginn警告: [SetPropertiesRule]Server/Service/Engine/Host/Context Setting property 'source' to 'org.eclipse.jst.jee.server:1' did not find a matching property.n七月 25, 2017 5:33:54 下午 org.apache.catalina.startup.VersionLoggerListener logn信息: Server version: Apache Tomcat/9.0.0.M21n七月 25, 2017 5:33:54 下午 org.apache.catalina.startup.VersionLoggerListener logn信息: Server built: May 4 2017 22:42:36 UTCn七月 25, 2017 5:33:54 下午 org.apache.catalina.startup.VersionLoggerListener logn信息: Server number: 9.0.0.0n七月 25, 2017 5:33:54 下午 org.apache.catalina.startup.VersionLoggerListener logn信息: OS Name: Windows 10n七月 25, 2017 5:33:54 下午 org.apache.catalina.startup.VersionLoggerListener logn信息: OS Version: 10.0n七月 25, 2017 5:33:54 下午 org.apache.catalina.startup.VersionLoggerListener logn信息: Architecture: x86n七月 25, 2017 5:33:54 下午 org.apache.catalina.startup.VersionLoggerListener logn信息: Java Home: C:\Program Files\Java\jre1.8.0_131n七月 25, 2017 5:33:54 下午 org.apache.catalina.startup.VersionLoggerListener logn信息: JVM Version: 1.8.0_131-b11n七月 25, 2017 5:33:54 下午 org.apache.catalina.startup.VersionLoggerListener logn信息: JVM Vendor: Oracle Corporationn七月 25, 2017 5:33:54 下午 org.apache.catalina.startup.VersionLoggerListener logn信息: CATALINA_BASE: E:\Java 项目\.metadata\.plugins\org.eclipse.wst.server.core\tmp0n七月 25, 2017 5:33:54 下午 org.apache.catalina.startup.VersionLoggerListener logn信息: CATALINA_HOME: F:\java web\apache-tomcat-9.0.0.M21n七月 25, 2017 5:33:54 下午 org.apache.catalina.startup.VersionLoggerListener logn信息: Command line argument: -Dcatalina.base=E:\Java 项目\.metadata\.plugins\org.eclipse.wst.server.core\tmp0n七月 25, 2017 5:33:54 下午 org.apache.catalina.startup.VersionLoggerListener logn信息: Command line argument: -Dcatalina.home=F:\java web\apache-tomcat-9.0.0.M21n七月 25, 2017 5:33:54 下午 org.apache.catalina.startup.VersionLoggerListener logn信息: Command line argument: -Dwtp.deploy=E:\Java 项目\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebappsn七月 25, 2017 5:33:54 下午 org.apache.catalina.startup.VersionLoggerListener logn信息: Command line argument: -Djava.endorsed.dirs=F:\java web\apache-tomcat-9.0.0.M21\endorsedn七月 25, 2017 5:33:54 下午 org.apache.catalina.startup.VersionLoggerListener logn信息: Command line argument: -Dfile.encoding=UTF-8n七月 25, 2017 5:33:54 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEventn信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [C:\Program Files\Java\jre1.8.0_131\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Program Files/Java/jre1.8.0_131/bin/client;C:/Program Files/Java/jre1.8.0_131/bin;C:/Program Files/Java/jre1.8.0_131/lib/i386;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\OpenCL SDK\3.0\bin\x86;C:\Program Files\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SDKs\TypeScript\1.0\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\MySQL\MySQL Server 5.7\bin;C:\Program Files\Java\jdk1.8.0_131\bin;C:\Program Files\Java\jdk1.8.0_131\jre\bin;F:\eclipse;;.]n七月 25, 2017 5:33:54 下午 org.apache.coyote.AbstractProtocol initn信息: Initializing ProtocolHandler ["http-nio-8181"]n七月 25, 2017 5:33:55 下午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelectorn信息: Using a shared selector for servlet write/readn七月 25, 2017 5:33:55 下午 org.apache.coyote.AbstractProtocol initn信息: Initializing ProtocolHandler ["ajp-nio-8009"]n七月 25, 2017 5:33:55 下午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelectorn信息: Using a shared selector for servlet write/readn七月 25, 2017 5:33:55 下午 org.apache.catalina.startup.Catalina loadn信息: Initialization processed in 1874 msn七月 25, 2017 5:33:55 下午 org.apache.catalina.core.StandardService startInternaln信息: Starting service [Catalina]n七月 25, 2017 5:33:55 下午 org.apache.catalina.core.StandardEngine startInternaln信息: Starting Servlet Engine: Apache Tomcat/9.0.0.M21n七月 25, 2017 5:33:55 下午 org.apache.coyote.AbstractProtocol startn信息: Starting ProtocolHandler ["http-nio-8181"]n七月 25, 2017 5:33:55 下午 org.apache.coyote.AbstractProtocol startn信息: Starting ProtocolHandler ["ajp-nio-8009"]n七月 25, 2017 5:33:55 下午 org.apache.catalina.startup.Catalina startn信息: Server startup in 920 msnjava.lang.ClassNotFoundException: com.<em>mysql</em>.jdbc.Drivern at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1275)n at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1109)n at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:123)n at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:60)n at java.lang.Class.forName0(Native Method)n at java.lang.Class.forName(Unknown Source)n at org.apache.jsp.AddBook_jsp._jspService(AddBook_jsp.java:137)n at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)n at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)n at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:443)n at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:385)n at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329)n at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)n at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)n at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)n at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)n at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)n at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)n at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)n at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)n at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:475)n at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)n at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:80)n at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:624)n at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)n at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)n at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:498)n at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)n at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:796)n at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1366)n at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)n at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)n at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)n at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)n at java.lang.Thread.run(Unknown Source)n
python2 连接不上MySQL
import MySQLdbrnimport osrnimport sysrnreload(sys)rnsys.setdefaultencoding('utf-8')rnrnconn=MySQLdb.connect(host="127.0.0.1",port=3306,user="root",passwd="697090",db="traffic",charset="utf8")rnrnrnOperationalError Traceback (most recent call last)rn in ()rn 1 rn-- 2 conn=MySQLdb.connect(host="127.0.0.1",port=3306,user="root",passwd="697090",db="traffic",charset="utf8")rnrnD:\softsetup\Anaconda2\lib\site-packages\MySQLdb\__init__.pyc in Connect(*args, **kwargs)rn 79 """Factory function for connections.Connection."""rn 80 from MySQLdb.connections import Connectionrn- 81 return Connection(*args, **kwargs)rn 82 rn 83 connect = Connection = ConnectrnrnD:\softsetup\Anaconda2\lib\site-packages\MySQLdb\connections.pyc in __init__(self, *args, **kwargs)rn 191 autocommit = kwargs2.pop('autocommit', False)rn 192 rn 193 super(Connection, self).__init__(*args, **kwargs2)rn 194 self.cursorclass = cursorclassrn 195 self.encoders = dict([ (k, v) for k, v in conv.items()rnrnOperationalError: (1251, 'Client does not support authentication protocol requested by server; consider upgrading MySQL client')rn
本机的mysql连接不上?
本机的<em>mysql</em>数据库已建好,服务也开了,可是用下面的代码<em>连接</em>却失败,请问是什么原因?rn rn Class.forName("com.<em>mysql</em>.jdbc.Driver");rn Connection con1=DriverManager.getConnection("jdbc:<em>mysql</em>://localhost:3306/cel","root","");rnrn运行时抛出这个异常:java.sql.SQLException: Communication link failure: Bad handshakernrnrn
MySQL总是连接不上
MySQL 4.1.13+win2003+apache2+php rn 数据库总是出现<em>连接</em>不上的,运行SHOW STATUS语句 Connections 的值一直在增加,max_Connections已经改到最大了,<em>mysql</em>错误提示:<em>mysql</em>服务器挂起,wait timeout值为3600!rn请问有没有遇到同样情况的朋友,请达人赐教!
连接Mysql数据库连接不上?
On Error GoTo err1rn Dim GConn As ADODB.Connectionrn Set GConn = New ADODB.Connectionrn Dim lRs As ADODB.Recordset '数据库记录集对象rn Set lRs = New ADODB.Recordsetrn rn GConn.CursorLocation = adUseClientrn GConn.ConnectionString = "DRIVER=MySQL ODBC 3.51 Driver;SERVER=localhost; DATABASE=test;UID=root;PWD=123456; OPTION=3"rnrn GConn.Openrnrn MsgBox "<em>连接</em>成功"rn exit subrnErr1rn MsgBox "<em>连接</em>失败"rnrnrn会出现 [Microsoft][ODBC 驱动程序管理器] 未发现数据源名称并且未指定默认驱动程序rnrn请问是否是我安装的<em>mysql</em>中,没有安装它的直接<em>连接</em>数据库的驱动程序rn我在ODBC中,想添加一个ODBC,但确实没有发现它有任何带有<em>mysql</em>之类的字符串rn请问如何解决这个<em>问题</em>?谢谢!
MyEclipse连接不上MySQL?
[img=https://img-bbs.csdn.net/upload/201408/28/1409225509_517978.jpg][/img]rnrn做bbs项目的时候 MyEclipse<em>连接</em>不上数据库,各位大神,麻烦帮我看看这是什么原因?
Mysql连接不上数据库问题
今天<em>连接</em>Mysql数据库的时候出现一个<em>问题</em>,现在把解决方法拿出来,避免以后出现同样的<em>问题</em>,也为遇到同样<em>问题</em>的伙伴提供一个思路。 <em>问题</em>如下:   解决方法是进入<em>mysql</em>的<em>mysql</em>库中的user表,修改Host字段为%即可。当然,记得重启一下<em>mysql</em>服务。          ...
MYSQL连接不上(LINUX)
[root@test bin]# <em>mysql</em> -u root -h 192.168.0.100 -prnEnter password: ******rnERROR 1130: Host 'test.*****.net' is not allowed to connect to this MySQL serverrnrn其中MYSQL在192.168.0.100 上已经安装好了,并且已经启动了
连接不上mysql的原因
我用的是windows2000 professional,<em>mysql</em>可以正常运行,但php就是<em>连接</em>不上。显示rnWarning: <em>mysql</em>_pconnect(): Can't create TCP/IP socket (10106) rn用telnet hostname 3306 显示connection to host lose(遗失到主机的<em>连接</em>),这说明<em>mysql</em>没有运行在3306端口上,请问这是什么原因,应如何解决?
MySQL 8.0 连接不上
<em>问题</em> 最近使用数据库操作比较多,使用了JetBrain 家的 DataGrip 去<em>连接</em>数据库,但发现无论如何<em>连接</em>不上,但之前在 IDEA 里是没有<em>问题</em>的。 经过排查后,原因在于没有指定时区,MySQL 8时区参数是必选的,没有时区会<em>连接</em>不了。 解决方法 解决方法是添加一个参数 serverTimeZone=UTC JDBC URL 为 jdbc:<em>mysql</em>://192.168.200.238:33...
为什么连接不上呢??数据库连接问题 在线等ing......
昨天把以前做的一个图书管理系统后台用的SQL2000 我用的是台公式机器 但是今天我在我的笔记本里面同样是装了SQL2000然后运行PB编写的程序 但是就是运行不起来这是怎么回事??小弟弟焦急等待 谢谢大家帮忙ing .......
用java连接mysql为什么连接不上啊?
package wyf.fg;rnimport java.sql.*;rnpublic class queryData rn /**rn * @param argsrn */rn public static void main(String[] args) rn // TODO Auto-generated method stubrn Connection con=null;rn Statement stmt;rn ResultSet rs;rn String sqlString="select* from student";rn String sd;rn tryrn Class.forName("com.<em>mysql</em>.jdbc.Driver");rn con=DriverManager.getConnection("jdbc:<em>mysql</em>://localhost:3306/test","root","123456");rn stmt=con.createStatement();rn rs=stmt.executeQuery(sqlString);rn while(rs.next())rn sd=rs.getString(1);rn System.out.println(sd);rn rn //System.out.print");rn catch(Exception e)rn e.printStackTrace();rn finallyrn tryrn con.close();rn catch(SQLException e)rn e.printStackTrace();rn rn rnrnrn不可以截图,就复制了下来,向大家帮帮忙啊,研究了几天了。。用的<em>连接</em>包也没有显示版本。。
安装mysql到d:\mysql,为什么连接不上?
安装之后,只能把服务<em>mysql</em>d-nt重新安装一遍,才能使用,再重启又不能用了,虽然服务能启动,但命令都识别不出来,my.ini、my.cnf我都配置成了实际安装路径,怎么还这样?
QT5.2连接Oracle数据库失败
int main(int argc, char *argv[])rnrn QApplication a(argc, argv);rnrn //<em>连接</em>数据库rn QSqlDatabase db = QSqlDatabase::addDatabase("QOCI");rn// db.setPort(1251);rn db.setHostName("127.0.0.1");rn db.setDatabaseName("CRMDB");rn db.setUserName("abc");//用户名rn db.setPassword("abc123");//密码rn if (db.open()) rn qDebug()<< "<em>链接</em>数据库成功";rn elsern qDebug()<< "<em>链接</em>数据库失败";rn return 0;rn rn return a.exec();rnrnrn//总是<em>连接</em>数据库失败,是设置错了还是怎样,应该怎么写,各个设置是什么意思
Navicat连接不上远端Mysql问题
新装了一个虚拟机,上面装了<em>mysql</em>,遇到远程无法登陆的<em>问题</em>。通过以下方法解决了这个<em>问题</em>。 1.首先进入<em>mysql</em> ./<em>mysql</em> -u -root -p 2.赋予任何主机访问数据库的权限 <em>mysql</em>&amp;gt;GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION; <em>mysql</em>&amp;gt;FLUSH PRIV...
新手关于连接不上mysql问题
代码是这样的 包括<em>mysql</em>[img=https://img-bbs.csdn.net/upload/201805/09/1525832338_861278.png][/img]rn但是一直出这个错误[img=https://img-bbs.csdn.net/upload/201805/09/1525832375_574465.png][/img]rnrn<em>mysql</em>是8.0.11.想问问是哪里有<em>问题</em> 谢谢
关于kettle连接不上mysql问题
首次使用kettle,在<em>连接</em><em>mysql</em>后测试一下出现一下错误,请求帮住解决,谢谢了!rnrn错误<em>连接</em>数据库 [jrd] : org.pentaho.di.core.exception.KettleDatabaseException: rnError occurred while trying to connect to the databasernrnError connecting to database: (using class org.gjt.mm.<em>mysql</em>.Driver)rnCommunications link failurernrnThe last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.rnrnrnorg.pentaho.di.core.exception.KettleDatabaseException: rnError occurred while trying to connect to the databasernrnError connecting to database: (using class org.gjt.mm.<em>mysql</em>.Driver)rnCommunications link failurernrnThe last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.rnrnrn at org.pentaho.di.core.database.Database.normalConnect(Database.java:472)rn at org.pentaho.di.core.database.Database.connect(Database.java:370)rn at org.pentaho.di.core.database.Database.connect(Database.java:341)rn at org.pentaho.di.core.database.Database.connect(Database.java:331)rn at org.pentaho.di.core.database.DatabaseFactory.getConnectionTestReport(DatabaseFactory.java:80)rn at org.pentaho.di.core.database.DatabaseMeta.testConnection(DatabaseMeta.java:2795)rn at org.pentaho.ui.database.event.DataHandler.testDatabaseConnection(DataHandler.java:598)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.pentaho.ui.xul.impl.AbstractXulDomContainer.invoke(AbstractXulDomContainer.java:313)rn at org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:157)rn at org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:141)rn at org.pentaho.ui.xul.swt.tags.SwtButton.access$500(SwtButton.java:43)rn at org.pentaho.ui.xul.swt.tags.SwtButton$4.widgetSelected(SwtButton.java:137)rn at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source)rn at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)rn at org.eclipse.swt.widgets.Display.sendEvent(Unknown Source)rn at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)rn at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)rn at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)rn at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)rn at org.eclipse.jface.window.Window.open(Window.java:796)rn at org.pentaho.di.ui.xul.KettleDialog.show(KettleDialog.java:80)rn at org.pentaho.di.ui.xul.KettleDialog.show(KettleDialog.java:47)rn at org.pentaho.di.ui.core.database.dialog.XulDatabaseDialog.open(XulDatabaseDialog.java:116)rn at org.pentaho.di.ui.core.database.dialog.DatabaseDialog.open(DatabaseDialog.java:60)rn at org.pentaho.di.ui.trans.step.BaseStepDialog.showDbDialogUnlessCancelledOrValid(BaseStepDialog.java:779)rn at org.pentaho.di.ui.trans.step.BaseStepDialog$AddConnectionListener.widgetSelected(BaseStepDialog.java:1374)rn at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source)rn at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)rn at org.eclipse.swt.widgets.Display.sendEvent(Unknown Source)rn at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)rn at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)rn at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)rn at org.pentaho.di.ui.trans.steps.tableinput.TableInputDialog.open(TableInputDialog.java:436)rn at org.pentaho.di.ui.spoon.delegates.SpoonStepsDelegate.editStep(SpoonStepsDelegate.java:127)rn at org.pentaho.di.ui.spoon.Spoon.editStep(Spoon.java:8789)rn at org.pentaho.di.ui.spoon.trans.TransGraph.editStep(TransGraph.java:3179)rn at org.pentaho.di.ui.spoon.trans.TransGraph.mouseDoubleClick(TransGraph.java:775)rn at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source)rn at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)rn at org.eclipse.swt.widgets.Display.sendEvent(Unknown Source)rn at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)rn at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)rn at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)rn at org.pentaho.di.ui.spoon.Spoon.readAndDispatch(Spoon.java:1359)rn at org.pentaho.di.ui.spoon.Spoon.waitForDispose(Spoon.java:7990)rn at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:9290)rn at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:685)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.pentaho.commons.launcher.Launcher.main(Launcher.java:92)rnCaused by: org.pentaho.di.core.exception.KettleDatabaseException: rnError connecting to database: (using class org.gjt.mm.<em>mysql</em>.Driver)rnCommunications link failurernrnThe last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.rnrn at org.pentaho.di.core.database.Database.connectUsingClass(Database.java:585)rn at org.pentaho.di.core.database.Database.normalConnect(Database.java:456)rn ... 55 morernCaused by: com.<em>mysql</em>.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failurernrnThe last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.rn at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)rn at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)rn at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)rn at java.lang.reflect.Constructor.newInstance(Unknown Source)rn at com.<em>mysql</em>.jdbc.Util.handleNewInstance(Util.java:404)rn at com.<em>mysql</em>.jdbc.SQLError.createCommunicationsException(SQLError.java:981)rn at com.<em>mysql</em>.jdbc.MysqlIO.(MysqlIO.java:339)rn at com.<em>mysql</em>.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2253)rn at com.<em>mysql</em>.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2286)rn at com.<em>mysql</em>.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2085)rn at com.<em>mysql</em>.jdbc.ConnectionImpl.(ConnectionImpl.java:795)rn at com.<em>mysql</em>.jdbc.JDBC4Connection.(JDBC4Connection.java:44)rn at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)rn at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)rn at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)rn at java.lang.reflect.Constructor.newInstance(Unknown Source)rn at com.<em>mysql</em>.jdbc.Util.handleNewInstance(Util.java:404)rn at com.<em>mysql</em>.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:400)rn at com.<em>mysql</em>.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:327)rn at java.sql.DriverManager.getConnection(Unknown Source)rn at java.sql.DriverManager.getConnection(Unknown Source)rn at org.pentaho.di.core.database.Database.connectUsingClass(Database.java:567)rn ... 56 morernCaused by: java.net.ConnectException: Connection refused: connectrn at java.net.DualStackPlainSocketImpl.connect0(Native Method)rn at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)rn at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)rn at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)rn at java.net.AbstractPlainSocketImpl.connect(Unknown Source)rn at java.net.PlainSocketImpl.connect(Unknown Source)rn at java.net.SocksSocketImpl.connect(Unknown Source)rn at java.net.Socket.connect(Unknown Source)rn at com.<em>mysql</em>.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:211)rn at com.<em>mysql</em>.jdbc.MysqlIO.(MysqlIO.java:298)rn ... 71 morernrn主机名 : 127.0.0.1rn端口 : 3307rn数据库名:jrrnrn 我是通过SSH通道<em>链接</em>数据库的,之前是可以<em>连接</em>上的,过了一个周末回来后就莫名其妙不能<em>连接</em>了。rn 经过一番百度,说是需要把.jar包放到指定路径下,我也放了,还有说是<em>mysql</em>8小时的<em>问题</em>,我也重新设置并重启,结果还是一样,所以现在是真的不知道要怎么搞了,还请高手指教啊,在线等!rn kettle的版本是7.0.0.25,<em>mysql</em>的版本是5.7.17.0
JDBC连接不上mysql问题
下面是我的代码,请问是什么原因<em>连接</em>不上数据库,我想问一下是不是数据库存放的位子有关?rn请知道的速回!rnrnrnrnrnrn 登陆rnrnrnrn 登陆范例——用户名及密码固定rn rn rn rn rn rn rn rn rn rn rn rnrnrnrnrntomcat 6.0的rn<em>mysql</em>是5.0的驱动程序(<em>mysql</em>-connector-java-5.0.8-bin.jar)放在了lib下,并且还设置了classpath到<em>mysql</em>-connector-java-5.0.8-bin.jar这里了rn但是就是不知道是怎么搞 还<em>连接</em>不上?rn请生长点的回答一下啊!
[求助] JSP连接不上MySQL的问题
大家好,我试图<em>连接</em>MySQL数据库,但是始终出错,希望大家帮我找找原因。rn我的Java版本是jdk1.6.0_18,MySQL服务功能已经开了,JDBC驱动<em>mysql</em>-connector-java-5.0.4-bin.jar也已经放到了路径C:\apache-tomcat-6.0.26\lib下面。rn环境变量设置如下 rnCLASSPATH=.;C:\Java\jdk1.6.0_18\;C:\apache-tomcat-6.0.26\;C:\apache-tomcat-6.0.26\lib\servlet-api.jar;C:\apache-tomcat-6.0.26\lib\<em>mysql</em>-connector-java-5.0.4-bin.jar;C:\apache-tomcat-6.0.26\lib\<em>mysql</em>-connector-java-3.1.11-bin.jarrnrnMysql的用户名和密码应该也没错,我用select user();查看到用户是root@localhost,同时密码也是我进入<em>mysql</em>界面时输入的密码。rnrn测试代码test.jsp如下rnrnrnrnrn rnrn 管理页面rnrnrnrn rnrnrnrnrn程序中如果去掉“Connection conn= DriverManager.getConnection(url); ”则一切正常,没有报错,但是有了那句就出现错误信息,所以我觉得JDBC驱动应该没有出错,<em>连接</em>部分有<em>问题</em>。rnrn错误信息,Exception 如下:rn出现例外,信息是:Server connection failure during transaction. Due to underlying exception: 'java.net.SocketException: java.net.ConnectException: Connection refused: connect'. ** BEGIN NESTED EXCEPTION ** java.net.SocketException MESSAGE: java.net.ConnectException: Connection refused: connect STACKTRACE: java.net.SocketException: java.net.ConnectException: Connection refused: connect at com.<em>mysql</em>.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:156) at com.<em>mysql</em>.jdbc.MysqlIO.(MysqlIO.java:276) at com.<em>mysql</em>.jdbc.Connection.createNewIO(Connection.java:2815) at com.<em>mysql</em>.jdbc.Connection.(Connection.java:1531) at com.<em>mysql</em>.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266) at java.sql.DriverManager.getConnection(DriverManager.java:582) at java.sql.DriverManager.getConnection(DriverManager.java:207) at org.apache.jsp.manage_jsp._jspService(manage_jsp.java:85) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:619) ** END NESTED EXCEPTION ** Attempted reconnect 3 times. Giving up.
为什么mount不上呢
mount /dev/hda? /mnt/d 或者rnmount /dev/hdb? /mnt/drn试了很多次,都不行,怎么回事阿?
为什么连接不上mysql数据库?
以前项目的<em>mysql</em>驱动包是<em>mysql</em>-2.0.4.jar,我现在的数据库用的是<em>mysql</em>5.0,换了驱动包<em>mysql</em>-connector-java-5.0.8-bin.jar,还是<em>连接</em>不上出现异常: Cannot create PoolableConnectionFactory (Communication failure during handshake. Is there a server running on localhost:3306?),请问各位怎么解决???
为什么总是连接不上?
“/StudentSys”应用程序中的服务器错误。rn--------------------------------------------------------------------------------rnrn用户 'sa' 登录失败。 rn说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 rnrn异常详细信息: System.Data.OleDb.OleDbException: 用户 'sa' 登录失败。rnrn源错误: rnrnrn行 148: //创建一个联结实例rn行 149: Connection = new OleDbConnection(sConnectionString);rn行 150: Connection.Open();rn行 151: rn行 152: rn rnrn源文件: c:\inetpub\wwwroot\studentsys\module\ccutility.cs 行: 150 rnrn堆栈跟踪: rnrnrn[OleDbException (0x80040e4d): 用户 'sa' 登录失败。]rn System.Data.OleDb.OleDbConnection.ProcessResults(Int32 hr)rn System.Data.OleDb.OleDbConnection.InitializeProvider()rn System.Data.OleDb.OleDbConnection.Open()rn StudentSys.Module.CCUtility.DBOpen() in c:\inetpub\wwwroot\studentsys\module\ccutility.cs:150rn StudentSys.Module.CCUtility..ctor(Object parent) in c:\inetpub\wwwroot\studentsys\module\ccutility.cs:68rn StudentSys.Default.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\studentsys\default.cs:91rn System.Web.UI.Control.OnLoad(EventArgs e)rn System.Web.UI.Control.LoadRecursive()rn System.Web.UI.Page.ProcessRequestMain()rnrn rn
svn服务器为什么连接不上?
告诉我说301错误?
为什么iis连接不上
Error connect to wen;rnThe System cannot find the path speciallyrnrn这个<em>问题</em>怎么解决啊?谢了!
为什么连接不上查询分析器
我安装SQL2000时用的是windows身份验证,企业管理器可以正常打开 但<em>连接</em>查询分析器时不管是用windows身份验证还是SQL SERVER身份验证都<em>连接</em>不上 都是无法<em>连接</em>到服务器说SQL SERVER不存在或访问被拒绝 直接从企业管理器里面<em>连接</em>查询分析器可以<em>连接</em>上  这是<em>为什么</em>啊
为什么连接不上?(Hibernate)
Person.hbm.xmlrn rnrnrnrnrnrnrnrnrnrnrnrnrnrnrnhibernate.cfg.xmlrnrnrn rn net.sf.hibernate.dialect.MySQLDialectrn com.<em>mysql</em>.jdbc.Driverrn jdbc:<em>mysql</em>://localhost/Temprn chenleirn rnrn truernrn rn rn rnrnrnrn报错:rnD:\Borland\JBuilder2005\jdk1.4\bin\javaw -classpath "C:\Documents and Settings\Administrator\jbproject\TestHXML\classes;F:\陈磊备份\useinJbuilder\hibernatelib\ant-1.5.3.jar;F:\陈磊备份\useinJbuilder\hibernatelib\ant-optional-1.5.3.jar;F:\陈磊备份\useinJbuilder\hibernatelib\c3p0-0.8.3.jar;F:\陈磊备份\useinJbuilder\hibernatelib\cglib-2.0-rc2.jar;F:\陈磊备份\useinJbuilder\hibernatelib\commons-collections-2.1.jar;F:\陈磊备份\useinJbuilder\hibernatelib\commons-dbcp-1.1.jar;F:\陈磊备份\useinJbuilder\hibernatelib\commons-lang-1.0.1.jar;F:\陈磊备份\useinJbuilder\hibernatelib\commons-logging-1.0.3.jar;F:\陈磊备份\useinJbuilder\hibernatelib\commons-pool-1.1.jar;F:\陈磊备份\useinJbuilder\hibernatelib\concurrent-1.3.2.jar;F:\陈磊备份\useinJbuilder\hibernatelib\connector.jar;F:\陈磊备份\useinJbuilder\hibernatelib\dom4j-1.4.jar;F:\陈磊备份\useinJbuilder\hibernatelib\ehcache-0.6.jar;F:\陈磊备份\useinJbuilder\hibernatelib\jaas.jar;F:\陈磊备份\useinJbuilder\hibernatelib\jboss-cache.jar;F:\陈磊备份\useinJbuilder\hibernatelib\jboss-common.jar;F:\陈磊备份\useinJbuilder\hibernatelib\jboss-jmx.jar;F:\陈磊备份\useinJbuilder\hibernatelib\jboss-system.jar;F:\陈磊备份\useinJbuilder\hibernatelib\jcs-1.0-dev.jar;F:\陈磊备份\useinJbuilder\hibernatelib\jdbc2_0-stdext.jar;F:\陈磊备份\useinJbuilder\hibernatelib\jgroups-2.2.jar;F:\陈磊备份\useinJbuilder\hibernatelib\jta.jar;F:\陈磊备份\useinJbuilder\hibernatelib\junit-3.8.1.jar;F:\陈磊备份\useinJbuilder\hibernatelib\log4j-1.2.8.jar;F:\陈磊备份\useinJbuilder\hibernatelib\odmg-3.0.jar;F:\陈磊备份\useinJbuilder\hibernatelib\oscache-2.0.jar;F:\陈磊备份\useinJbuilder\hibernatelib\proxool-0.8.3.jar;F:\陈磊备份\useinJbuilder\hibernatelib\swarmcache-1.0rc2.jar;F:\陈磊备份\useinJbuilder\hibernatelib\xalan-2.4.0.jar;F:\陈磊备份\useinJbuilder\hibernatelib\xerces-2.4.0.jar;F:\陈磊备份\useinJbuilder\hibernatelib\xml-apis.jar;F:\陈磊备份\useinJbuilder\hibernate2.jar;D:\<em>mysql</em> driver\<em>mysql</em>-connector-java-3.0.14-production-bin.jar;F:\陈磊备份\useinJbuilder\logging-log4j-1.2.11.zip;D:\Borland\JBuilder2005\jdk1.4\jre\bin\JBuilder2005_c.jar;D:\Borland\JBuilder2005\jdk1.4\jre\javaws\javaws.jar;D:\Borland\JBuilder2005\jdk1.4\jre\lib\charsets.jar;D:\Borland\JBuilder2005\jdk1.4\jre\lib\ext\dnsns.jar;D:\Borland\JBuilder2005\jdk1.4\jre\lib\ext\ldapsec.jar;D:\Borland\JBuilder2005\jdk1.4\jre\lib\ext\localedata.jar;D:\Borland\JBuilder2005\jdk1.4\jre\lib\ext\sunjce_provider.jar;D:\Borland\JBuilder2005\jdk1.4\jre\lib\im\indicim.jar;D:\Borland\JBuilder2005\jdk1.4\jre\lib\im\thaiim.jar;D:\Borland\JBuilder2005\jdk1.4\jre\lib\jce.jar;D:\Borland\JBuilder2005\jdk1.4\jre\lib\jsse.jar;D:\Borland\JBuilder2005\jdk1.4\jre\lib\plugin.jar;D:\Borland\JBuilder2005\jdk1.4\jre\lib\rt.jar;D:\Borland\JBuilder2005\jdk1.4\jre\lib\sunrsasign.jar;D:\Borland\JBuilder2005\jdk1.4\lib\dt.jar;D:\Borland\JBuilder2005\jdk1.4\lib\htmlconverter.jar;D:\Borland\JBuilder2005\jdk1.4\lib\tools.jar" Temp.Client2 rnlog4j:WARN No appenders could be found for logger (net.sf.hibernate.cfg.Environment).rnrnlog4j:WARN Please initialize the log4j system properly.rnrnjava.lang.UnsupportedOperationException: The user must supply a JDBC connectionrnrn at net.sf.hibernate.connection.UserSuppliedConnectionProvider.getConnection(UserSuppliedConnectionProvider.java:32)rnrn at net.sf.hibernate.impl.BatcherImpl.openConnection(BatcherImpl.java:278)rnrn at net.sf.hibernate.impl.SessionImpl.connect(SessionImpl.java:3264)rnrn at net.sf.hibernate.impl.SessionImpl.connection(SessionImpl.java:3244)rnrn at net.sf.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:40)rnrn at net.sf.hibernate.transaction.JDBCTransactionFactory.beginTransaction(JDBCTransactionFactory.java:19)rnrn at net.sf.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:2195)rnrn at Temp.Client2.main(Client2.java:29)rnrnException in thread "main" rnrn小弟刚学Hibernate.为这个<em>问题</em>搞了2天了,还是解决不了。
为什么连接不上库函数?
我用c++30编译了一个图形方面的程序。已经包含。但是就是<em>连接</em>不上他的函数。在c++30中是说“函数没定义”在vc中是说“打不开”是不是有其他的路径设置。应该怎么办?请大家帮我一下。谢谢。
为什么我的连接不上?
主机:rn WSAData da;rn WSAStartup(0x0020,&da);rn rn CSocket s,r;rn if(0!=s.Create(5000))rn MessageBox("created");rn if(0!=s.Listen ())rn MessageBox("lisening");rn SOCKADDR_IN ra;rn int le=sizeof(ra);rn if(0!=s.Accept( r,(SOCKADDR*)&ra,&le))rn MessageBox("accepted");rn客户rn CSocket cc;rn cc.Create ();rn CString st=m_text_v;rn cc.Connect ("127.0.0.1",5000);rn cc.Send ("ajslkjdf",5);rn//////////////////////rn只是学习<em>连接</em>,但就是<em>连接</em>不上。线程被挂起了。
为什么SQLServer2000连接不上
请问<em>为什么</em><em>连接</em>SQLServer2000出现以下异常?MSSQL 2000 Service Pack 3a 和SQL Server 2000 Driver for JDBC Service Pack 3都已安装,但还是不行.非常紧急,请高手搞点,多谢啦rnrnjava.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.rn at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)rn at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)rn at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)rn at com.microsoft.jdbc.sqlserver.tds.TDSConnection.(Unknown Source)rn at com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source)rn at com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown Source)rn at com.microsoft.jdbc.base.BaseConnection.open(Unknown Source)rn at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)rn at java.sql.DriverManager.getConnection(DriverManager.java:582)rn at java.sql.DriverManager.getConnection(DriverManager.java:185)
为什么客户端连接不上
用了几年的Windows2003了,也用了好多年SQL Server,不过这个<em>问题</em>倒是头次遇到。下午朋友遇到个现象,在Win2003简体中文服务器版上安装SQL Server2000,默认安装,一切正常,但是在安装完成后查看端口,1433端口居然未开放,当然更不用说远程<em>连接</em>了。rn一般分析的都是这样:rn1、sql server服务没有启动;rn检查服务启动,重新启动服务故障依然。rn2、修改了端口号;rn打开网络实用工具,检查启用的协议中有TCP/IP协议,查看端口,是1433没错。rn3、客户端实用工具作了改动;rn打开客户端实用工具,检查协议端口正常,重新创建一个别名,依然不行。rn4、安装的<em>问题</em>;rn因为没有看他怎么安装的sql,怀疑安装步骤有<em>问题</em>。据张烨这个牛人讲,如果修改了默认的实例名,而又未正确配置,会出现这样的现象。遂卸载重装,一切默认,故障依然。rn5、安装版本的<em>问题</em>;rn查看安装光盘,是久经考验的安装盘,应该不会出<em>问题</em>。rn6、系统的<em>问题</em>;rn也看不出有什么其它的<em>问题</em>,难道是系统的<em>问题</em>?不过重装系统可太过麻烦,还是先想想其它的办法,看能不能找到<em>问题</em>所在。rnrnrn此种<em>问题</em>怎么解决呀,大哥门rnrnrn
为什么注册不上呢?
我用MFC AppWizard 生成一个COM的DLL,但编译<em>链接</em>后无法注册到注册表,以致客户端程序无法调用。rn书上说是自动完成组件的注册,是哪处错了呢?
数据库为什么连接不上
我用Microsoft Office Access 2003做了一个数据库。在VB6.0中添加了data和DBGrid控件,在DATA的属性设置里设置:caption=data1;connect=Access;databaseName=D:\My Documents\试验数据.mdb.可是运行就出现错误:Unrecognized database format'D:\My Documents\试验数据.mdb'。请问大家这是什么原因呀!我用VB的外部程序的VISUAL DATA Manager建造的数据源用上面的方法<em>连接</em>都很正常呀。rn<em>连接</em>Microsoft Office Access 2003的数据库要用什么控件呀?
为什么连接不上呀?
我用winsocket编写<em>为什么</em>在我自己的机器上试能连上,而在上网以后和远程机器就连不上呀?(当然我知道一台与两台不一样),可我以前用的CSocket可以的,请问可能是什么<em>问题</em>?rnBOOL InISock()rnrn /*rn #define WM_SOCK 280rn #define US_MAXSIZE 1024rn */rn //Variable Definern int Status;rn //WORD wMajorVersion,wMinorVersion;rn WORD wVersionReqd;rn WSADATA lpmyWSAData;rn wVersionReqd = MAKEWORD(1,2);rn rn Status = WSAStartup(wVersionReqd,&lpmyWSAData); if (Status != 0)rn return FALSE;rn rn return TRUE;rnrnBOOL SetListenSock()rnrn int T;rnrn //Socketrn p_ListenSocket = socket(AF_INET,SOCK_STREAM,0);//rn if (p_ListenSocket==INVALID_SOCKET)rn return FALSE;rnrn p_ListenSocketAddr.sin_family = AF_INET;rn p_ListenSocketAddr.sin_port = htons(PORT);//rn p_ListenSocketAddr.sin_addr.s_addr = INADDR_ANYrn T = bind(p_ListenSocket,(struct sockaddr far *)&p_ListenSocketAddr,sizeof(p_ListenSocketAddr));rn if (T != 0)rn return FALSE;rnrn T = listen(p_ListenSocket,5);rn if (T!=0)rn AfxMessageBox("¼àÌý³ö´í£¡BOOL SetListenSock()");rn return FALSE;rn rnrn return TRUE;rnrnUINT SendFile(LPVOID pParam)rn//rn rnrn SOCKETm_SendSocket;rn struct sockaddr_in SocketAddr;rn rn m_SendSocket = socket(AF_INET,SOCK_STREAM,0);rn if (m_SendSocket < 0)rn return 0;rn rn//以下是设置IP IP是没有错的rn BYTE nField[4];rn dlg->m_IpAddressCtrl.GetAddress(nField[0],nField[1],nField[2],nField[3]);rn SocketAddr.sin_addr.S_un.S_un_b.s_b1=nField[0];rn SocketAddr.sin_addr.S_un.S_un_b.s_b2=nField[1];rn SocketAddr.sin_addr.S_un.S_un_b.s_b3=nField[2];rn SocketAddr.sin_addr.S_un.S_un_b.s_b4=nField[3];rn SocketAddr.sin_family = AF_INET;rn SocketAddr.sin_port = htons(PORT);rnrn //SocketAddr.sin_addr.s_addr = inet_addr(dlg->m_sAddress);rn rn int msgsock = connect(m_SendSocket,(struct sockaddr*)&SocketAddr,sizeof(SocketAddr));rn if (msgsock!=0)rn AfxMessageBox("<em>连接</em>错误",MB_OK);//总在这里是提示rnrn return FALSE;rn rn..............rn
为什么连接不上FTP?
在我下面的程序中,<em>为什么</em>不能实现这个<em>连接</em>,也没什么错误。调试时每次都进入CATHCH块。我在Internet Explorer中用ftp://ftp.microsoft.com可以进入。rn盼高手回答,谢谢先。rnrn在.H文件中定义这两个变量rnprotected:rn CFtpConnection* m_pFtpConnection;rn CInternetSession* m_pInternetSession;rnrn在.CPP文件中的部分代码如下:rnCFTPConnectView::CFTPConnectView()rnrn // TODO: add construction code herern m_pInternetSession = new CInternetSession;rnrnrnCFTPConnectView::~CFTPConnectView()rnrn if(m_pInternetSession != NULL)rn delete m_pInternetSession;rnrnrnrn/////////////////////////////////////////////////////////////////////////////rn// CFTPConnectView message handlersrnrnint CFTPConnectView::OnCreate(LPCREATESTRUCT lpCreateStruct) rnrn if (CView::OnCreate(lpCreateStruct) == -1)rn return -1;rn rn // TODO: Add your specialized creation code herern SetTimer(1, 1000, NULL);rnrn return 0;rnrnrnvoid CFTPConnectView::OnTimer(UINT nIDEvent) rnrn // TODO: Add your message handler code here and/or call defaultrn KillTimer(nIDEvent);rn rn tryrn rn m_pFtpConnection = m_pInternetSession->GetFtpConnection("ftp.microsoft.com");rn rn catch(CInternetException *pEx)rn rn pEx->Delete();rn m_pFtpConnection = NULL;rn rn rn CView::OnTimer(nIDEvent);rn
中间层为什么连接不上?
中间层编译过后直接替换了原来的EXE文件,可是客户端<em>连接</em>不上了,后来将Dcom中的ComputerName该为服务器的名字居然可以<em>连接</em>上(在客户处,其实程序中ComputerName是动态赋值的),但现在(在公司)又不行了。why???
为什么SQLServer连接不上
请问<em>为什么</em><em>连接</em>SQLServer2000出现以下异常?MSSQL 2000 Service Pack 3a 和SQL Server 2000 Driver for JDBC Service Pack 3都已安装,但还是不行.非常紧急,请高手搞点,多谢啦rnrnjava.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.rn at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)rn at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)rn at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)rn at com.microsoft.jdbc.sqlserver.tds.TDSConnection.(Unknown Source)rn at com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source)rn at com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown Source)rn at com.microsoft.jdbc.base.BaseConnection.open(Unknown Source)rn at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)rn at java.sql.DriverManager.getConnection(DriverManager.java:582)rn at java.sql.DriverManager.getConnection(DriverManager.java:185)
为什么连接不上远程桌面?
是windows 2008搭建的服务器。服务器在大学校园内,但是在校园内可以<em>连接</em>上此服务器的远程桌面,可是出了校园就<em>连接</em>不上了,怎么回事?
asp连接mysql连接不上,
[code=VBScript]dim connrnrnif not isObject(conn) then openconnrnsub openconn ()rn rn const uname = "root"rn const pwd = "771025gao"rn const serverip = "localhost"rn const dbase = "xwgg" '用户名跟密码我用那个管理登录上了rn dim connstrrn On Error Resume Nextrn connstr="driver=<em>mysql</em> odbc 3.51 driver;database="&dbase&";server="&serverip&";uid="&uname&";password="&pwd&""rn '无需配置dsnrn rn set conn = server.createobject("adodb.connection")rn conn.open strconnectionrn If Err Thenrn Err.Clearrn Set Conn = Nothingrn Response.Write "数据库<em>连接</em>出错,请检查Conn.asp文件中的数据库参数设置。" & connstrrn Response.Endrn End If rnend sub[/code]rn<em>mysql</em>数据库是5.0.4rnodbc 是从这下的http://dev.<em>mysql</em>.com/downloads/connector/odbc/3.51.html#win32,就是这个Windows ZIP/Setup.EXE (x86)下下来安装的,rn可就是连不上,应该怎样弄呢
JSP 连接Mysql 一直连接不上
我用的是eclipse-jee-galileo-SR1-win32 tomca6.0 Mysql5.1 下载下来的驱动是<em>mysql</em>-connector-java-5.1.10-bin.jar 我将它放在了D:\目录下并写进了系统变量calsspath 还把它放进了eclipse工作区的 项目\WebContent\WEB-INF\lib中 tomcat安装目录下的lib中也放进去了 但是程序运行结果一直是:rnrnHTTP Status 404 - rnrn--------------------------------------------------------------------------------rnrntype Status reportrnrnmessage rnrndescription The requested resource () is not available.rnrnrn--------------------------------------------------------------------------------rnrnApache Tomcat/6.0.20rnrn程序如下:rnrnrnrnrnrnrnrnrn rn 创建数据库rnrnrnrnrnrn
连接不上mysql,找不到mysql解决办法
长时间不用<em>mysql</em> 发现不能正常启动msyq,服务项也找到不到了。 <em>问题</em>原因: cclear Dism++ 等清理软件清理了。 报错: ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061) 解决办法 1.管理员运行cmd,cd到<em>mysql</em>根目录 2、cmd管理员执行
Apache mysql php配置连接不上mysql
Apache <em>mysql</em> php配置<em>连接</em>不上<em>mysql</em>怎么回事,不管我怎么改都连不上,我是菜鸟,请求帮助rnrn我装的是<em>mysql</em>5.3.17rnapache2.2.11rnphp5.3.0rnapache可以运行PHP测试也正常,就是<em>连接</em>数据库出了<em>问题</em>rnrn附部分配置信息rnPHP配置5.3的和以前的不一样了吗???rnrn[dba]rn;dba.default_handler=rnrn; Local Variables:rn; tab-width: 4rn; End:rn[PHP_BZ2]rnextension=php_bz2.dllrn[PHP_CURL]rnextension=php_curl.dllrn[PHP_GD2]rnextension=php_gd2.dllrn[PHP_GETTEXT]rnextension=php_gettext.dllrn[PHP_IMAP]rnextension=php_imap.dllrn[PHP_MBSTRING]rnextension=php_mbstring.dllrn[PHP_MYSQL]rnextension=php_<em>mysql</em>.dllrn[PHP_MYSQLI]rnextension=php_<em>mysql</em>i.dllrn[PHP_OPENSSL]rnextension=php_openssl.dllrn[PHP_PDO_MYSQL]rnextension=php_pdo_<em>mysql</em>.dllrn[PHP_PDO_ODBC]rnextension=php_pdo_odbc.dllrn[PHP_PDO_SQLITE]rnextension=php_pdo_sqlite.dllrn[PHP_PGSQL]rnextension=php_pgsql.dllrn[PHP_SOAP]rnextension=php_soap.dllrn[PHP_SOCKETS]rnextension=php_sockets.dllrn[PHP_SQLITE3]rnextension=php_sqlite3.dllrn[PHP_TIDY]rnextension=php_tidy.dllrn[PHP_XMLRPC]rnextension=php_xmlrpc.dllrn[PHP_EXIF]rnextension=php_exif.dllrnrnAPACHE的配置信息rn#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALLrnPHPIniDir "C:/PHP/"rnLoadModule php5_module "C:/PHP/php5apache2_2.dll"rn#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALLrnPHP5.3安装程序自己干添加上去的
Navicat连接不上Linux服务器上的MySQL。
1.首选你Linux服务器上要装配好了MySQL数据库。   2.在Linux服务区上登入到MySQL数据库的命令行。   3.输入use <em>mysql</em> 切换到MySQL数据库.  4.输入:  grant all privileges on *.* to root@"%" identified by "密码"; 这相当于是给IP-xxx.xxx.xxx.xxx赋予了所
为什么连接SQL SERVER2000连接不上
我将环境变量等设置情况写在下面:rnweb server:apache_1_3_12_win32.exe,安装在c:\apache;rnservlet容器:ApacheJServ-1.1.2-2.exe,安装在c:\Apache JServ 1.1.2;rnj2sdk:j2sdk-1_3_1_07-windows-i586.exe,安装在c:\jdk1.3.1_07;rntomcat:jakarta-tomcat-3.2.3.zip,安装在c:\jtomcatrnjdbc:Microsoft SQL Server 2000 Driver for JDBC,安装在d:\program file\Microsoft SQL Server 2000 Driver for JDBC下rnclasspath设置:c:\jdk1.3.1_07\lib\tools.jar;c:\jdk1.3.1_07\lib\dt.jar;c:\jdk1.3.1_07\user;c:\jtomcat\lib\servlet.jar;c:\jdk1.3.1_07\lib\msbase.jar;c:\jdk1.3.1_07\lib\mssqlserver.jar;c:\jdk1.3.1_07\lib\msutil.jarrn其中将JDBC FOR SQL SERVER三个文件拷贝到c:\jdk1.3.1_07\lib下;rnpath设置:rnc:\jdk1.3.1_07\binrntomcat的PORTS设置为8080;rn在c:\下编译servlet文件DBConnect.java,出错信息为:rn凡是有JDBC类的地方均为 can not resolve symbolrn源代码为:rnimport com.microsoft.jdbc.sqlserver.SQLServerDriver;rnimport java.net.*;rnimport java.lang.*;rnimport java.io.*;rnimport java.sql.*;rnimport javax.servlet.*;rnrnpublic class DBConnect extends GenericServletrn private Connection dcon=null;rn public void init(ServletConfig con) throws ServletExceptionrn super.init(con);rn String driver="com.microsoft.jdbc.sqlserver.SQLServerDriver";rn String url="jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=pubs;User=sa;password="; rn tryrn Class.forName(driver).newInstance;rn dcon=DriverManager.getConnetion(url);rn rn cathch(Exception ex)rn system.out.println(ex.toString());rn rn rn public void service(ServletRequest req,ServletResponse res) throws ServletException.IOExceptionrn String sqlstr="select * from jobs";rn Statement lstmt=dcon.CreateStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);rn ResultSet rs=lstmt=con.executeQuery(sqlstr);rn res.setContentType("text/html");rn PrintWriter out = response.getWriter()rn out.println("");rn out.println("");rn out.println("");rn out.println(" Hello World!");rn out.println("");rn out.println("");rn lsmt.last();rn rn int num=lsmt.getRow(); rn rn if (num==0)rn out.println(" 数据库中无记录!");rn rn elsern lsmt.first();rn while (lsmt.next())rn out.println(""+lstmt.getString("job_id")+"");rn out.println(""+lstmt.getString("job_desc")+"");rn rn rn rn out.println("");rn out.println(""); rn lstmt.close();rn rn public void destroyrn dcon.close()rn rnrnrn
ADO连接ACCESS数据库为什么连接不上
会出现什么原因?
静态库链接不上,是怎么回事呢?
在Linux下 编译一个NCL 的C程序需要<em>链接</em>libnetcdf.a的一个静态库,它放在/usr/local/lib下,rn编译时使用命令nhlcc -o test test.c -l/usr/local/lib/libnetcdf.a (NCL 自带命令)rnrn即gcc -DSYSV -D_POSIX_SOURCE -D_XOPEN_SOURCE -DByteSwapped -D__UNIXOS2__ -DNeedFuncProto -ansi -fPIC -O0 -o cn14c cn14c.c -l/usr/local/lib/libnetcdf.a -L/usr/local/lib -I/usr/local/include -lhlu -lncarg -lncarg_gks -lncarg_c -lX11 -lXext -lgfortran -lmrnrn但是报错rn/usr/bin/ld: cannot find -l/usr/local/lib/libnetcdf.arn我查看了/ect/ld.so.conf.d/lic.conf文件中默认路径为/usr/local/lib 没有错啊,请问<em>为什么</em>还链不进去呢?rn求高手指点!rnrn
NAVICAT 链接不上远程服务器里的MYSQL~~!!
首先声明,配置MYSQL权限那个已经试过了,没用的,还有其他原因没。rnrnrn2003 - Cann't connet to Mysql server on 'XXX.XXX.XXX.XXX' (10060)rnrn这个错误
链接不上 FlatSB_SetScrollPos 的问题
mingw32-makern==== Building test ====rnapp.cpprnmain.cpprnLinking testrnobj/Debug/main.o: In function `ZN7DlgMain8InitListEP6HWND__':rnd:/develop/C-C++/listview/main.cpp:171: undefined reference to `FlatSB_SetScrollPos@16'rncollect2: ld returned 1 exit statusrnmingw32-make[1]: *** [debug/exeName.exe] Error 1rnmingw32-make: *** [test] Error 2rnrn我用的是 MinGW5.1.4rn求解,谢谢
为什么总是链接不上SQLSERVER
[code=PHP]rn rn[/code]rnrn始终出现如下错误rn[code=PHP]rnFatal error: Call to undefined function mssql_connect() in E:\wwwroot\phptest\PHP\index.php on line 3 rn[/code] rnrn我的PHP是php-5.3.2-nts-Win32-VC9-x86.msirnsql驱动是php_sqlsrv_53_nts_vc9.dllrnrnphp.ini也做了相应配置rn; Windows Extensionsrn; Note that ODBC support is built in, so no dll is needed for it.rn; Note that many DLL files are located in the extensions/ (PHP 4) ext/ (PHP 5)rn; extension folders as well as the separate PECL DLL download (PHP 5).rn; Be sure to appropriately set the extension_dir directive.rn extension=php_sqlsrv_53_nts_vc9.dllrnrn请教rnrn
为什么我的链接不上图片?
我在WEB窗体里面放入一个IMG服务器控件,<em>为什么</em>图片显示不出来?rn我.NET的程序目录是设置在F:\目录下,IIS里面的主目录我也设置在同一个目录下,然后我直接把图片文件夹images拷贝到了F:\目录下,在我用IMG的IMGURL属性时,我选的相对路径,我看见了一本书上说,可以直接用“~”取代掉:“http://localhost/aspnet/”路径,可是当我用“~/images/xxx.gif”时却显示不出图片是<em>为什么</em>啊?
如何解决mysql连接远程服务器连接不上的问题
前言 今天在给测试服务器安装完<em>mysql</em>服务器之后,想着使用我本地的navicat<em>连接</em>一下,但是直接报了Host 'xxx'is not allowed to connect to this MySQL server这个错误,一开始我以为是测试服务器防火墙或者是端口没有对外开放引起的,但是发现测试环境防火墙没开以及端口也是开放的,后来网上找了一下,原来是<em>mysql</em>服务器没有开启远程访问权限导致...
Java 连接MySQL 8.0.11 连接不上的问题
这几天用上了Ubuntu 18.04后,下载了MySQL最新版(8.0.11) 在运行调试之前的项目时,发现mybatis一直报错 错误如下: org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException: ### Error q...
解决powerdesigner连接mysql连接不上的问题
利用powerdesigner反向生成表结构时,需要MySQL<em>连接</em>,配置好<em>连接</em>,测试时直接报:connection test failed”!,控制台输出:Could not Initialize JavaVMOS:WIN7 旗舰版 64位 JDK: 64位 PowerDesigner:16.5.0.3982<em>问题</em>原因: powerdesigner是基于32位的jvm内核解决方式:1、需要安装
安装mysql后使用mysql workbench连接不上的问题
在cmd中可以<em>连接</em><em>mysql</em>,但是<em>mysql</em> workbench<em>连接</em>不上。查了后是,<em>mysql</em> 加密方式改变。在cmd黑窗口中启动MySql服务器后输入:ALTER USER 'root'@'localhost' IDENTIFIED WITH <em>mysql</em>_native_password BY 'your password';FLUSH PRIVILEGES;...
hibernate + mysql 长时间不用后就连接不上的问题
大家遇到过这个<em>问题</em>吗?如何解决的?
SOCKET编程,为什么连接不上呢,帮我看看呀
编译可以通过,运行后,<em>连接</em>服务器的时候应该弹出窗口,可是却没有。是不是没有<em>连接</em>上呢。rnrnclient端主要代码:rnvoid CChatClientDlg::OnConnect() rnrn // TODO: Add your control notification handler code herern WSADATA wsaData;rn WSAStartup(MAKEWORD(2,1),&wsaData);rn ServerSocket=socket(AF_INET,SOCK_STREAM,0);rn sockStruct.sin_family=AF_INET;rn sockStruct.sin_port = htons(8001);rn sockStruct.sin_addr.S_un.S_addr = inet_addr("192.168.0.26");rn connect(ServerSocket,(LPSOCKADDR)&sockStruct,sizeof(sockStruct));rn WSAAsyncSelect(ServerSocket,m_hWnd,WM_SERVER,FD_READ|FD_CLOSE);rn flag = true;rn return;rnrnrnvoid CChatClientDlg::OnDisconnect() rnrn // TODO: Add your control notification handler code herern WSACleanup();rn flag = false;rnrnrnvoid CChatClientDlg::OnCancel() rnrn // TODO: Add extra cleanup herern if ( flag )rn rn MessageBox("ÇëÏȶϿªÁ¬½Ó","Ìáʾ");rn return;rn rn CDialog::OnCancel();rnrnrnvoid CChatClientDlg::OnOK() rnrn // TODO: Add extra validation herern rn //CDialog::OnOK();rnrnrnLRESULT CChatClientDlg::OnServer(WPARAM wParam,LPARAM lParam)rnrn switch (WSAGETSELECTEVENT(lParam))rn rn case FD_READ:rn //recv(ServerSocket,(char *)&msg,sizeof(msg),0);rn MessageBox("gfsdg");rn // m_log.Format("%s\r\n%s",(char *)msg.msg,m_log);rn // UpdateData( false );rn break;rn case FD_CLOSE:rn closesocket(ServerSocket);rn flag = false;rn break;rn rn return 0L;rnrnserver端代码:rnvoid CChatServerDlg::OnOK() rnrn // TODO: Add extra validation herern UpdateData();rn strcpy((char *)msg.msg,(LPCTSTR)m_msg);rn msg.i = 0;rn send(ClientSocket,(char *)&msg,sizeof(msg),0);rn //CDialog::OnOK();rnrnrnvoid CChatServerDlg::OnCancel() rnrn // TODO: Add extra cleanup herern if ( flag )rn rn MessageBox("ÇëÏÈÍ£Ö¹·þÎñÆ÷","Ìáʾ");rn return;rn rn CDialog::OnCancel();rnrnrnvoid CChatServerDlg::OnStop() rnrn // TODO: Add your control notification handler code herern m_log = "·þÎñÆ÷Í£Ö¹\r\n" + m_log;rn UpdateData( false );rn flag = false;rn WSACleanup();rnrnrnvoid CChatServerDlg::OnStart() rnrn // TODO: Add your control notification handler code herern WSADATA wsaData;rn WSAStartup(MAKEWORD(2,1),&wsaData);rn ServerSocket = socket(AF_INET,SOCK_STREAM,0);rnrn m_ServerAddr.sin_family = AF_INET;rn m_ServerAddr.sin_addr.s_addr = INADDR_ANY;rn m_ServerAddr.sin_port = htons(8001);rn bind(ServerSocket,(LPSOCKADDR)&m_ServerAddr,sizeof(m_ServerAddr));rn WSAAsyncSelect(ServerSocket,m_hWnd,WM_CLIENT,FD_ACCEPT|FD_READ|FD_CLOSE);rn listen(ServerSocket,1);rn flag = true;rn m_log = "·þÎñÆ÷Æô¶¯³É¹¦\r\n" + m_log;rn UpdateData( false );rnrnrnLRESULT CChatServerDlg::OnClient(WPARAM wParam,LPARAM lParam)rnrn switch (WSAGETSELECTEVENT(lParam))rn rn case FD_READ:rn break;rn case FD_CLOSE:rn break;rn case FD_ACCEPT:rn MessageBox("FD_ACCEPT");rn break;rn rn return 0L;rnrn
为什么我的JSP连接不上Oracle数据库呢???
我用一个JAVABEAN<em>连接</em>Oracle数据库,但<em>问题</em>是在安装了oracle 的电脑上能<em>连接</em>,但在没有安装oracle 的电脑上运行,却<em>连接</em>不了另一台机上的oracle 数据库。是不是我那台机上没有oracle的数据驱动呢?请各位多多指教!
为什么我的第二个socket连接不上呢?
第一个socket可以接收到"socket 1 accept ok"rn第二个就接收不到rnrn[code=C/C++] // Set Port = IMGPORT, leaving IP address = Anyrn memset(&sin1, 0, sizeof(sin1));rn sin1.sin_addr.s_addr = INADDR_ANY;rn sin1.sin_family = AF_INET;rn sin1.sin_port = htons(DATAPORT1);rn rn memset(&sin2, 0, sizeof(sin2));rn sin2.sin_addr.s_addr = INADDR_ANY;rn sin2.sin_family = AF_INET;rn sin2.sin_port = htons(DATAPORT2);[/code]rnrn[code=C/C++] size1 = sizeof( sin1 );rn size2 = sizeof( sin2 ); rn rn stcpactive1 = accept( stcp1, (struct sockaddr*)&sin1, (int*)&size1 );rn if( stcpactive1 == INVALID_SOCKET)rn rn AfxMessageBox("socket 1 accept failed");rn goto leave;rn rn elsern rn AfxMessageBox("socket 1 accept ok");rn goto leave;rn rn stcpactive2 = accept( stcp2, (struct sockaddr*)&sin2, (int*)&size2 );rn if( stcpactive2 == INVALID_SOCKET)rn rn AfxMessageBox("socket 2 accept failed");rn goto leave;rn rn elsern rn AfxMessageBox("socket 2 accept ok");rn goto leave;rn [/code]
MPEG Layer-3(压缩)为什么连接不上呢??
audio capture=>ACM wraper=>MPEG Layer-3=>AVI mux=>file writerrn我在graph edit中都能<em>连接</em>正常,但是在程序中MPEG Layer-3<em>连接</em>就连不上。rn哪位知道原因??
lcc_win32_4.0下载
lcc_win32_4.0 相关下载链接:[url=//download.csdn.net/download/root_absolutsy/4038143?utm_source=bbsseo]//download.csdn.net/download/root_absolutsy/4038143?utm_source=bbsseo[/url]
VPLS原理 ISSUE1.0下载
VPLS原理 ISSUE1.0 有需要的看看 相关下载链接:[url=//download.csdn.net/download/kkkk4454/4959435?utm_source=bbsseo]//download.csdn.net/download/kkkk4454/4959435?utm_source=bbsseo[/url]
iPhone3,1_SHSH6.1下载
iPhone3,1_SHSH6.1 刷机必备文件 相关下载链接:[url=//download.csdn.net/download/qq_17028505/7566725?utm_source=bbsseo]//download.csdn.net/download/qq_17028505/7566725?utm_source=bbsseo[/url]
相关热词 c#检测非法字符 c#双屏截图 c#中怎么关闭线程 c# 显示服务器上的图片 api嵌入窗口 c# c# 控制网页 c# encrypt c#微信网页版登录 c# login 居中 c# 考试软件
我们是很有底线的