Mysql 5.5 Fatal Error Could Not Find ./bin/my_print_defaults
Contents |
Sign in Pricing Blog Support Search GitHub This repository Watch 1,052 Star 29,516 Fork 14,065 Homebrew/legacy-homebrew Code Issues 2 Pull requests 0 Projects 0 Pulse Graphs mysql_install_db => "FATAL ERROR: Could not find could not find ./bin/my_print_defaults mysql ./bin/my_print_defaults" #5407 Closed gagarine opened this Issue Apr 28, 2011 · 9 comments Projects my_print_defaults command not found None yet Labels None yet Milestone No milestone Assignees No one assigned 9 participants gagarine commented Apr 28, mysql my_print_defaults 2011 On a fresh install of mysql $brew install mysql
$ mysql_install_db
FATAL ERROR: Could not find ./bin/my_print_defaults
If you compiled from source, you need to run 'make install' to
copy the software
Fatal Error Could Not Find Mysqld
into the correct location ready for operation.
If you are using a binary release, you must either be at the top
level of the extracted archive, or pass the --basedir option
pointing to that location.
They are a bug on mysql http://bugs.mysql.com/bug.php?id=57062 but I'm not sure is the same. gagarine commented Apr 28, 2011 Ok I found it. You need to run those command. It was specified during the install sudo mysql_install_db command not found but I don't watch my screenn when somthing compiliing assuming than homebrew was doing all the work form me. $unset TMPDIR $mysql_install_db --verbose --user=whoami --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp I don't close the issue because I think "unset TMPDIR" can be done in the formula. no? adamv commented May 5, 2011 unset needs to be run in the current shell; doing it in the formula won't help. adamv closed this May 5, 2011 xavi- commented May 11, 2011 Thank you very much. This is exactly what I needed. I also missed those commands. Is there's some way to highlight it during the installation process? Maybe change the text to red? henrysingleton commented May 23, 2011 Thanks for this - I totally missed it as well and spent a good 30 mins trying to figure it out :) MySQL is fully working now, though I think I need to figure out how to make it run automatically on startup. et commented Jul 24, 2011 @henrysingleton launchctl load -w /usr/local/Cellar/mysql/5.5.12/com.mysql.mysqld.plist bernardeli commented Aug 21, 2011 missed that too. thanks for this solution. saurabh89 commented Feb 12, 2013 still I am getting the same error.I did these two steps unset TMPDIR $mysql_install_db --verbose --user=whoami --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more mysql_install_db is deprecated about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users
Arch Linux Mysql
Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping
Error The Server Quit Without Updating Pid File Mac
each other. Join them; it only takes a minute: Sign up Error running mysql_install_db: could not find ./bin/my_print_defaults up vote 1 down vote favorite I seem to be having an issue getting MySQL 5.6.1.5 to install from Source. https://github.com/Homebrew/legacy-homebrew/issues/5407 I am running RHEL 6. I was able to perform the cmake, make, and make install without issues. I am attempting to run the mysql_install_db binary and when I do I get the following error: Fatal ERROR: Could not find ./bin/my_print_defaults If you compiled from source, you need to run 'make install' to copy the software into the correct location ready for operation. If you are using a binary release, you must either bat at the top http://stackoverflow.com/questions/21146305/error-running-mysql-install-db-could-not-find-bin-my-print-defaults level of the extracted archive, or pass the --basedir option pointing to that location. So I did a check for my_print_defaults using which my_print_defaults, unfortunately it was not found on my machine. I did a locate my_print_defaults as well just for the heck of it and said it was located in /usr/bin/my_print_defaults, however, when I checked /usr/bin for the binary, it was not actually there. I would try to use mysql_install_db --basedir=/usr/bin but I know this won't work as the which and locate commands confirm my_print_defaults isn't on my machine. I looked at mysql_install_db giving error, but that error was not similar to this one. mysql mysql-error-1064 share|improve this question edited Aug 31 '15 at 2:00 Paul Roub 29.2k84165 asked Jan 15 '14 at 19:19 falconspy 3571418 add a comment| 1 Answer 1 active oldest votes up vote 3 down vote accepted Please ignore question, I didn't bother to try running find / -name my_print_defaults and found it in /usr/local/mysql/bin/ share|improve this answer answered Jan 15 '14 at 19:23 falconspy 3571418 2 This is a valid answer. Don't apologize for it. –tadman Jan 15 '14 at 19:51 This was exactly the answer to my problem. I was trying to do this via the fonz fun-plug on a DNS-323 NAS. –Octopus Dec 4 '14 at 5:52 why should anyone have to do this? is mysql
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more http://superuser.com/questions/606941/error-installing-mysql-5-5-fatal-error-could-not-find-my-print-defaults about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Super User Questions Tags Users Badges Unanswered Ask Question _ Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise could not to the top Error installing mysql 5.5 FATAL ERROR: Could not find my_print_defaults up vote 2 down vote favorite I installed Mysql 5.5 using Homebrew, specifically Homebrew versions - https://github.com/Homebrew/homebrew-versions. After the installation, I attempted to run the commands it suggests: Set up databases to run AS YOUR USER ACCOUNT with: unset TMPDIR mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp ... However, the second line causes an error. When could not find I run: mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp I get the following error: FATAL ERROR: Could not find my_print_defaults The following directories were searched: /usr/local/Cellar/mysql/5.6.10/bin /usr/local/Cellar/mysql/5.6.10/extra Perhaps this is because the script is by default searching for files in my old mysql 5.6 directory even though I ran "brew uninstall mysql" before doing this. Still, if I specify the new mysql installation directory, I still get an error: $ mysql_install_db --verbose --user=`whoami` --basedir="$/usr/local/Cellar/mysql55/5.5.30" --datadir=/usr/local/var/mysql --tmpdir=/tmp FATAL ERROR: Could not find my_print_defaults The following directories were searched: $/usr/local/Cellar/mysql55/5.5.30/bin $/usr/local/Cellar/mysql55/5.5.30/extra This is strange because the first directory indeed does contain my_print_defaults if I ls the directory. Why, then, am I still getting this error? mysql homebrew share|improve this question asked Jun 12 '13 at 22:22 Eric Baldwin 11613 migrated from stackoverflow.com Jun 13 '13 at 0:44 This question came from our site for professional and enthusiast programmers. I fixed this by uninstalling it with Homebrew and reinstalling it with a package - dev.mysql.com/downloads/mysql/5.5.html#downloads –Eric Baldwin Jun 13 '13 at 23:59 add a comment| 1 Answer 1 active oldest votes up vote 2 down vote I ran into this same problem. Part of the problem is that your mysql_install_db line is incorrect. As I documented here,