1、java.sql.SQLException: Your password has expired.
mysql -u root -p
ALTER USER `root`@`localhost` IDENTIFIED BY 'root', `root`@`localhost` PASSWORD EXPIRE NEVER;
2、javaString不足四位补足,这样写sss是动态的,每次循环都变化,错误。改定义 cut = 4 -sss.leght();
String sss = "6c"; for (int i = 0; i < ( 4 - sss.length()) ; i++) { sss = sss + "0"; System.out.println(sss); } System.out.println(sss);