Instalando MySQL 5.6 me encontré con el siguiente error:
# /usr/local/mysql/scripts/mysql_install_db --user=mysql --datadir=/var/mysql FATAL ERROR: Could not find my-default.cnf 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.
Si hacemos un strace al proceso podemos ver:
stat64("./bin/my_print_defaults", 0x93500c4) = -1 ENOENT (No such file or directory)
Por lo tanto, lo que le pasa es que no esta encontrando binarios que necesita para la ejecución del script. Para solucionarlo simplemente deberemos indicar dónde esta instalado el MySQL mediante la …
[Lea más]