java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: NO)

后端 未结 5 1504
挽巷
挽巷 2021-01-21 14:15

I\'m having troubles with my project , it involves JDBC and Mysql connection .

When I do the following :

private Statement m_         


        
5条回答
  •  清歌不尽
    2021-01-21 14:49

    Either the username/password is wrong or the user is missing privileges to access the schema/table. Grant privileges using

    GRANT ALL PRIVILEGES ON . TO 'root'@'localhost' WITH GRANT OPTION

提交回复
热议问题