Mysql報錯:Exception in thread "main" java.sql.SQLException: null,  message from server: "Host 'LAPTOP-

將數據寫入到mysql中,若是選擇將寫好的程序提交到 spark集羣上運行時,出現Exception in thread "main" java.sql.SQLException: null, message from server: "Host 'LAPTOP-的錯誤。 解決辦法:進入cmd,登陸mysql後, 輸入:GRANT ALL PRIVILEGES ON *.* TO 'root'@'
相關文章
相關標籤/搜索