connection.prepareStatement(query);pstmt.setBytes(2, bkey);下面是我得到的一个错误:
com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version
我正在尝试从linux主机连接到Windows主机上的远程MySQL服务器。我也尝试过从一个简单的python脚本进行连接,它也能正常工作。但是如果我尝试从php脚本连接,它会失败,并显示"Can't connect to MySQL server on '192.168.x.x‘(13)“错误。mysql_connec