Jump to content

mysql config cant be found on mdk 9.2


_Qwerty_
 Share

Recommended Posts

Hello!

 

I have an Mandrake 9.2 computer with MySQL 4.0.15 running.

 

I found a neat software on sourceforge called discdb that have a makefile that i need to edit, I need to enter the path to the libs for mysql for instance. And also for any mysql incs

 

Someone told me I should use "mysql_config --libs" to find out where they are, but i dont have any file called "mysql_config" and I have searched my computer and i cant find any config file for Mysqld.

 

people have suggested there should be an mysql config file either in /etc/my.cnf or /var/lib/mysql/my.cnf but i have neither, in fact i have searched the whole filesystem without finding any file.

 

perhaps i should remove the mysql mandrake have given me, and install a newer version from source that will have things in known places. 4.0.15 is rather old.

Link to comment
Share on other sites

  • 3 weeks later...

I have now installed Mandrake 10.0 and that way bumped mysql version up to 4.0.18 :)

 

This software im trying to compile has a Makefile that the README says i should edit a few lines of, it looks like this:

# User configurable

MYSQL=/usr/local/bin/mysql
MYSQL_LIBS=-L/usr/local/lib/mysql
MYSQL_INCS=-I/usr/local/include/mysql
MYSQLPP_INCS=-I/usr/include/mysql++
INSTALLDIR=$(RPM_BUILD_ROOT)/usr/local
RPM_ROOT=/usr/src/redhat

 

I found my mysql executable like this:

[qwerty@qwerty discdb-0.4]$ whereis mysql
mysql: /usr/bin/mysql

 

but how do I find out any "MYSQL_INCS" or "MYSQL_LIBS"?

Link to comment
Share on other sites

MYSQL_INCS and MYSQL_LIBS are not files, but are macros in the makefile.

 

Just edit the makefile so the paths they display read "/usr/bin/mysql", like the MYSQL macro. (But don't delete the parts that say "-I' and "-L".) :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...