Menu

MySQL5, MDK10.1, unresolved symbol

Help
2006-04-06
2012-09-19
  • Jean-Marie Gouy

    Jean-Marie Gouy - 2006-04-06

    Hello,

    I'm trying to use MySQL for Python, but when I run the script it returns this error :
    " import _mysql
    ImportError: /usr/lib/python2.4/site-packages/_mysql.so: undefined symbol: mysql_set_character_set"

    I'm using Mandrake 10.1, MySQL 5.0, Python 2.4.3, and MySQL-python-1.2.1.

    Any ideas? Thanks

     
    • Andy Dustman

      Andy Dustman - 2006-04-06

      You probably have multiple installations of MySQL. Check the current bug list, and check the output of mysql_config.

       
    • Jean-Marie Gouy

      Jean-Marie Gouy - 2006-04-07

      ok, it's fixed, I've rebuild MySQLdb. :)

       
    • Jean-Marie Gouy

      Jean-Marie Gouy - 2006-04-06

      Thanks, you were right, i had libmysqlclient from mysql4 installed.
      Now it works fine, but it's strange, I had to create a symbolic link between libmysqlclient.so.15.0.0 libmysqlclient_r.so.12 ...

       
      • Andy Dustman

        Andy Dustman - 2006-04-06

        That's not good. You should eliminate all references to libmysqlclient_r.so.12 and rebuild MySQLdb. Otherwise you are using the 4.0 API with 5.0.

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.