Menu

Updates to make compatible with newer MySQL

Paul Reed
2010-01-16
2013-04-02
  • Paul Reed

    Paul Reed - 2010-01-16

    You must use mysql_real_connect instead of mysql_connect for newer clients.

    Changes required are as follows:

    dbf2mysql.c line 590:

     if (!(SQLsock = mysql_real_connect(&mysql,host,user,passwd,NULL,3306,NULL,NULL))) {
    

    mysql2db2.c line 142:

        if (!(SQLsock = mysql_real_connect(&mysql,host,0,0,0,3306,NULL,NULL))) {
    

    Also, if using the 64-bit client for mysql, you may need to update the Makefile on line 19:

    MYSQLLIB=-L/usr/lib64/mysql
    

    Thanks,
    Paul

     
  • Paul Reed

    Paul Reed - 2010-01-16

    Note that the above wasn't tested thoroughly, but it did allow me to compile on:
    - CentOS 5.4 x64
    - kernel  2.6.18-164.10.1.el5
    - mysql-devel-5.0.77-4.el5_4.1

     

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.