Mysql找不到驱动,网页无法运行,请大牛指教
网页中填写注册信息后,提交,myeclipse里报错如下:
No suitable driver found for jdbc:mysql://localhost/jokeHome?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true}
* executeQuery{SELECT `username` , `password` FROM `jokehome`.`users` WHERE `username` ='asdf' AND `password` ='asdf' ;}
请问如何解决啊
------解决方案--------------------
楼主你有注册驱动吗?就是class.forName("com.mysql.jdbc.Driver");这句代码!