Uday
Uday

Reputation: 1490

Mysql: How to see the compile time configs of a mysql binary

I installed mysql using apt-get on my local machine recently. It proceeded with the default my.cnf. I would like to see what are the compile time configurations of this binary.

Can some one help me how can i do this?

Upvotes: 0

Views: 349

Answers (3)

Flimm
Flimm

Reputation: 151268

grep CONFIG $(which mysqlbug)

Source

Upvotes: 0

Shiplu Mokaddim
Shiplu Mokaddim

Reputation: 57690

install mysql-server source.

apt-get source mysql-server # root access not needed

This will create some archive files in the current directory. In my debian lenny it creates the following directories. In your Ubuntu it'll be almost same.

 mysql-dfsg-5.0-5.0.51a
 mysql-dfsg-5.0_5.0.51a-24+lenny5.diff.gz
 mysql-dfsg-5.0_5.0.51a-24+lenny5.dsc
 mysql-dfsg-5.0_5.0.51a.orig.tar.gz

Now inspect the debian/rules file in extracted source. I did it by this,

  less mysql-dfsg-5.0-5.0.51a/debian/rules

You can use other editor (nano, vi, gedit all are okay). Arround line 68 you'll see the configuration option

To know more about how to recompile a debian source package, read

Upvotes: 1

elo
elo

Reputation: 615

Try to use this:

shell> mysql_config

Upvotes: 0

Related Questions