Install MySQL in Ubuntu FATALERROR: Couldnotfindmysqld handle error message: #./bin/mysql_install_db-user = mysqlFATALERROR: Failed:/usr/libexec/usr/sbin/us
When MySQL is installed in Ubuntu, the following ERROR occurs: cocould not find mysqld.
Error message:
#./Bin/mysql_install_db-user = mysql
Fatal error: cocould not find mysqld
The following directories were searched:
/Usr/libexec
/Usr/sbin
/Usr/bin
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 of the level of the extracted archivem or pass the-basedir option pointing to that location.
Solution:
Scripts/mysql_install_db -- user = mysql -- basedir =/usr/local/mysql
(Here mysql is the user name used, and basedir is the installation directory of mysql)