Mysql Connection with out password using corejava program

后端 未结 8 1303
你的背包
你的背包 2020-12-07 03:21

I want to connect to a MySQL database. While installing MySQL I did not give any password, so in my program I did the same but I am getting error on connection. I am using p

相关标签:
8条回答
  • 2020-12-07 03:58
    con = DriverManager.getConnection("jdbc:mysql://localhost:3306/easylibdb1","root",null);
    
    0 讨论(0)
  • 2020-12-07 04:00

    Remove the 2 quotes after password in your properties file. So password=""should be password=

    0 讨论(0)
提交回复
热议问题