Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#5 compilation error because of deprecated functions.

open
nobody
None
5
2005-10-04
2005-10-04
Anonymous
No

The linker was complaining about references to missing
functions mysql_create_db() and mysql_drop_db().

Functions mysql_create_db() and mysql_drop_db() are
deprecated (see
http://dev.mysql.com/doc/mysql/en/mysql-create-db.html )
It is suggested that mysql_query() is used instead.

So I replaced the calls to those functions with equivalent
sql queries.

My environment is Mandrake Linux 10.1. In particular:

[marcello@main tmp]$ rpm -qa|grep -i mysql
MySQL-4.1.11-1mdk
MySQL-common-4.1.11-1mdk
libmysql14-devel-4.1.11-1mdk
libqt3-mysql-3.3.4-7.1.102mdk
libmysql14-4.1.11-1mdk
MySQL-client-4.1.11-1mdk
mysql-administrator-1.0.20-1mdk
perl-DBD-mysql-2.9004-6mdk
mysql-query-browser-1.1.7-1mdk

[marcello@main tmp]$ mysql -V
mysql Ver 14.7 Distrib 4.1.11, for mandrake-linux-gnu
(i586)

HTH

Marcello

Discussion

  • Patch to correct problem

     
    Attachments
  • Logged In: NO

    Yes, i also had this problem during compilation due to use
    of mysql_create_db() and mysql_drop_db() deprecated func in
    the sources.