Conectar Banco MySql me ajudem por favor.
Bom dia pessoal
Ao tentar conectar em um Banco de Dados MySQL que tenho em um servidor Linux através de um código Python eu recebo a seguinte mensagem :
Traceback (most recent call last):
File "C:\Python\Contrato\venv\Lib\site-packages\mysql\connector\connection_cext.py", line 323, in _open_connection
self._cmysql.connect(**cnx_kwargs)
_mysql_connector.MySQLInterfaceError: Access denied for user 'localhost'@'172.16.1.82' (using password: NO)
Segue a minha string de conexão :
import mysql.connector
con = mysql.connector.connect(
host='172.16.1.111',
database='openfire',
user='localhost',
password='sp@rk'
)
cursor = con.cursor()
Onde estou errando ?
Obrigado
Subject
Views
Written By
Posted
Conectar Banco MySql me ajudem por favor.
488
March 12, 2024 05:26AM
243
March 12, 2024 05:44AM
233
March 12, 2024 06:38AM
226
March 12, 2024 12:09PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.