Python连接MySQL数据库(mys

2023年 8月 12日 64.1k 0

Traceback (most recent call last):

  File "test.py", line 7, in

    database='test')

  File "/usr/lib/python2.7/dist-packages/mysql/connector/__init__.py", line 162, in connect

    return MySQLConnection(*args, **kwargs)

  File "/usr/lib/python2.7/dist-packages/mysql/connector/connection.py", line 129, in __init__

    self.connect(**kwargs)

  File "/usr/lib/python2.7/dist-packages/mysql/connector/connection.py", line 454, in connect

    self._open_connection()

  File "/usr/lib/python2.7/dist-packages/mysql/connector/connection.py", line 421, in _open_connection

    self._ssl)

  File "/usr/lib/python2.7/dist-packages/mysql/connector/connection.py", line 204, in _do_auth

    self._auth_switch_request(username, password)

  File "/usr/lib/python2.7/dist-packages/mysql/connector/connection.py", line 240, in _auth_switch_request

    raise errors.get_exception(packet)

mysql.connector.errors.ProgrammingError: 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

相关文章

Oracle如何使用授予和撤销权限的语法和示例
Awesome Project: 探索 MatrixOrigin 云原生分布式数据库
下载丨66页PDF,云和恩墨技术通讯(2024年7月刊)
社区版oceanbase安装
Oracle 导出CSV工具-sqluldr2
ETL数据集成丨快速将MySQL数据迁移至Doris数据库

发布评论