Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 2 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.