sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (1698, "Access denied for user 'root'@'localhost'")
时间: 2023-10-27 21:33:43 浏览: 154
解决mysql登录错误:'Access denied for user 'root'@'localhost'
5星 · 资源好评率100%
This error message indicates that the user 'root' does not have the necessary permissions to access the database at 'localhost'. There are a few possible reasons for this error:
1. Incorrect username or password: Double-check that you are using the correct username and password to connect to the database.
2. Permissions issue: The user 'root' may not have the necessary permissions to access the database. Try granting the user appropriate permissions using the GRANT command.
3. Firewall or network issue: There may be a firewall or network issue preventing the user from accessing the database. Check that the necessary ports are open and that there are no network connectivity issues.
阅读全文