Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have downloaded mysql-advanced-5.1.46sp1-osx10.6-x86_64.dmg and installed it. I have a custom my.cnf file and no data to begin with. I dont see mysql_install_db any where. How can i install one. The server where I am copying this configuration from has mysql_install_db present. pkginfo returns nothing useful and man page states that this mysql_install_db is from Oracle.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

According to README, MySQL.pkg gets installed into /usr/local/mysql-VERSION

mysql_install_db is located in /usr/local/mysql-VERSION/scripts/

The Mac OS X PKG of MySQL installs itself into /usr/local/mysql-VERSION' and also installs a symbolic link, /usr/local/mysql', that points to the new location. If a directory named /usr/local/mysql' exists, it is renamed to /usr/local/mysql.bak' first. Additionally, the installer creates the grant tables in the mysql' database by executingmysql_install_db'.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.