6

Seems that I cannot locate mysql DIR only bunch of binary files under /usr/bin

I used yum to install

mysql
mysql-server
mysql-devel

and tried to install mysql and I used /init.d/mysqld to have started it.

But when I want to compile PHP , the option --with-mysql need the base DIR of mysql ...where should I use? /usr/bin?

studiohack
  • 13,490
Hao
  • 375

2 Answers2

4

You should run this command

mysqladmin -uroot variables | grep datadir | sed 's/|/ /g' | awk '{print $2}'

to find the default data directory.

If you cannot login to mysql just yet, you can still run this

which mysqld
which mysqld_safe

to locate the binaries.

Give it a Try !!!

1

Have you tried: /usr/local/mysql/bin?

studiohack
  • 13,490