tomcat 404 提示连接不上mysql数据库????? 求各位大神帮忙,拜托

各位大神求帮忙,想要实验下复制过来的一个web项目,但是死活数据库连接不上。特地截图方便各位大神帮忙看看到底毛病出在什么地方,该怎么改正。萌萌新网上找了很多原因但无从下手= =、
附上服务器配置图,c3p0的jar包也导入了,sqlyog也能登录:

图片说明

以下是console错误提示图:

图片说明

图片说明

图片说明

图片说明

图片说明

图片说明

2个回答

访问权限开启使用
update user set host = ’%’ where user = ’root’;
账号密码直接用navicat登陆看看是不是有问题

qq_37129624
ghq-yes 无语。。。。404是404,那是找不到页面或者请求,access denied是连接数据库拒绝,包含数据库连接的各种错误。找答案之前最好先搞清楚你的问题是什么,然后再百度
9 个月之前 回复
weixin_43923587
weixin_43923587 回复qq_37129624: 就是没有404了,百度了啊。。。我百度了几天没得到答案。
9 个月之前 回复
qq_37129624
ghq-yes Duplicate entry '%-root' for key 'PRIMARY' 这个是说host已经有了%这个值,所以不需要再更新,直接刷新就可以,你后面执行的那个命令就是刷新,console报错那还得看是报的什么错误
10 个月之前 回复
qq_37129624
ghq-yes 小兄弟要学会自己百度呀,你说的行了我不知道你说的是数据库连接没有问题了还是项目没有问题了
10 个月之前 回复
weixin_43923587
weixin_43923587 回复qq_37129624: 我前面又试了下。。。突然行了。。。但console还是报错了。但localhost8080能进去了= =什么情况
10 个月之前 回复
weixin_43923587
weixin_43923587 回复qq_37129624: mysql> update user set host='%' where user='root'; ERROR 1062 (23000): Duplicate entry '%-root' for key 'PRIMARY' mysql> flush privileges; Query OK, 0 rows affected (0.00 sec)我这样输的,但还是不行
10 个月之前 回复
qq_37129624
ghq-yes 账号密码那里看下前后是不是有空格,退格键试一下
10 个月之前 回复
qq_37129624
ghq-yes 回复weixin_43923587: 直接在数据库里面执行就好
10 个月之前 回复
weixin_43923587
weixin_43923587 回复: 还有update user set host = ’%’ where user = ’root’;这段代码加到哪里?
10 个月之前 回复
weixin_43923587
weixin_43923587 前面用navivat登陆了,账号密码没问题。
10 个月之前 回复

把问题定位在访问权限以及账号密码错误两点上了.

