Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error loading MySQLdb module: libmysqlclient.so.20: cannot open shared object file: No such file or directory

Tags:

People also ask

What is import MySQLdb?

MySQLdb is an interface for connecting to a MySQL database server from Python.

What provides Libmysqlclient so 21?

Some packages require libmysqlclient. so. 21 which is solely provided by mysql 8.


I had a running django project and for some reasons I had to remove the current mysql version and install a different MySQL version in my machine.

But now when I am trying to run this program am getting an error as follows:

raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e)
django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: libmysqlclient.so.20: cannot open shared object file: No such file or directory