jdbc:mysql://localhost/test?user=system&password=system&useUnicode=true&characterEncoding=gb2312
连接串出错,你在命令行方式用这用户名和密码能进吗?

解决方案 »

  1.   

    我在我的计算机上装上mysql数据库后,提示输入用户名和密码,我就输入了system/system
    。以后每次启动计算机时mysql就自动运行,并可以在命令行状态操作mysql的mysql和test
    数据库。
      

  2.   

    jdbc:mysql://localhost/test?user=root&password=&useUnicode=true&characterEncoding=gb2312
    这样就可以了。
      

  3.   

    jdbc:mysql://localhost/test?user=system&password=system
    在localhost后加上连接数据库的端口3306
    jdbc:mysql://localhost:3306/test?user=system&password=system
    在检查下用户名和密码
      

  4.   

    感谢各位这个问题的关心,现在问题解决了!:)
    jdbc:mysql://localhost/test?user=root&password=&useUnicode=true&characterEncoding=gb2312
    这样就可以了。(dbcat2002(老猫))