weixin_43923587
weixin_43923587 大神请问这两点该怎么去改呢?
10 个月之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
Finereport部署tomcat 连接不上mysql数据库
datasource.xmlrnrnrn rn rnrn rn rn rn rnrn
JPS连接MySql数据库,连接不上,求帮忙指点下
先上代码:rn<%@ page contentType="text/html;charset=GBK"%>rn<%@page import="java.sql.*"%>rn<%!public static final String DBDRIVER="org.gjt.mm.mysql.Driver";rnpublic static final String DBURL = "jdbc:mysql://127.0.0.1:3306/test";rnpublic static final String DBUSER = "";rnpublic static final String DBPASS = "";rn%>rn<%rnConnection conn=null;rnPreparedStatement pstmt = null;rnResultSet rs = null;rn%>rn<%rntryrnClass.forName(DBDRIVER);rnconn=DriverManager.getConnection(DBURL,DBUSER,DBPASS);rnString sql = "SELECT userName,passWord From user";rnpstmt =conn.prepareStatement(sql);rnrs = pstmt.executeQuery();rncatch(Exception ex)rnSystem.out.println("连接数据库错误");rnrn%>rnrn就在conn=DriverManager.getConnection(DBURL,DBUSER,DBPASS);rn这过不了,我删掉后面的,在这用catch后台就打印 “连接数据库错误了”rn这句有什么错呢?我刚安的MYQSL 打开,直接按个回车就进入了 下面建了一个test数据库。rn在这过程中,WEB页面是白的哈,没任何反应rn
连接不上MYSQL数据库
连接不上MYSQL数据库,并且我在mysql front 中想创建个数据库,弹出对话框,不让我创建,对话框内容为: SQL执行错误#1141,从数据库响应:thereis no such grant defined for user'root' on host '%' .rn连接不上MYSQL和这个有关系吗?
求各位大神帮忙。。。
去从text文件中读取数据并且存他们进入array.然后从大到小print出来。rnprint出来的还有格式要求一行八个,靠左对齐。rnrn[code=java]import java.io.*;rnimport java.util.*;rnrnpublic class gradeprintrn public static void main(String[] args)throws IOExceptionrn Scanner in = new Scanner (new FileReader("data.txt"));rn for () rnrn rnrn for () rnrnrnrn [/code]rnrnrn这个是格式rnrnrn[code=text]90rn80rn76rn95rn87rn36rn95rn95rn56rn68rn78rn87rn98rn87rn45rn67rn95rn34rn92rn80rn95rn90rn76rn95rn95rn48rn95rn64rn68rn45[/code]
求各位大神帮忙
[img=https://img-bbs.csdn.net/upload/201708/25/1503642933_277173.png][/img]rn请问各位大神我在使用xshell时经常出现如图的情况是怎么回事?
求各位大神。帮忙
#includern#include rnusing namespace std;rnrnconst double PI = 3.14159;rnclass Pointrnrnprivate:rndouble x, y;rnpublic:rnPoint(double xx=0, double yy=0)rnx = xx;rny = yy;rnrnvoid set(double xx = 0, double yy = 0)rnrnx = xx;rny = yy;rnrnrnvoid display()rnrncout << "(" << x << "," << y << ")" << endl;rnrndouble getX()rnrnreturn x;rnrndouble getY()rnreturn y;rnrndouble distance(Point n)rndouble dx = x - n.x;rndouble dy = y - n.y;rnreturn sqrt(dx*dx + dy*dy);rnrnrn;rnrnclass Rectangle :public Point //矩形 rnrnprotected:rndouble length, width;rnPoint center;rnpublic:rnRectangle(double l=1, double w=1, double xx=0, double yy=0) :Point(xx, yy), length(l), width(w)rnvoid set(double l = 0, double w = 0, double xx = 0, double yy = 0)rnrnPoint::set(xx,yy);rnlength = l;rnwidth = w;rnrnrndouble Area()rnrnreturn length*width;rnrnrndouble Peri()rnrnreturn (length + width) * 2;rnrnPoint getcenter()rnreturn center;rnrnrnvoid display()rnrncout << "矩形的中心坐标:";rnPoint::display();rncout << "矩形的长度: " << length << endl;rncout << "矩形的宽度: " << width << endl;rnrn;rnrnclass Circle : public Point //圆形 rnrnprotected:rndouble radius;rnPoint center;rnpublic:rnCircle(double R=1, double xx=0, double yy=0) :Point(xx, yy), radius(R)rnvoid set(double R = 0, double xx = 0, double yy = 0)rnrnPoint::set(xx, yy);rnradius = R;rnrnrndouble Area()rnrnreturn PI*radius*radius;rnrnrndouble Peri()rnrnreturn 2 * PI*radius;rnrnPoint getcenter()rnreturn center;rnrnvoid display()rnrncout << "圆形的中心坐标::" ;rnPoint::display();rncout << "圆形的半径: " << radius << endl;rnrnrn;rnrnclass Triangle : public Point // 三角形 rnrnrnprotected:rndouble SideA, SideB, SideC;rndouble l;rnPoint center;rnrnpublic:rnTriangle(double sa=3, double sb=4, double sc=5, double xx=0, double yy=0) :Point(xx, yy), SideA(sa), SideB(sb), SideC(sc)rnvoid set(double sa = 0, double sb = 0, double sc = 0, double xx = 0, double yy = 0)rnrnPoint::set(xx, yy);rnSideA = sa;rnSideB = sb;rnSideC = sc;rnrnrndouble Area()rnrnl = (SideA + SideB + SideC) / 2;rnreturn sqrt(l*(l - SideA)*(l - SideB)*(l - SideC));rnrnrndouble Peri()rnrnreturn SideA + SideB + SideC;rnrnPoint center()rnreturn center;rnrnvoid display()rnrncout << "三角形的中心坐标:" ;rnPoint::display();rncout << "三角形的三条边:" << SideA << " " << SideB << " " << SideC << endl;rnrn;rnrnclass RecCuboid :public Rectangle //长方体 rnrnprivate:rndouble high;rnpublic:rnRecCuboid(double h=1, double l=1, double w=1, double xx=0, double yy=0) :Rectangle(l, w, xx, yy), high(h)rnvoid set(double h = 0, double l = 0, double w = 0, double xx = 0, double yy = 0)rnrnRectangle::set(l, w, xx, yy);rnhigh = h;rnrnrndouble Volume()rnrncout << "长方体的体积 :" << length*width*high << endl;rnreturn 0;rnrnvoid display()rnRectangle::display();rncout << "长方体的高度:" << high << endl;rnrnrn;rnrnclass CirCuboid :public Circle //圆柱 rnrnprivate:rndouble high;rnpublic:rnCirCuboid(double h=1, double r=1, double xx=0, double yy=0) :Circle(r, xx, yy), high(h)rnvoid set(double h = 0, double r = 0, double xx = 0, double yy = 0)rnrnCircle::set(r, xx, yy);rnhigh = h;rnrnrndouble Volume()rnrncout << "圆柱的体积 :" << PI*radius*radius*high << endl;rnreturn 0;rnrnvoid display()rnCircle::display();rncout << "圆柱的高度:" << high << endl;rn rnrn;rnrnclass TriCuboid :public Triangle //三菱住 rnrnprivate:rndouble high;rnpublic:rnTriCuboid(double h=1, double sa=3, double sb=4, double sc=5, double xx=0, double yy=0) :Triangle(sa, sb, sc, xx, yy), high(h)rnvoid set(double h = 1, double sa = 0, double sb = 0, double sc = 0, double xx = 0, double yy = 0)rnrnTriangle::set(sa, sb, sc, xx, yy);rnhigh = h;rnrnrn double Volume()rnrncout << "三菱住的体积 :" << sqrt(0.33*l*(l - SideA)*(l - SideB)*(l - SideC))*high << endl;rnreturn 0;rnrnvoid display()rnTriangle::display();rncout << "三菱柱的高度:" << high << endl;rnrnrn;rn void display(Point &pp,int type)rnRectangle *pr;rnCircle *pc;rnTriangle *pt;rnCirCuboid *pcu;//长方体、rnRecCuboid *pcy;//圆柱rnTriCuboid *ptr; //三菱柱rnswitch (type)rn case 1:rnpr = reinterpret_cast(&pp);rncout << "矩形的面积;" << pr->Area() <<"/t矩形的周长:"<Peri()<< endl;rnbreak;rncase 2:rnpc = reinterpret_cast(&pp);rncout << "圆形的面积;" << pc->Area() << "/t圆形的周长:" << pc->Peri() << endl;rnbreak;rncase 3:rnpt = reinterpret_cast(&pp);rncout << "三角形的面积;" << pt->Area() << "/t三角形的周长:" << pt->Peri() << endl;rnbreak;rncase 11:rnpcu = reinterpret_cast(&pp);rncout << "长方体的体积:" << pcu->Volume() << endl;rnbreak;rncase 12:rnpcy = reinterpret_cast(&pp);rncout << "圆柱的体积:" << pcy->Volume() << endl;rnbreak;rncase 13:rnptr = reinterpret_cast(&pp);rncout << "三菱柱的体积:" << ptr->Volume() << endl;rnbreak;rnrnrnrnrnrnrnrnrn double distance(const Point &rp1,const Point &rp2)rn double dx = rp1.getX() - rp2.getX();rn double dy = rp1.getY() - rp2.getY();rn return sqrt(dx*dx + dy*dy);rn rnint main()rn rnPoint objPoint;rnobjPoint.set(5.10);rncout << "点的坐标为:";rnobjPoint.display();rncout << " " << endl;rnrnRectangle objRectangle;rnobjRectangle.set(10, 15, 20, 40);rnobjRectangle.display();rncout << "矩形的面积:" << objRectangle.Area() << endl;rncout << "矩形的周长:" << objRectangle.Peri() <g:\用vs编程的acm\派生类的继承,兼容类型\派生类的继承,兼容类型\派生类的继承和兼容类型.cpp(138): error C2365: “Triangle::center”: 重定义;以前的定义是“数据成员”rn1> g:\用vs编程的acm\派生类的继承,兼容类型\派生类的继承,兼容类型\派生类的继承和兼容类型.cpp(116) : 参见“Triangle::center”的声明rn1>g:\用vs编程的acm\派生类的继承,兼容类型\派生类的继承,兼容类型\派生类的继承和兼容类型.cpp(261): error C2662: “double Point::getX(void)”: 不能将“this”指针从“const Point”转换为“Point &”rn1> 转换丢失限定符rn1>g:\用vs编程的acm\派生类的继承,兼容类型\派生类的继承,兼容类型\派生类的继承和兼容类型.cpp(262): error C2662: “double Point::getY(void)”: 不能将“this”指针从“const Point”转换为“Point &”rn1> 转换丢失限定符
各位大神,求帮忙????
小弟求一个将从数据库查询出来的数据集合导出到execl的代码,希望在点击弹出时有下载框提示。谢谢各位了。。。
求各位大神帮忙...
求各位大神帮忙...小弟要考试了,这个题还请大神的帮忙解答,多谢rn[code=text]rn读下面的程序回答问题:rn MOV AL,10rn MOV BL,ALrn SHL BL,1rn MOV CL,ALrn XOR AX,AXrn AGAIN:ADD AL,BLrn ADC AH,0rn DEC CLrn JNZ AGAINrn HLTrn[/code]rn问:rn(1)、改程序完成的功能是什么?rn(2)、(AX)= H?rnrn[code=text]rn22、源程序如下:rn MOV AX,8000Hrn NOT AXrn SUB AX,0FFFFHrn ADD AX,8000Hrn SUB AX,1rn AND AX,3A6BHrn ROR AX,1rn rn[/code]rn 问:j 程序执行完后,AX寄存器的内容是什么?(6分)rn k 程序执行完后,CF的内容是什么?(6分)rnrn下面这道题有点太难了,大神们能回答就回答,太麻烦各位就算了...rnrn设计有8K×4芯片组成16K×8的随机存储器,要求:rn(1) 画出连接图,包括地址线、数据线、 、 、译码电路等。rn(2) 求出每个芯片的地址范围rnrnrn非常感谢各位看帖....rn
mapreduce读取hbase连接不上,求大神帮忙,痕迹
问题:我在虚拟机上安装Ubuntu server32位,并且安装hadoop和hbase,通过本地eclipse的插件编写测试程序,我在eclipse里单独测试hadoop和hbase都没有问题,可以运行官方wordcount.java,并且可以对hbase增删改查都没有问题,现在想把这两个整合到一起,读取hbase的数据,写到hdfs上,但是始终连接不上,很郁闷,已经查找2天了,还是没有解决,求帮忙,先谢谢了,在线等,很急。。。。。rn[img=https://img-bbs.csdn.net/upload/201307/23/1374543774_282395.jpg][/img]rnrn我的配置信息如下rn一、hadoop:rn1、core-site.xmlrnrnrnrn rn fs.default.namern hdfs://ubuntu:9000rn rn rn hadoop.tmp.dirrn /home/ubuntu/hadoop-1.1.2/tmprn rn rn hadoop.native.librn truern Should native hadoop libraries, if present, be used.rn rnrn2、mapred-site.xmlrnrnrnrn rn mapred.job.trackerrn localhost:9001rn rnrn3、hdfs-site.xmlrnrnrnrn rn dfs.replicationrn 1rn rn rn dfs.permissionsrn falsern rnrnrn二、hbasern1、hbase-site.xmlrnrnrn hbase.rootdirrn hdfs://ubuntu:9000/hbasernrnrn hbase.cluster.distributedrn truernrnrnrnrnhosts和环境变量就不贴了,对了我使用的版本是hadoop1.1.2 、hbase0.94.9,在线等求大神门帮忙解决,很急,我的qq:826192947,谢谢
TomCat 404提示错误?
我今天用ssm写一个简单的小项目遇到了一个问题。这是我的拦截器代码,使用转发访问“loginPage”就报404错误,但下图路径就正常,使用重定向两个路径都不能访问rn ![图片说明](https://img-ask.csdn.net/upload/201810/26/1540560785_969460.jpg)rn 这是我的视图解析器代码,访问后台页面正常,但就是不能访问前台loginPagern ![图片说明](https://img-ask.csdn.net/upload/201810/26/1540560832_823504.jpg)rn 我的页面结构,看了半天...rn ![图片说明](https://img-ask.csdn.net/upload/201810/26/1540560894_709456.jpg)rn 报错...rn ![图片说明](https://img-ask.csdn.net/upload/201810/26/1540560949_76953.jpg)
新手使用websocket连接不上,求大神帮忙
WebSocket connection to 'ws://localhost:8080/ws/message' failed: Error during WebSocket handshake: Unexpected response code: 404rnrn在网上下了一个demo,可是运行的时候出现连接错误,这是怎么回事啊?
eclipse安装不上,求大神帮忙
我想学java,从官网下了个eclipse IDE for java EE Development,安装了以后找不到在哪是怎么回事儿?求大神帮忙,万分感谢(我把jdk已安装好了)
连接mysql数据库出错!各位帮忙!
<%@ page contentType="text/html;charset=gb2312"%>rn<%@ page import="java.sql.*"%>rnrn<%rnClass.forName("org.gjt.mm.mysql.Driver").newInstance();rn//String url="jdbc:mysql://localhost:3306/test";rn//String user="root";rn//String pwd="";rnConnection conn=DriverManager.getConnection("jdbc:mysql://localhost:3306/test","root","");rnStatement stmt=conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);rnString sql="select * from t_editor";rnResultSet rs=stmt.executeQuery(sql);rnwhile(rs.next())rn%>rnfirst:<%=rs.getString(0)%> rnsec:<%=rs.getString(1)%>rn<%%>rn<%rnout.print("ok");rn%>rn<%rnrs.close();rnstmt.close();rnconn.close();rn%>rn上面是一个测试数据库连接的jsp文件。rn出现如下错误:rnjava.sql.SQLException: Column Index out of range ( 0 > 7).rn at com.mysql.jdbc.ResultSet.getString(Unknown Source)rn at _testdb._defaultroot._testdb__jsp._jspService(/testdb/defaultroot/testdb.jsp:4)rn at com.caucho.jsp.JavaPage.service(JavaPage.java:75)rn at com.caucho.jsp.Page.pageservice(Page.java:553)rn at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:155)rn at com.caucho.server.cache.CacheFilterChain.doFilter(CacheFilterChain.java:211)rn at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:177)rn at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:221)rn at com.caucho.server.hmux.HmuxRequest.handleRequest(HmuxRequest.java:392)rn at com.caucho.server.port.TcpConnection.run(TcpConnection.java:305)rn at com.caucho.util.ThreadPool.run(ThreadPool.java:273)rn at java.lang.Thread.run(Thread.java:536)rn
Hibernate连接不上Mysql数据库
Hibernate 3.5 + Eclipse 3.4 sdkrn我的hibernate.cfg.xml配置如下:rnrnrnrnrncom.mysql.jdbc.Driverrnjdbc.mysql://localhost:3306/myprojectrnrootrn123456rn1rnorg.hibernate.dialect.MySQLDialectrnthreadrnorg.hibernate.cache.NoCacheProviderrntruerncreaternrnrnrn运行出错:rnlog4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment).rnlog4j:WARN Please initialize the log4j system properly.rnorg.hibernate.exception.JDBCConnectionException: Cannot open connectionrnat org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:99)rnat org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)rnat org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:52)rnat org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:449)rnat org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:167)rnat org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:142)rnat org.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:85)rnat org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1463)rnat ch03.hibernate.Test.main(Test.java:11)rnCaused by: java.sql.SQLException: No suitable driver found for jdbc.mysql://localhost:3306/myprojectrnat java.sql.DriverManager.getConnection(DriverManager.java:602)rnat java.sql.DriverManager.getConnection(DriverManager.java:154)rnat org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:133)rnat org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:446)rn... 5 morern不得其解。很郁闷。
phpMyAdmin连接不上MySQL数据库
为了方便省事开发代码都在Windows下进行,安装软件的方式也尽可能使用解压缩的绿色方式,其中Apache、MySQL和PHP使用PhpNow,一直以来都很省事。可是今天通过PhpNow中的phpMyAdmin访问MySQL数据库却怎么也连接不上。于是从Apache、MySQL和PHP的安装配置一路查下去,Google出一堆解决的方法,什么服务没启动,端口设置错误,密码不正确。统统不灵。  ...
为什么连接不上mysql数据库?
以前项目的mysql驱动包是mysql-2.0.4.jar,我现在的数据库用的是mysql5.0,换了驱动包mysql-connector-java-5.0.8-bin.jar,还是连接不上出现异常: Cannot create PoolableConnectionFactory (Communication failure during handshake. Is there a server running on localhost:3306?),请问各位怎么解决???
怎么连接不上mysql数据库?
新下载了数据库驱动程序,放到了D:\soft\Java\MySQL Connector J下面,CLASSPATH也加了:rnCLASS_PATH=.;D:\soft\Java\jdk1.6.0_38\lib;D:\soft\Java\mysql-connector-java-5.1.rn26-bin.jarrn可是最简单的加载驱动就不对:rn[code=java]rnimport java.sql.Connection;rnrnpublic class Testrn public static final String DBDRIVER = "org.gjt.mm.mysql.Driver";rn public static void main(String args[])rn tryrn Class.forName(DBDRIVER);rn catch(ClassNotFoundException e)rn e.printStackTrace();rn rn rnrn[/code]rn运行提示:rnjava.lang.ClassNotFoundException: org.gjt.mm.mysql.Driverrn at java.net.URLClassLoader$1.run(Unknown Source)rn at java.security.AccessController.doPrivileged(Native Method)rn at java.net.URLClassLoader.findClass(Unknown Source)rn at java.lang.ClassLoader.loadClass(Unknown Source)rn at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)rn at java.lang.ClassLoader.loadClass(Unknown Source)rn at java.lang.Class.forName0(Native Method)rn at java.lang.Class.forName(Unknown Source)rn at Test.main(Test.java:13)rn这是怎么回事?哪里不对了?
mycat连接不上mysql数据库
1:首先查看schema.xml中数据库地址和数量是否配置正确 2:查看mycat.log日志看具体什么错误。个人报错  can't connect to mysql server ,errmsg:Host '192.168.100.196' is blocked because of many connection errors  具体意思是:太多错误连接导致被堵塞 原因:同一个ip...
Kettle连接MySQL数据库出现问题,连接不上
使用Kettle连接MySQL数据库,发生了错误,废话不多说,直接上图: 错误信息: 错误信息显示是jar包未安装,有问题找百度: 下载jar包:mysql-connector-java-5.1.15-bin.jar 放到Kettle安装目录下:D:\kettle\data-integration\lib 重启Spoon.bat问题解决:
Socket编程 接收端连接不上,求帮忙!
发送端代码rn [code=C/C++]BYTE IPByte[4]; rn CString strIP = ""; rn if(m_ctlIpAddress.GetAddress(IPByte[0], IPByte[1], IPByte[2], IPByte[3]) !=4 )rn rn AfxMessageBox("你输入的IP地址不完整!");rn m_ctlIpAddress.SetFieldFocus(0);rn return;rn rn rn m_ctlIpAddress.GetWindowText(strIP);rnrn // MessageBox(strIP);rn m_clClient.Create(); //创建端口,采用默认的端口号rn rn if(m_clClient.Connect(strIP,m_nPort))//连接目标地址,端口m_nPort是EDIT控件的变量rn rn MessageBox(" 连接成功");rn m_ctlSend.EnableWindow(TRUE); //连接成功,可以发送rn m_ctlConnect.EnableWindow(FALSE); //禁止再连接rn rn elsern rn MessageBox("连接不成功");rn // m_ctlSend.Close( );rn m_clClient.Close();rn [/code]rn接收端:rn[code=C/C++]m_clServer.Create(6000); //新建端口 //m_clServer是CSocket类对象rnm_clServer.Listen( ); //侦听rnm_clServer.Accept(m_clRecv); //侦听到的ip地址和端口号绑定到m_clRecv[/code]rnrnrn求大神帮帮看看哪里有问题。
连接不上远程服务器上的mysql数据库
客户端连接不上远程服务器上的数据库 1.进入安装数据库的服务器上 运行:(%代表所有客户端的机器都可以) ** GRANT ALL PRIVILEGES ON . TO’root’@’%’ IDENTIFIED BY ‘mysqlpassword’ WITH GRANT OPTION;** 运行:flush privileges;(必须运行此条命令方可生效) 2.如果连接远程数据库 报1045 *...
eclipse连接不上TOMCAT????
我把eclipse和tomcat,lomboz,jdk都配置好了,也可以在eclipse中创建项目及编写jsp了。但在eclipse中启动tomcat后,在浏览器内输入网址却找不到/eclipse没能把文件包自动在tomcat的工作目录下产生。。怎么办?请教各位。。。
tomcat连接不上oracle数据库了
tomcat连接不上oracle数据库了 但是plsql能连接上 别人用电脑也能连接上 就是自己连接不上![图片说明](https://img-ask.csdn.net/upload/201805/05/1525531581_900070.png)
MyEclipse连接SQLServer时连接不上 求大神指导
我下载的是最新的SQL2017,服务以及端口什么的都设置了 ,百度找了半天也试了好多方法,但就是连不上,求大佬指导
求大神,Dreamweaver8连接access2007数据库,连接不上
[img=https://img-bbs.csdn.net/upload/201605/15/1463289849_651739.jpg][/img]rn各位大神,求帮忙!~rn做网站时数据库的连接出现问题,不知如何解决,而且连接后数据怎么能存入数据库,怎么设置IIS,我就是想实现个用户的注册登录和留言,管理员可以在后台对用户和留言进行管理。本人是个动态网站小白,望有大神能帮忙,谢谢~[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/onion/3.gif][/img]
各位大神们。。。。拜托啦。。。。。
为L的马路上有一排树,每两棵相邻的树之间的间隔都是1米。我们可以把马路看成一个数轴,马路的一端在数轴0的位置,另一端在L的位置。数轴上的每个整数点,即0,1,2,……,L,都种有一棵树。马路上有一些区域要用来建地铁,这些区域用它们在数轴上的起始点和终止点表示。已知任一区域的起始点和终止点的坐标都是整数,区域之间可能有重合的部分。现在要把这些区域中的树(包括区域端点处的两棵树)移走。你的任务是计算将这些树都移走后,马路上还有多少棵树。rnrn rnrn输入描述rnrn输入的第一行有两个整数L(1 ≤ L ≤ 10000)和M(1 ≤ M ≤ 100),L代表马路的长度,M代表区域的数目,L和M之间用一个空格隔开。接下来的M行每行包含两个不同的整数,用一个空格隔开,表示一个区域的起始点和终止点的坐标。rnrn输出描述rnrn输出包括一行,这一行只包含一个整数,表示马路上剩余的树的数目。rn样例输入rnrn500 3rn150 300rn100 200rn470 471rn样例输出rnrn298
经常提示连接不上
刚接触oracle,在8.16中,在客户机上rn登陆DBA studio 后只要一二分钟没有动键盘、鼠标,再动时必须重新登陆rn在SQL plus 中只要创建的表的字段比较多,一分多钟再去执行时必须使用rnconn 重新登陆。rn求助!!!rn是不是在服务器中有所谓的用户在线时间的限制
求各位大神帮忙看看
Assembly asm = Assembly.LoadFrom(Config.DEFAULT_MODEL_LIB_PATH); List types = [color=#FF0000]asm.GetTypes()rn .Where(type => type.GetInterfaces().Any(i => i.Name == "IModel")[/color] && type.IsClassrn && type.IsVisiblern && !type.IsAbstractrn && !type.IsNotPublic).ToList();
求各位大神帮忙搞定
BaseID SiteID Date_Time Base rn366018 1003 2012-01-10 12:58:39.000 09C2rn366018 1003 2012-01-10 12:58:53.000 09C2rn366018 1004 2012-01-10 12:59:06.000 rn16100103EC80350000000[color=#FF0000]9C2[/color]0000000000000000000000000002000000030002001A000[color=#FF0000]2BD[/color]0001000000000000010101000025C3000C0305040E191003rn366018 1002 2012-01-10 12:59:19.000 09C2rn366018 1002 2012-01-10 12:59:32.000 09C2rn366018 1004 2012-01-10 12:59:45.000 16100103EC80350000000[color=#FF0000]9C2[/color]0000000000000000000000000002000000030002001C000[color=#FF0000]2ED[/color]0001000000000000010101000025C3000C0305040E191003rn现有一个名为BaseData的表,表内容如上,其中16100那段很长的字符串是Base列的,现在要将这段很长的字符串中的9C22BD(每个数据都是不一样的)提取出来,然后将其转换成10进制数值,再在前面加上EBEB06存储到另一个表中。求各位大神帮忙搞定啊!rn本人小菜鸟一枚!
求各位大神们帮忙
this.EnterType.DataSource = new TblEnter_BaseBLL().GetHqlTblEnter_BaseList(" select tbl.EnterType from TblEnter_Base tbl where tbl.tblEnter_BaseID= '"+this.tblEnter_BaseID1.Text.ToString()+"'");rn this.EnterType.DataTextField="招标单位";rn this.EnterType.DataValueField = "1";rn this.EnterType.DataTextField = "投标单位";rn this.EnterType.DataValueField = "2";rn this.EnterType.DataBind();
打印图形,求各位大神帮忙
1n 2 1 2n 3 2 1 2 3n 4 3 2 1 2 3 4n 5 4 3 2 1 2 3 4 5n6 5 4 3 2 1 2 3 4 5 6
求各位大神帮忙(java)
我遇到一个问题,就是:rn下拉框里共有10个元素,第一个下拉框选中其中一个元素 ,第二个下拉框就会剔除掉这个元素,也就是只有9个元素,依次类推rn请问大神,我js或者jquery该怎么写,跪求了rnrn还有就是点击一个按钮自动创建一个select下拉
求各位大神帮忙看看~!
各位大哥好,我现在在一家五星级酒店实习,做系统维护工作。他们那个客房电脑系统是用的网吧的系统,现在就是老是出现卡频,自动死机重启,还有就是自动断网重启 ,我们让做系统的来看了的,他们说要限制那个上传和下载的速度。可是改了之后比以前还不如了,我们纠结了半天,都没有弄明白到底是哪里出问题了,哪位大哥能帮忙解决哈!
求各位大神帮忙啊
JIAVA初学者,实现下面的程序rn输入小数形式的金额,如123456.78rn输出壹拾二万叁仟四佰伍拾陆元柒角捌分rn考虑各种中间或末尾0的情况rnrn百度上的代码就不要来了
Tomcat启动时提示严重错误,各位大神急救!!
小生初学,已经严格按照配置,Tomcat 6.0+JDK1.6_10,myeclipse是6.0.1 GA版本,import项目部署好启动时如下提示:rnrn2012-1-29 20:12:34 org.apache.catalina.core.AprLifecycleListener initrn信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: E:\jdk1.6.0_10\bin;D:\Tomcat 6.0\binrn2012-1-29 20:12:37 org.apache.coyote.http11.Http11Protocol initrn严重: Error initializing endpointrnjava.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bindrn at java.net.PlainSocketImpl.socketBind(Native Method)rn at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)rn at java.net.ServerSocket.bind(ServerSocket.java:319)rn at java.net.ServerSocket.(ServerSocket.java:185)rn at java.net.ServerSocket.(ServerSocket.java:141)rn at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:50)rn at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:538)rn at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:176)rn at org.apache.catalina.connector.Connector.initialize(Connector.java:1049)rn at org.apache.catalina.core.StandardService.initialize(StandardService.java:703)rn at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:838)rn at org.apache.catalina.startup.Catalina.load(Catalina.java:538)rn at org.apache.catalina.startup.Catalina.load(Catalina.java:562)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:261)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rn2012-1-29 20:12:37 org.apache.catalina.core.StandardService initializern严重: Failed to initialize connector [Connector[HTTP/1.1-8081]]rnLifecycleException: Protocol handler initialization failed: java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bindrn at org.apache.catalina.connector.Connector.initialize(Connector.java:1051)rn at org.apache.catalina.core.StandardService.initialize(StandardService.java:703)rn at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:838)rn at org.apache.catalina.startup.Catalina.load(Catalina.java:538)rn at org.apache.catalina.startup.Catalina.load(Catalina.java:562)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:261)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rn2012-1-29 20:12:37 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 3694 msrn2012-1-29 20:12:37 org.apache.catalina.core.StandardService startrn信息: Starting service Catalinarn2012-1-29 20:12:37 org.apache.catalina.core.StandardEngine startrn信息: Starting Servlet Engine: Apache Tomcat/6.0.35rn2012-1-29 20:12:37 org.apache.catalina.startup.HostConfig deployDescriptorrn信息: Deploying configuration descriptor host-manager.xmlrn2012-1-29 20:12:38 org.apache.catalina.startup.HostConfig deployDescriptorrn信息: Deploying configuration descriptor manager.xmlrn2012-1-29 20:12:39 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deploying web application directory docsrn2012-1-29 20:12:39 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deploying web application directory examplesrn2012-1-29 20:12:40 org.apache.catalina.core.ApplicationContext logrn信息: ContextListener: contextInitialized()rn2012-1-29 20:12:40 org.apache.catalina.core.ApplicationContext logrn信息: SessionListener: contextInitialized()rn2012-1-29 20:12:40 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deploying web application directory Issuern2012-1-29 20:12:40 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deploying web application directory ROOTrn2012-1-29 20:12:41 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deploying web application directory sxprojectrn2012-1-29 20:12:41 org.apache.coyote.http11.Http11Protocol startrn严重: Error starting endpointrnjava.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bindrn at java.net.PlainSocketImpl.socketBind(Native Method)rn at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)rn at java.net.ServerSocket.bind(ServerSocket.java:319)rn at java.net.ServerSocket.(ServerSocket.java:185)rn at java.net.ServerSocket.(ServerSocket.java:141)rn at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:50)rn at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:538)rn at org.apache.tomcat.util.net.JIoEndpoint.start(JIoEndpoint.java:565)rn at org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:203)rn at org.apache.catalina.connector.Connector.start(Connector.java:1122)rn at org.apache.catalina.core.StandardService.start(StandardService.java:540)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:595)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)rn2012-1-29 20:12:41 org.apache.catalina.core.StandardService startrn严重: Failed to start connector [Connector[HTTP/1.1-8081]]rnLifecycleException: service.getName(): "Catalina"; Protocol handler start failed: java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bindrn at org.apache.catalina.connector.Connector.start(Connector.java:1129)rn at org.apache.catalina.core.StandardService.start(StandardService.java:540)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:595)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)rn2012-1-29 20:12:41 org.apache.jk.common.ChannelSocket initrn信息: Port busy 8009 java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bindrn2012-1-29 20:12:41 org.apache.jk.common.ChannelSocket initrn严重: Can't find free port 8009 8009rn2012-1-29 20:12:41 org.apache.jk.server.JkMain startrn信息: Jk running ID=0 time=0/78 config=nullrn2012-1-29 20:12:41 org.apache.catalina.startup.Catalina startrn信息: Server startup in 4455 msrn2012-1-29 20:12:41 org.apache.catalina.core.StandardServer awaitrn严重: StandardServer.await: create[8005]: rnjava.net.BindException: Address already in use: JVM_Bindrn at java.net.PlainSocketImpl.socketBind(Native Method)rn at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)rn at java.net.ServerSocket.bind(ServerSocket.java:319)rn at java.net.ServerSocket.(ServerSocket.java:185)rn at org.apache.catalina.core.StandardServer.await(StandardServer.java:406)rn at org.apache.catalina.startup.Catalina.await(Catalina.java:676)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:628)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)rn2012-1-29 20:12:41 org.apache.coyote.http11.Http11Protocol pausern信息: Pausing Coyote HTTP/1.1 on http-8081rn2012-1-29 20:12:42 org.apache.catalina.core.StandardService stoprn信息: Stopping service Catalinarn2012-1-29 20:12:43 org.apache.catalina.core.ApplicationContext logrn信息: SessionListener: contextDestroyed()rn2012-1-29 20:12:43 org.apache.catalina.core.ApplicationContext logrn信息: ContextListener: contextDestroyed()rn2012-1-29 20:12:43 org.apache.coyote.http11.Http11Protocol destroyrn信息: Stopping Coyote HTTP/1.1 on http-8081rnrnrnrn大家帮帮我!!!
VC6.0连接不上mysql数据库 提示连接数据库失败!!!什么原因?
VC++用mysql_real_connect()函数怎么连接不上mysql数据库!!!非常纠结!!rnrnrn mysql_init (&mysql);rn if(!mysql_real_connect(&mysql,"127.0.0.1","root","1234","mydb",3306,NULL,0))rn rn AfxMessageBox("数据库连接失败"); rn return FALSE;rn rn 我的参数配置,为什么连接不上??求高人指点……
求SQL!拜托各位
主表:rnrn单据号 制单人rn001 张三rnrn明细表rnrn单据号 行号 金额rn001 1 10元 rn001 2 20元rnrn如何使用SQL查询主表中有信息,明细表中没有信息的数据rn比如主表中有002 李四rn但明细表中没有相对应的数据
帮忙、帮忙、帮忙!拜托、拜托、拜托!!!
我是学影视动漫的,主要的软件有photoshop、painter、Ater Efects、maya。我的电脑是06年买的。对于我的专业,配置实在是太低了,所以1个礼拜前我将电脑升级了。由原来的512M内存加了1G,然后显卡也换了。以前是盈通的,现在时影驰的,具体配置不太清楚,因为我是找同学的同学来帮忙升级的。升级完后,他告诉我,电脑中毒太深了,最好重装系统,所以我一回到宿舍就重装了系统。但是,后来我发现我的电脑有些问题……rn如下:rn 1.开机时出现【尝试运行“c:\WINDOWS\system32、NvCpl。dll,NvStartup”时发生意外】对话框,前面已经发帖,回答曰:显卡驱动问题,所以我重新弄了一下,问题还是没解决……rn 2.我的maya软件渲染图片超慢的,以前也很慢,但是没有像这样的,渲染图片渲了一张1024*1024的,用了四个小时,后来渲了一张2048-2048的用了12个小时,我的场景比以前的还小,灯光什么的也比以前的场景小,但是时间却……rn 3.maya的mental ray一打开就出错,maya自动关闭,但是后来自己又好了rn 4.我的AE软件装一半就报错,我的软件没有问题的,很确定!rn 5.我的painter软件一打开就死机,而且怎么等也恢复不了,必须按机箱的重启键重启。rn 6.我的电脑每次重启之后都没有出现自检情况,以前不是这样的,我想任何电脑像我这样强制重启的话,会有开机自检的吧。目前没有强制关闭,但我觉得即使强制关闭也不会自检的。rn 7.……rn到底电脑是怎么了?系统问题?中毒?还是硬件问题?rn请大家帮忙解答……谢谢了……
报404,怎么回事啊,拜托各位了。
请求路径:http://localhost:8888/one/add?addrnrnACTION代码:rnpublic class AddAction extends ActionSupportrn public String add()rn System.out.println("=====addActon======");rn return “success”;rn rnrnrnSTRUTS配置文件:rnrn rn rn /webRoot/regist.jsprn rn rnrnrn另附上web.xml代码如下:rnrn struts2rn org.apache.struts2.dispatcher.FilterDispatcherrnrnrn struts2rn /*rn
tomcat连接mysql数据库的问题?
在不断快速刷新页面的后,无法连接上mysql,那位大侠知道怎么回事?rnrnrnlog里面有一个错误:rnApache Tomcat/4.1.18rnjava.sql.SQLException: Syntax error or access violation: You have an error in yornur SQL syntax. Check the manual that corresponds to your MySQL server version frnor the right syntax to use near '蔐~D1?(P^B:~D1?' at line 1rnrn
相关热词 c#入门推荐书 c# 解码海康数据流 c# xml的遍历循环 c# 取 查看源码没有的 c#解决高并发 委托 c#日期转化为字符串 c# 显示问号 c# 字典对象池 c#5.0 安装程序 c# 分页算法