我保证写的代码不会有任何问题,都是之前提交过的
请检查是否存在语法错误或者数组越界非法访问等情况
case通过率为0.00%
Traceback (most recent call last):
File "/tmp/a.mysql", line 5, in <module>
db = MySQLdb.connect("127.0.0.1", "root", "root", "test", charset='utf8')
File "/usr/local/lib/python3.9/site-packages/MySQLdb/__init__.py", line 130, in Connect
return Connection(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/MySQLdb/connections.py", line 185, in __init__
super().__init__(*args, **kwargs2)
MySQLdb._exceptions.OperationalError: (2003, "Can't connect to MySQL server on '127.0.0.1' (101)")
全部评论
(3) 回帖