[i=s] 本帖最后由 hxues 于 2012-1-14 09:32 编辑 [/i]
hobo@hobo-desktop:~/onefnjxc_linux$ ./start.sh
用时:12994
2012 一月 13 07:49:50 ERROR org.hibernate.util.JDBCExceptionReporter - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '?????0_.id as id4_, ?????0_.code as code4_, ?????0_.name as name4_, ?????0_.isUs' at line 1
2012 一月 13 07:49:50 ERROR org.waterHand.tom - org.hibernate.exception.SQLGrammarException: could not execute query
org.waterHand.spark.SparkException: 备份数据库失败,不能继续升级,程序将退出。
at org.waterHand.spark.systemMange.listener.自动升级数据框确定按钮ActionListener类.actionDo(自动升级数据框确定按钮ActionListener类.java:41)
at org.waterHand.spark.systemMange.listener.自动升级数据至1_4框类确定按钮ActionListener类$1.run(自动升级数据至1_4框类确定按钮ActionListener类.java:26)
Caused by: org.waterHand.spark.SparkException: mysqldump: Got error: 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) when trying to connect
at org.waterHand.spark.systemMange.listener.自动升级数据框确定按钮ActionListener类.backupDB(自动升级数据框确定按钮ActionListener类.java:99)
at org.waterHand.spark.systemMange.listener.自动升级数据框确定按钮ActionListener类.actionDo(自动升级数据框确定按钮ActionListener类.java:33)
... 1 more
Caused by: org.waterHand.spark.SparkException: mysqldump: Got error: 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) when trying to connect
at org.waterHand.spark.systemMange.listener.自动升级数据框确定按钮ActionListener类.backupDB(自动升级数据框确定按钮ActionListener类.java:95)
... 2 more
Caused by: org.waterHand.tom.exception.TomException: mysqldump: Got error: 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) when trying to connect
at org.waterHand.tom.bo.AbstractDBManager.backup(AbstractDBManager.java:127)
at org.waterHand.spark.systemMange.listener.自动升级数据框确定按钮ActionListener类.backupDB(自动升级数据框确定按钮ActionListener类.java:92)
... 2 more
Caused by: org.waterHand.tom.exception.TomException: mysqldump: Got error: 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) when trying to connect
at org.waterHand.tom.bo.AbstractDBManager.backup(AbstractDBManager.java:124)
... 3 more
2012 一月 13 07:50:14 ERROR org.waterHand.tom - org.waterHand.spark.SparkException: 备份数据库失败,不能继续升级,程序将退出。
如何解决?
hxues 于 2012-01-13 15:27:25发表:
Mysql、jre6都装了
mysql 也能正常登录