how can handle the error 1045 (using pasword: No)

55 views
Skip to first unread message

wubin...@gmail.com

unread,
May 13, 2018, 12:25:02 AM5/13/18
to PyMySQL Users
I use Pycharm
python 3.6,5
mysql server 8.0

and this is the code:

import pymysql

conn = pymysql.connect('localhost', 'wubin', 'wude@990102', 'mysql')


thanks for helping


Evaldo Moraes

unread,
May 24, 2024, 12:48:11 PMMay 24
to PyMySQL Users

Hello, try to use

 conn = pymysql.connect(host='localhost', user='wubin', passwd='wude@990102', database=mysql)

Documentation:
Reply all
Reply to author
Forward
0 new messages