Fatal Error Could Not Find My_print_defaults
Contents |
Sign in Pricing Blog Support Search GitHub This repository Watch 1,054 Star 29,528 Fork 14,082 Homebrew/legacy-homebrew Code Issues 2 Pull requests 0 Projects 0 Pulse Graphs mariadb: mysql_install_db failure #15071 my_print_defaults command not found Closed yeagy opened this Issue Sep 23, 2012 · 4 comments Projects None
Fatal Error Could Not Find Mysqld
yet Labels None yet Milestone No milestone Assignees No one assigned 5 participants yeagy commented Sep 23,
My_print_defaults Not Found
2012 Trying to install the latest mariadb, which was updated to 5.5.27 just days ago. This is a fresh install, no existing mariadb or mysql. It seems the people that updated the formula
Sudo Mysql_install_db Command Not Found
probably already had a datafile directory made, and didn't attempt this portion of the install. Caveats say after install to run: unset TMPDIR mysql_install_db This errors out as following: Metatron:~ cyeagy$ unset TMPDIR Metatron:~ cyeagy$ 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 into the correct location ready for operation. If you mysql_install_db is deprecated 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. Looking at the mysql formula caveats, that directs running mysql_install_db with some parameters. This gets a little further, but errors out as following: Metatron:~ cyeagy$ mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mariadb)" --datadir=/usr/local/var/mysql --tmpdir=/tmp /usr/local/opt/mariadb/bin/my_print_defaults: Can't read dir of '/etc/my.cnf.d' (Errcode: 2) Fatal error in defaults handling. Program aborted FATAL ERROR: Could not find errmsg.sys The following directories were searched: /usr/local/opt/mariadb/share/english /usr/local/opt/mariadb/share/mysql/english 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 be at the top level of the extracted archive, or pass the --basedir option pointing to that location. I am unsure how to proceed. Hopefully someone who knows what they are doing can find this and suggest a solution. jonikanerva commented Sep 24, 2012 I had this exact same problem. I got around it like this. Change this line in the Formula: -DINSTALL_MYSQLSHAREDIR=#{share.basename}/#{name} to: -DINSTALL_MYSQLSHAREDIR=#{share.basename}/mysql and install mariadb again. Then edit /usr/local/etc/my.cnf so it points to /usr/local
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 arch linux mysql About Us Learn more about Stack Overflow the company Business Learn more about error the server quit without updating pid file mac hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss error 2002 (hy000): can't connect to local mysql server through socket '/tmp/mysql.sock' (2) Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Error running mysql_install_db: could https://github.com/Homebrew/legacy-homebrew/issues/15071 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. 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 http://stackoverflow.com/questions/21146305/error-running-mysql-install-db-could-not-find-bin-my-print-defaults 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 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
Email Updates: Status: Can't repeat Impact on me: None Category:MySQL Server: Installing https://bugs.mysql.com/bug.php?id=57062 Severity:S2 (Serious) Version:NEXT, 5.6.99 OS:Any Assigned to: Tags: regression Triage: Triaged: D2 (Serious) View Add Comment Files Developer Edit Submission View Progress Log http://superuser.com/questions/606941/error-installing-mysql-5-5-fatal-error-could-not-find-my-print-defaults Contributions [28 Sep 2010 10:36] Susanne Ebrecht Description: bzr tree mysql-next revision 3195 $ make $ make install $ mkdir /PATH_of_install_dir/etc $ not found cd /PATH_of_install_dir/etc $ vi my.cnf Create a my.cnf with given basedir and given datadir $ ./scripts/mysql_install_db --defaults-file=/PATH_of_install_dir/etc/my.cnf FATAL ERROR: Could not find ./bin/my_print_defaults $ ls ./bin ... my_print_defaults ... $ less ./scripts/mysql_install_db print_defaults="$builddir/extra/my_print_defaults" This looks like it's searching in PATH/extra but the error message says it fatal error could should be in ./bin and it's in bin. How to repeat: See above [28 Sep 2010 10:37] Susanne Ebrecht The workaround is to run ./bin/my_print_defaults before running mysql_install_db [29 Sep 2010 10:39] Susanne Ebrecht Bug #55530 was set as duplicate of this bug here. [17 May 2011 13:20] DaniĆ«l van Eeden This seems to be a duplicate of Bug #34981 which has a patch. Legal Policies Your Privacy Rights Terms of Use Contact Us Portions of this website are copyright © 2001, 2002 The PHP Group Page generated in 0.023 sec. using MySQL 5.7.12-enterprise-commercial-advanced-log Content reproduced on this site is the property of the respective copyright holders.It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party. © 2016, Oracle Corporation and/or its affiliates
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 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 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 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 i