Merhabalar
Python üzeri çalışmalar yapıyorum farklı çözümler denedim olmadı
şu kodu çalıştırdığım vakit
import mysql.connector
vtm = mysql.connector.connect(
host = 'localhost',
user = 'root',
password = 'MYHZ?1453'
)
print(vtm)
karşıma şöyle bir hata geliyor
Traceback (most recent call last):
File "e:\E\Masaüstü\Python\MySqlVeriTabani\VeritabaniBağlantisi\baslangic.py", line 4, in <module>
vtm = mysql.connector.connect(
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Yusuf_CZR_MYHZ\AppData\Local\Programs\Python\Python311\Lib\site-packages\mysql\connector\pooling.py", line 293, in connect
return CMySQLConnection(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Yusuf_CZR_MYHZ\AppData\Local\Programs\Python\Python311\Lib\site-packages\mysql\connector\connection_cext.py", line 118, in __init__
self.connect(**kwargs)
File "C:\Users\Yusuf_CZR_MYHZ\AppData\Local\Programs\Python\Python311\Lib\site-packages\mysql\connector\abstracts.py", line 1178, in connect
self._open_connection()
File "C:\Users\Yusuf_CZR_MYHZ\AppData\Local\Programs\Python\Python311\Lib\site-packages\mysql\connector\connection_cext.py", line 293, in _open_connection
raise get_mysql_exception(
mysql.connector.errors.ProgrammingError: 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
bu hatayı çözebilen varsa lütfen yardım edebilir mi edebilene müteşekkir olacağım