i can"t include mysql.h header file in c++ coding

i can"t include mysql.h header file in c++ coding

am 03.01.2007 13:25:49 von Yogesh

mysql 5.0.9 in redhat 9.0 -- i can't include mysql.h header file in c++
coding

can u tell me how to include the mysql file ,mysql is installed but the
mysql folders and header file is not present in the /var/lib/mysql or
/usr/include/mysql


any one can tell me how to install header file in redhat 9.0 , where
the header file located for the mysql

Re: i can"t include mysql.h header file in c++ coding

am 03.01.2007 14:52:55 von Axel Schwenke

"yogesh" wrote:
>
> can u tell me how to include the mysql file ,mysql is installed but the
> mysql folders and header file is not present in the /var/lib/mysql or
> /usr/include/mysql

Probably Redhat splits MySQL into several packages. The header files
and static libraries will be in a mysql-dev package then. You can get
a list of files in a RPM package with

rpm -ql (for installed packages, or)
rpm -ql -p


XL

Re: i can"t include mysql.h header file in c++ coding

am 04.01.2007 06:17:02 von Yogesh

can u tell me the header file will be in which rpm or dir

but i done the installation package but i didn't get the mail header
file mysql.h
only some files are installed but no header file is not install ,

i run both server and client side also .it as follows

