Perform scripts/mysql_install_db--user=mysql
Error when installing MySQL:
./bin/my_print_defaults:error while loading shared libraries:libssl.so.6:cannot open Shared object file:no such file o R Directory
FATAL error:neither host ' 172-16-4-12 ' nor ' localhost ' could be looked
./bin/resolveip
Please configure the ' hostname ' command to return a correct
Hostname.
If you are want to solve this in a later stage, restart this script
With the--force option
Solution:
Cd/usr/lib64
[Root@172-16-4-12 lib64]# ll *ssl*
-rwxr-xr-x 1 root root 261248 Nov 4 17:50 libssl3.so
lrwxrwxrwx 1 root Dec 10:02 libssl.so-> libssl.so.1.0.1e
lrwxrwxrwx 1 root Dec 10:02 libssl.so.10-> libssl.so.1.0.1e
-rwxr-xr-x 1 root 441256 Dec 13:16 libssl.so.1.0.1e
If so, execute the
Ln-s libssl.so.1.0.1e libssl.so.6
If this is not installed this requires downloading the installation on the Web
Similarly: Error while loading shared Libraries:libcrypto.so.6:cannot open Shared object
This error is handled in the same way.