我的Mysql数据库中有10条记录,我正在使用Jquery滑块控制,所以我希望将数据库中的记录数中的最大值设置为完全相同的值……例如,如果我在数据库中插入更多的记录3,滑块应该取最大值为13自动.有人能帮帮我吗$(function () { var select =$(#minbed“);min: 1,max :5,很快bla bla ba ),所以我需要从mysql.plz获得max值的代码。
连接到我的数据库时遇到问题。我认为有一个我不知道的设置,需要改变。void main(String[] args) try Connection con = DriverManager.getConnection("jdbc:mysql它会导致这个错误:
com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connectionCaused by: com.mysq