Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

upgraded to stretch, mariadb replaced mysql, broken client

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
leveret
Posts: 9
Joined: 2017-06-26 10:56

upgraded to stretch, mariadb replaced mysql, broken client

#1 Post by leveret »

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

User avatar
dilberts_left_nut
Administrator
Administrator
Posts: 5347
Joined: 2009-10-05 07:54
Location: enzed
Has thanked: 13 times
Been thanked: 66 times

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

#2 Post by dilberts_left_nut »

AdrianTM wrote:There's no hacker in my grandma...

leveret
Posts: 9
Joined: 2017-06-26 10:56

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

#3 Post by leveret »

thanks for the quick reply. can you tell me what package is libmariadb.so.3 part of? because it is not on my system...

User avatar
orythem27
Posts: 252
Joined: 2017-05-11 07:59
Location: P.R. China

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

#4 Post by orythem27 »

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

leveret
Posts: 9
Joined: 2017-06-26 10:56

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

#5 Post by leveret »

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

#6 Post by leveret »

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...

Post Reply