解决org.yaml.snakeyaml.scanner.ScannerException: while scanning for the next token found character '%'
搭建课设的工程一连串的报错,搞了一下午,解决一个错发一篇记录,搞了一下午,真开心,游戏都没得打。
完整报错
Caused by: org.yaml.snakeyaml.scanner.ScannerException: while scanning for the next token
found character ‘%’ that cannot start any token. (Do not use % for indentation)
in ‘reader’, line 10, column 15:
password: %x2DCApKOdHXLzB#
错误原因分析
之前腾讯云上的数据库被黑了,改了一个暴力**至少一万年的密码,错就在开头是“%”,看报错信息象是说“不能用%”,好改了密码果然好了
mysql 改密码
进入服务器
mysql -u root -p
输入密码进入
修改密码
set password for root@localhost = password('123456') #修改123456为自己密码
flush privileges;
好了密码改完继续尝试,
要是链接远端服务器上数据库我才你们会出这个错:远程访问未开启的错
1045-Access denied for user '[email protected]‘183.199.105.197’…
猜得不错的话移步这里mysql远程连接报错1045-Access denied for user '[email protected]‘183.199.105.197’…报错
上一篇: org.yaml.snakeyaml.scanner.ScannerException: while scanning for the next token found character ‘@‘ t
下一篇: Caused by: org.yaml.snakeyaml.scanner.ScannerException: while scanning a simple key
推荐阅读
-
org.yaml.snakeyaml.scanner.ScannerException: while scanning for the next token found character ‘@‘ t
-
解决org.yaml.snakeyaml.scanner.ScannerException: while scanning for the next token found character '%'
-
org.yaml.snakeyaml.scanner.ScannerException: while scanning for the next token
-
org.yaml.snakeyaml.scanner.ScannerException: while scanning for the next token found character ‘@‘ t