upgraded to stretch, mariadb replaced mysql, broken client

If none of the more specific forums is the right place to ask

upgraded to stretch, mariadb replaced mysql, broken client

Postby leveret » 2017-06-26 11:00

I upgraded to stretch.

My mysql database migrated and I can read it. I have a django project that relies on libmysqlclient.so.18 to access mysql.

what should i do to make sure it can access it?

Code: Select all
    raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e)
django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: libmysqlclient.so.18: cannot open shared object file: No such file or directory
leveret
 
Posts: 9
Joined: 2017-06-26 10:56

Re: upgraded to stretch, mariadb replaced mysql, broken clie

Postby dilberts_left_nut » 2017-06-26 11:18

AdrianTM wrote:There's no hacker in my grandma...
User avatar
dilberts_left_nut
 
Posts: 4686
Joined: 2009-10-05 07:54
Location: enzed

Re: upgraded to stretch, mariadb replaced mysql, broken clie

Postby leveret » 2017-06-26 11:39

thanks for the quick reply. can you tell me what package is libmariadb.so.3 part of? because it is not on my system...
leveret
 
Posts: 9
Joined: 2017-06-26 10:56

Re: upgraded to stretch, mariadb replaced mysql, broken clie

Postby orythem27 » 2017-06-26 12:41

Try symlinking /usr/lib/x86_64-linux-gnu/libmariadbclient.so.18 to /usr/lib/x86_64-linux-gnu/libmysqlclient.so.18 and see if it works?

/usr/lib/x86_64-linux-gnu/libmariadbclient.so.18 is provided by libmariadbclient18
User avatar
orythem27
 
Posts: 252
Joined: 2017-05-11 07:59
Location: P.R. China

Re: upgraded to stretch, mariadb replaced mysql, broken clie

Postby leveret » 2017-06-27 00:27

thanks.

I did
Code: Select all
ln -s /usr/lib/x86_64-linux-gnu/libmariadbclient.so.18 to /usr/lib/x86_64-linux-gnu/libmysqlclient.so.18
as I already had libmariadbclient18 installed. but they do not seem to be compatible.

Code: Select all
    raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e)
django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: /usr/lib/x86_64-linux-gnu/libmysqlclient.so.18: version `libmysqlclient_18' not found (required by /usr/local/lib/python2.7/dist-packages/_mysql.so)
leveret
 
Posts: 9
Joined: 2017-06-26 10:56

Re: upgraded to stretch, mariadb replaced mysql, broken clie

Postby leveret » 2017-06-27 03:02

as a temporary fix, I installed the deb for libmysqlclient18 directly from here: https://launchpad.net/ubuntu/xenial/amd ... 5-0ubuntu1

but this doesn't seem like the right solution...
leveret
 
Posts: 9
Joined: 2017-06-26 10:56


Return to General Questions

Who is online

Users browsing this forum: No registered users and 7 guests

fashionable