0

So Django was giving me an error when trying to access auth-api/ from the DRF application. It said it gave me a 502 or 500 error saying that it couldn't locate my mysqld file. (somewhere I var, IIRC) So I went through a tremendous ordeal of reinstalling what seemed to be a terribly broken mysqlserver installation, just to find out through troubleshooting that Django now uses a local mysql server install instead.

So it seemed like everything was working properly but then I tried to access /admin and started getting a 502 error. In further troubleshooting, I tried to makemigrations and then thats when it gave me this error: NameError: name '_mysql' is not defined. Why would that be if I still had the local environment mysqlclient installed? I don't know where to go from here and I sure would appreciate any help. Does anyone have any idea how I can get my server working?

Lester
  • 325
  • 1
  • 10
  • Are you sure running the application in an environment with all necessary packages? Maybe this https://stackoverflow.com/questions/63109987/nameerror-name-mysql-is-not-defined-after-setting-change-to-mysql can help as well? – Marco Dec 29 '21 at 00:06

0 Answers0