簡述:找一個開源項目運行時報如下錯
報錯如下:
java.sql.SQLException: null, message from server: "Host 'CY-20210506FCUE' is not allowed to connect
解決方式:修改訪問權限即可
打開cmd,進入mysql
mysql -uroot -p
select user,host from user;
flush privileges; (將權限更新操作刷新到內存中)
具體如圖:
打開服務,重新啓動mysql服務