These are the Files in the mysql rpm's
------------------------------------------------------------
[root@localhost root]# rpm -ql -p
MySQL-server-standard-5.0.27-0.rhel3.i386.rpm
warning: MySQL-server-standard-5.0.27-0.rhel3.i386.rpm: V3 DSA
signature: NOKEY, key ID 5072e1f5
/etc/init.d/mysql
/etc/logrotate.d/mysql
/usr/bin/my_print_defaults
/usr/bin/myisam_ftdump
/usr/bin/myisamchk
/usr/bin/myisamlog
/usr/bin/myisampack
/usr/bin/mysql_convert_table_format
/usr/bin/mysql_create_system_tables
/usr/bin/mysql_explain_log
/usr/bin/mysql_fix_extensions
/usr/bin/mysql_fix_privilege_tables
/usr/bin/mysql_install_db
/usr/bin/mysql_secure_installation
/usr/bin/mysql_setpermission
/usr/bin/mysql_tzinfo_to_sql
/usr/bin/mysql_upgrade
/usr/bin/mysql_zap
/usr/bin/mysqlbug
/usr/bin/mysqld_multi
/usr/bin/mysqld_safe
/usr/bin/mysqldumpslow
/usr/bin/mysqlhotcopy
/usr/bin/mysqltest
/usr/bin/perror
/usr/bin/replace
/usr/bin/resolve_stack_dump
/usr/bin/resolveip
/usr/bin/safe_mysqld
/usr/lib/mysql/mysqld.sym
/usr/sbin/mysqld
/usr/sbin/mysqlmanager
/usr/sbin/rcmysql
/usr/share/doc/MySQL-server-standard-5.0.27
/usr/share/doc/MySQL-server-standard-5.0.27/COPYING
/usr/share/doc/MySQL-server-standard-5.0.27/README
/usr/share/doc/MySQL-server-standard-5.0.27/my-huge.cnf
/usr/share/doc/MySQL-server-standard-5.0.27/my-innodb-heavy- 4G.cnf
/usr/share/doc/MySQL-server-standard-5.0.27/my-large.cnf
/usr/share/doc/MySQL-server-standard-5.0.27/my-medium.cnf
/usr/share/doc/MySQL-server-standard-5.0.27/my-small.cnf
/usr/share/info/mysql.info.gz
/usr/share/man/man1/myisam_ftdump.1.gz
/usr/share/man/man1/myisamchk.1.gz
/usr/share/man/man1/myisamlog.1.gz
/usr/share/man/man1/myisampack.1.gz
/usr/share/man/man1/mysql.server.1.gz
/usr/share/man/man1/mysql_explain_log.1.gz
/usr/share/man/man1/mysql_fix_privilege_tables.1.gz
/usr/share/man/man1/mysql_upgrade.1.gz
/usr/share/man/man1/mysql_zap.1.gz
/usr/share/man/man1/mysqld.1.gz
/usr/share/man/man1/mysqld_multi.1.gz
/usr/share/man/man1/mysqld_safe.1.gz
/usr/share/man/man1/mysqlhotcopy.1.gz
/usr/share/man/man1/mysqlman.1.gz
/usr/share/man/man1/mysqlmanager.1.gz
/usr/share/man/man1/perror.1.gz
/usr/share/man/man1/replace.1.gz
/usr/share/man/man1/safe_mysqld.1.gz
/usr/share/mysql
/usr/share/mysql/binary-configure
/usr/share/mysql/charsets
/usr/share/mysql/charsets/Index.xml
/usr/share/mysql/charsets/README
/usr/share/mysql/charsets/armscii8.xml
/usr/share/mysql/charsets/ascii.xml
/usr/share/mysql/charsets/cp1250.xml
/usr/share/mysql/charsets/cp1251.xml
/usr/share/mysql/charsets/cp1256.xml
/usr/share/mysql/charsets/cp1257.xml
/usr/share/mysql/charsets/cp850.xml
/usr/share/mysql/charsets/cp852.xml
/usr/share/mysql/charsets/cp866.xml
/usr/share/mysql/charsets/dec8.xml
/usr/share/mysql/charsets/geostd8.xml
/usr/share/mysql/charsets/greek.xml
/usr/share/mysql/charsets/hebrew.xml
/usr/share/mysql/charsets/hp8.xml
/usr/share/mysql/charsets/keybcs2.xml
/usr/share/mysql/charsets/koi8r.xml
/usr/share/mysql/charsets/koi8u.xml
/usr/share/mysql/charsets/latin1.xml
/usr/share/mysql/charsets/latin2.xml
/usr/share/mysql/charsets/latin5.xml
/usr/share/mysql/charsets/latin7.xml
/usr/share/mysql/charsets/macce.xml
/usr/share/mysql/charsets/macroman.xml
/usr/share/mysql/charsets/swe7.xml
/usr/share/mysql/czech
/usr/share/mysql/czech/errmsg.sys
/usr/share/mysql/danish
/usr/share/mysql/danish/errmsg.sys
/usr/share/mysql/dutch
/usr/share/mysql/dutch/errmsg.sys
/usr/share/mysql/english
/usr/share/mysql/english/errmsg.sys
/usr/share/mysql/errmsg.txt
/usr/share/mysql/estonian
/usr/share/mysql/estonian/errmsg.sys
/usr/share/mysql/fill_help_tables.sql
/usr/share/mysql/french
/usr/share/mysql/french/errmsg.sys
/usr/share/mysql/german
/usr/share/mysql/german/errmsg.sys
/usr/share/mysql/greek
/usr/share/mysql/greek/errmsg.sys
/usr/share/mysql/hungarian
/usr/share/mysql/hungarian/errmsg.sys
/usr/share/mysql/italian
/usr/share/mysql/italian/errmsg.sys
/usr/share/mysql/japanese
/usr/share/mysql/japanese/errmsg.sys
/usr/share/mysql/korean
/usr/share/mysql/korean/errmsg.sys
/usr/share/mysql/mi_test_all
/usr/share/mysql/mi_test_all.res
/usr/share/mysql/my-huge.cnf
/usr/share/mysql/my-innodb-heavy-4G.cnf
/usr/share/mysql/my-large.cnf
/usr/share/mysql/my-medium.cnf
/usr/share/mysql/my-small.cnf
/usr/share/mysql/mysql-log-rotate
/usr/share/mysql/mysql.server
/usr/share/mysql/mysql_fix_privilege_tables.sql
/usr/share/mysql/ndb-config-2-node.ini
/usr/share/mysql/norwegian
/usr/share/mysql/norwegian-ny
/usr/share/mysql/norwegian-ny/errmsg.sys
/usr/share/mysql/norwegian/errmsg.sys
/usr/share/mysql/polish
/usr/share/mysql/polish/errmsg.sys
/usr/share/mysql/portuguese
/usr/share/mysql/portuguese/errmsg.sys
/usr/share/mysql/romanian
/usr/share/mysql/romanian/errmsg.sys
/usr/share/mysql/russian
/usr/share/mysql/russian/errmsg.sys
/usr/share/mysql/serbian
/usr/share/mysql/serbian/errmsg.sys
/usr/share/mysql/slovak
/usr/share/mysql/slovak/errmsg.sys
/usr/share/mysql/spanish
/usr/share/mysql/spanish/errmsg.sys
/usr/share/mysql/swedish
/usr/share/mysql/swedish/errmsg.sys
/usr/share/mysql/ukrainian
/usr/share/mysql/ukrainian/errmsg.sys
[root@localhost root]# locate mysql.h
[root@localhost root]# locate Mysql.h
[root@localhost root]# locate MySql.h
[root@localhost root]# locate mysql.h
[root@localhost root]#

Re: i can"t include mysql.h header file in c++ coding

am 04.01.2007 10:12:39 von Axel Schwenke

Hi Yogesh,

"yogesh" wrote:
> can u tell me the header file will be in which rpm or dir
> but i done the installation package but i didn't get the mail header
> file mysql.h
....
> [root@localhost root]# rpm -ql -p
> MySQL-server-standard-5.0.27-0.rhel3.i386.rpm

Ahh - you're using the RPM from dev.mysql.com?
Then look closer. There is also


Red Hat Enterprise Linux 3 RPM (x86) downloads
....
Headers and libraries 5.0.27-0 6.3M Download | Pick a mirror
MD5: 94892018e48759b2283c4d6961b02f73



XL

Re: i can"t include mysql.h header file in c++ coding

am 25.01.2007 12:23:38 von Yogesh

thankyou everyone i solved my problem thx