OperationalError: (2006, '') ibn flask and mysql | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

OperationalError: (2006, '') ibn flask and mysql

Previously i asked about attribute error cursor i thought it might be connection error between flask and mysql so i start writing code to find actual error in connection i found this is there any package or files missing or any other please help to kind out almost i have spent then than a 5 days to resolve this

24th Nov 2023, 4:53 AM
Jayashree M
3 Answers
+ 3
Jayashree M sololearn playground ( if I recall correctly ) doesn't support flask or at least I hadn't found a way here. If you are writing script on say pydroid3 app you should be able to add both .... And if you want to find the latest supported version try: __import__("os").system("pip install --upgrade flask") When you run it on pydroid3 you will either see green text and reference to the latest version or text will be red as if giving you a warning that flask is not supported. https://code.sololearn.com/cWW4iqHK03J0/?ref=app
24th Nov 2023, 5:21 AM
BroFar
BroFar - avatar
+ 2
You're welcome Jayashree M
24th Nov 2023, 5:50 AM
BroFar
BroFar - avatar
+ 1
Tq so much it working well
24th Nov 2023, 5:48 AM
Jayashree M