UnknownHostException
.銆?/span>In order to generate functional remote references, Java RMI servers must be able to supply a fully qualified hostname or IP address that is resolvable from all Java RMI clients (an example of a fully qualified hostname is foo.bar.com). If a Java RMI program provides a remote callback operation, then that program serves a Java RMI object and consequently, must be able to determine a resolvable hostname to use as its server hostname in the remote references it passes to Java RMI clients. VMs that make calls to applets that serve remote objects may throwUnknownHostException
s because the applet has failed to provide a usable server hostname.
If your Java RMI application throws an UnknownHostException
, you can look at the resulting stack trace to see if the hostname that the client is using to contact its remote server is incorrect or not fully qualified.銆?nbsp;If necessary, you can set the java.rmi.server.hostname
property on the server to the correct IP address or hostname of the server machine and Java RMI will use this property's value to generate remote references to the server.銆?/strong>
java.rmi.server.hostname鐨勮緗繀欏誨湪鏈嶅姟瀵硅薄鍒涘緩涔嬪墠銆?br />
============================
涓€銆侀€氳繃MySQL-Front鎴杕ysql administrator榪炴帴mysql鐨勬椂鍊欏彂鐢熺殑榪欎釜閿欒
ERROR 1130: Host ***.***.***.*** is not allowed to connect to this MySQL server
璇存槑鎵€榪炴帴鐨勭敤鎴峰笎鍙鋒病鏈夎繙紼嬭繛鎺ョ殑鏉冮檺錛屽彧鑳藉湪鏈満(localhost)鐧誨綍銆?br />
闇€鏇存敼 mysql 鏁版嵁搴撻噷鐨?user琛ㄩ噷鐨?host欏?br />鎶妉ocalhost鏀圭О%
棣栧厛鎸変笅闈㈢殑姝ラ鐧誨綍Mysql鏈嶅姟鍣?br />
鐧誨綍mysql闇€瑕佸垏鎹㈠埌dos涓嬬殑mysql鐨刡in鐩綍錛岃繘琛屽涓嬫搷浣滐細
璇硶鏍煎紡錛歮ysql -h host_name -u user_name -p password 錛堟湰鏈虹殑璇?h 鍜宧ost_name鍙渷錛?br />
渚嬪錛?br />
C:\program files\mysql\mysql server 5.0\bin>mysql -u root -p
Enter password:******
鍏堣緭鍏ョ敤鎴峰悕鍜屽瘑鐮佺櫥闄嗚姹傦紙-p錛夛紝鍥炶濺鍚庣瓑鍑虹幇"Enter password:"錛屽啀杈撳叆瀵嗙爜鍥炶濺錛岃繖鏍峰氨鍙互
鎴愬姛鐧婚檰mysql錛屽惁鍒欏皢浼氱櫥闄嗗け璐ャ€?br />
鐧婚檰鎴愬姛鍚庝細鏄劇ず濡備笅淇℃伅鍙奙ysql鏍囪瘑絎︼細
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1 to server version: 5.0.1-nt
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql>
鏍囪瘑絎?mysql>"錛屽綋浣犵湅鍒拌繖涓嚭鐜板湪紿楀彛鐨勬渶宸﹁竟鐨勯《鏍兼椂錛岃繖灝辨槸鍛婅瘔浣狅紝浣犲彲浠ヨ緭鍏ュ懡浠よ繘琛屾搷浣滀簡銆?br />
mysql> \s 鏌ョ湅鐗堟湰淇℃伅
mysql> \q or mysql> quit 閫€鍑簃ysql鏁版嵁搴撴湇鍔″櫒
mysql> \h or mysql> help 鏌ョ湅甯姪錛堝叾浠栫殑鏁版嵁搴撴湇鍔″櫒鐩稿叧鍛戒護錛?br />
浜屻€佺櫥褰曟垚鍔熷悗鍙€氳繃浠ヤ笅姝ラ瀵圭敤鎴瘋繘琛屾潈闄愭洿鏀?br />
mysql>use mysql;
mysql>update user set host = '%' where user ='root';
mysql>flush privileges;
mysql>select 'host','user' from user where user='root';
mysql>quit
閫€鍑哄悗浼氬洖鍒癉OS姝e父鐨勬彁紺虹鐘舵€侊紝姝ゆ椂鍙互閫氳繃榪滅▼榪炴帴Mysql浜嗭紒
========================================
MySQL 鐢ㄦ埛甯愬彿鐨勪慨鏀?error 11302007-09-07 09:18
MySQL涓婄殑涓€涓暟鎹簱瑕佸浠斤紝瑁呬簡涓狹ySQL鐨刧ui宸ュ叿銆傛墦寮€"MySQL Administrator"宸ュ叿錛屽~濂界敤鎴峰悕鍜屽瘑鐮佸嵈鐧誨綍涓嶄簡錛岃€佹槸鎶ヨ繖涓敊“ERROR 1130: Host 'lijuan-' is not allowed to connect to this MySQL server”銆傜綉涓婃煡浜嗕笅錛屾湁榪欎袱涓柟娉曡В鍐籌細 瑙e喅鏂規(guī)硶錛?br />1銆?鏀硅〃娉曘€傚彲鑳芥槸浣犵殑甯愬彿涓嶅厑璁鎬粠榪滅▼鐧婚檰錛屽彧鑳藉湪localhost銆傝繖涓椂鍊欏彧瑕佸湪localhost鐨勯偅鍙扮數鑴戯紝鐧誨叆mysql鍚庯紝鏇存敼 "mysql" 鏁版嵁搴撻噷鐨?"user" 琛ㄩ噷鐨?"host" 欏癸紝浠?localhost"鏀圭О"%"
mysql -u root -pvmwaremysql>use mysql;mysql>update user set host = '%' where user = 'root';mysql>select host, user from user;
2. 鎺堟潈娉曘€備緥濡傦紝浣犳兂myuser浣跨敤mypassword浠庝換浣曚富鏈鴻繛鎺ュ埌mysql鏈嶅姟鍣ㄧ殑璇濄€?
GRANT ALL PRIVILEGES ON *.* TO IDENTIFIED BY 'mypassword' WITH GRANT OPTION; 濡傛灉浣犳兂鍏佽鐢ㄦ埛myuser浠巌p涓?92.168.1.3鐨勪富鏈鴻繛鎺ュ埌mysql鏈嶅姟鍣紝騫朵嬌鐢╩ypassword浣滀負瀵嗙爜 GRANT ALL PRIVILEGES ON *.* TO IDENTIFIED BY 'mypassword' WITH GRANT OPTION; 鎴戠殑mysql.user閲宺oot鐢ㄦ埛鐨刪ost鏋滅劧鏄痩ocalhost錛屽厛鐢ㄦ敼琛ㄦ硶緇檒ocalhost鏀規(guī)垚“錛?#8221;錛岃繕鏄笉琛岋紝浠嶇劧鎶?130鐨勯敊璇紝鍙堟寜“浠庝換浣曚富鏈鴻繛鎺ュ埌mysql鏈嶅姟鍣?#8221;鏂規(guī)硶鎺堟潈錛岃繕鏄姤涓€鏍風殑閿欙紝鏈€鍚庣粰鑷繁鐨刬p鎺堟潈涔嬪悗錛岀粓浜庣櫥褰曚笂浜嗐€傘€傘€傘€?
涔庝箮銆傘€傘€?/p>
mysql鐨凟RROR 1045 鍦ㄤ笂闈㈡儏鍐靛悗濡傚啀鍑虹幇瀹㈡埛孌?045鍙湪鏈嶅姟鍣ㄦ墽琛屽涓?/p>
UPDATE user SET Password=PASSWORD('123456') where USER='myuser';
FLUSH PRIVILEGES;
寮傚父鍘熷洜錛?br />java瀹氫箟鐨勫睘鎬т負鍘熷綾誨瀷錛坕nt,long,絳夛級錛屼絾鏁版嵁璇ュ瓧孌靛彲涓虹┖鏃跺嚭鐜拌寮傚父
瑙e喅鍔炴硶錛氭暟鎹簱淇敼璇ュ瓧孌典負涓嶄負絀猴紝鎴栬€呬慨鏀瑰師濮嬬被鍨嬩負鍖呰綾誨瀷銆?/p>
涓€涓姤閿欎緥瀛愬涓嬶細
ORA-1688: unable to extend table RMMCDR.LOCAL_CDR partition LOCAL_CDR101 by 460800 in tablespace CDRS101
鐩稿簲鐨勮嫳鏂囧涓嬶細
Cause: An extent could not be allocated for a table segment in tablespace
Action: Use the ALTER TABLESPACE ADD DATAFILE statement to add one or more files to the specified tablespace
闂鐜:oracle 10g
闂錛歫ava.sql.SQLException: 鏁版嵁澶у皬瓚呭嚭姝ょ被鍨嬬殑鏈€澶у€?
瑙e喅鍔炴硶鏄細鏇存柊ojdbc14.jar鏂囦歡 錛屽叿浣撻棶棰樻牴鎹笉鍚岀幆澧冩祴璇曘€?/p>
鍦ㄤ嬌鐢?/span>hibernate3.6.2鏄垜閬囧埌浜嗕竴涓湁瓚g殑閿欒java.lang.NoSuchFieldError: INSTANCEat org.hibernate.type.BasicTypeRegistry.<init>(BasicTypeRegistry.java:94)at org.hibernate.type.TypeResolver.<init>(TypeResolver.java:59)at org.hibernate.cfg.Configuration.<init>(Configuration.java:249)at org.hibernate.cfg.Configuration.<init>(Configuration.java:300)
鍘繪帀hibernate-annotations.jar宸茬粡鍖呭惈鍦╤ibernate3.jar涓簡
灝嗚繖浜?/span>jar鍖呭垹闄や簡鍗沖彲銆?/span>
<struts>
<bean type="com.opensymphony.xwork2.ObjectFactory" name="spring" class="org.apache.struts2.spring.StrutsSpringObjectFactory" />
<!-- Make the Spring object factory the automatic default -->
<constant name="struts.objectFactory" value="spring" />
<package name="spring-default">
<interceptors>
<interceptor name="autowiring" class="com.opensymphony.xwork2.spring.interceptor.ActionAutowiringInterceptor"/>
<interceptor name="sessionAutowiring" class="org.apache.struts2.spring.interceptor.SessionContextAutowiringInterceptor"/>
</interceptors>
</package>
</struts>