Mysql报错:Exception in thread "main" java.sql.SQLException: null, message from server: "Host 'LAPTOP-
将数据写入到mysql中,若是选择将写好的程序提交到spark集群上运行时,出现Exceptioninthread"main"java.sql.SQLException:null,messagefromserver:"Host'LAPTOP-的错误。解决办法:进入cmd,登陆mysql后,输入:GRANTALLPRIVILEGESON*.*TO'root'@'%'IDENTIFIEDBY'密码'W