我正在用Ambari服务器安装MYSQL,以便在ubuntu上安装hadoop。
我已经从Xampp安装了Sql,并且工作正常。
我的SQL5.6版本中删除了set ` `Option关键字,而mariaDB (与xampp一起提供)与此一致。
该网站显示,它与MySQL 5.6版本兼容,应该可以。
作为对the only relevant link I found的响应,
当我检查sql版本时:
mysql -v
The program 'mysql' can be found in the following packages:
* mysql-client-core-5.6
* mariadb-client-core-10.0这就是我所得到的。我相信链接中提到的问题不是这里的情况?
当我尝试向ambari服务器注册我的主机时,它抛出了这个错误:
我已经尝试过更换连接器、版本和所有我能更换的东西。但我一直收到这个错误。
java.sql.SQLException: Unknown system variable 'OPTION'
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:946)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2985)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1631)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1723)
at com.mysql.jdbc.Connection.execSQL(Connection.java:3277)
at com.mysql.jdbc.Connection.unsetMaxRows(Connection.java:5867)
at com.mysql.jdbc.Statement.realClose(Statement.java:2070)
at com.mysql.jdbc.PreparedStatement.realClose(PreparedStatement.java:2204)
at com.mysql.jdbc.PreparedStatement.close(PreparedStatement.java:695)
at com.mchange.v1.db.sql.StatementUtils.attemptClose(StatementUtils.java:41)
at com.mchange.v2.c3p0.stmt.GooGooStatementCache.synchronousDestroyStatement(GooGooStatementCache.java:413)
at com.mchange.v2.c3p0.stmt.GooGooStatementCache.closeAll(GooGooStatementCache.java:351)
at com.mchange.v2.c3p0.impl.NewPooledConnection.closeAllCachedStatements(NewPooledConnection.java:598)
at com.mchange.v2.c3p0.impl.NewPooledConnection.close(NewPooledConnection.java:468)
at com.mchange.v2.c3p0.impl.NewPooledConnection.close(NewPooledConnection.java:191)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.destroyResource(C3P0PooledConnectionPool.java:470)
at com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask.run(BasicResourcePool.java:964)
at com.mchange.v2.async.ThreadPoolAsynchronousRunner发布于 2016-06-01 16:25:20
我有同样的问题,更新mysql驱动程序版本解决了它。
发布于 2019-06-03 15:15:43
我也遇到了同样的问题,我还重新安装了xampp的新版本,jre和Netbeans的jdk,然后问题解决了。
https://stackoverflow.com/questions/36648915
复制相似问题