|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
OperationalError at /chpa/index
(pymysql.err.OperationalError) (1045, "Access denied for user 'scott'@'localhost' (using password: YES)")
(Background on this error at: https://sqlalche.me/e/14/e3q8)
Request Method: GET
Request URL: http://127.0.0.1:8088/chpa/index
Django Version: 4.0.2
Exception Type: OperationalError
Exception Value:
(pymysql.err.OperationalError) (1045, "Access denied for user 'scott'@'localhost' (using password: YES)")
(Background on this error at: https://sqlalche.me/e/14/e3q8)
Exception Location: F:\djangoProject1\lib\site-packages\pymysql\err.py, line 143, in raise_mysql_exception
Python Executable: F:\djangoProject1\Scripts\python.exe
Python Version: 3.8.1
Python Path:
['D:\\djangoProject1',
'C:\\Users\\LIN\\AppData\\Local\\Programs\\Python\\Python38\\python38.zip',
'C:\\Users\\LIN\\AppData\\Local\\Programs\\Python\\Python38\\DLLs',
'C:\\Users\\LIN\\AppData\\Local\\Programs\\Python\\Python38\\lib',
'C:\\Users\\LIN\\AppData\\Local\\Programs\\Python\\Python38',
'F:\\djangoProject1',
'F:\\djangoProject1\\lib\\site-packages']
本帖最后由 isdkz 于 2022-3-6 15:51 编辑
按这个来(根据你的情况来修改,不带中括号):
- ENGINE = create_engine("mysql+pymysql://【此处填用户名】:【此处填密码】@localhost/【此处填数据库的名称】")
复制代码
|
|