python3.6+pymysql+mysql8.0
you can log in normally with your root account in terminal, as shown in the following figure
pymysql
it"s not okay to create a new user, but you can log in normally in terminal.
preliminary judgment is still a problem with pymysql, but I don"t know this
raise errorcalss (errno,errval)
exactly what caused it.
seek advice from all of you. Thank you!