error while performing database login with the mysql driver 的解决方法

时间:2024-05-19 19:16:19

首先在MyEclipse中创建新连接,如图所示
error while performing database login with the mysql driver 的解决方法

第一栏选择MySQL connection
error while performing database login with the mysql driver 的解决方法

第二栏 随意填什么都可以
error while performing database login with the mysql driver 的解决方法

第三栏是重点:
格式为 jdbc:mysql://localhost/test?user=root&password=root
test是你的数据库名(就是你在sql中创建的数据库名,默认为mysql)
user=的是你创建数据库时的用户名(root)
password=的是你创建数据库时的密码

error while performing database login with the mysql driver 的解决方法

接下来就是添加这个jar包,Driver classname 选择“com.mysql.jdbc.Driver”
error while performing database login with the mysql driver 的解决方法

点test driver,输入密码
error while performing database login with the mysql driver 的解决方法

error while performing database login with the mysql driver 的解决方法