将数据写入到mysql中,若是选择将写好的程序提交到 spark集群上运行时,出现Exception in thread "main" java.sql.SQLException: null, message from server: "Host 'LAPTOP-的错误。

解决办法:进入cmd,登陆mysql后,

输入:GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '密码' WITH GRANT OPTION;以**远程登陆

 

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

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-03
  • 2021-12-31
  • 2022-12-23
  • 2021-10-26
  • 2022-12-23
猜你喜欢
  • 2021-05-16
  • 2021-10-12
  • 2021-05-25
  • 2022-03-02
  • 2021-12-11
  • 2021-12-05
相关资源
相似解决方案