Question

My py-mysql is farking because I've upgraded MySQL which replaced libmysqlclient_r.15.dylib with libmysqlclient_r.16.dylib. How do I find and get back the older version?

EDIT: I found that to intall an older version of MySQL, I need to do @, but I'm still looking for the way to find the older versions.

Was it helpful?

Solution

Installing older versions is a pain. You have to grab the files from the MacPorts SVN Repository, which is tricky, since you can't directly search for a particular version. Once you've downloaded the appropriate portfile, it's easy as installing any other port. Read the official how to install an older version of a port document for the details. There's also an older procedure that has you add the downloaded port to a local port repository.

OTHER TIPS

Didn't figure out how to find older versions (please answer still, I'll accept). But the way I fixed it was to activate the older version:

dreBook:~ fedorov$ port installed mysql5
The following ports are currently installed:
  mysql5 @5.0.81_0
  mysql5 @5.1.40_0 (active)
dreBook:~ fedorov$ sudo port activate mysql5 @5.0.81_0
--->  Deactivating mysql5 @5.1.40_0
--->  Activating mysql5 @5.0.81_0
dreBook:~ fedorov$ sudo apachectl restart

Yay!

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top