[root@12 MySQL]# ./scripts/mysql_install_db --user=mysql --datadir=/data/mysql
Installing MySQL system tables...
./bin/mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory
[root@12 mysql]# ./scripts/mysql_install_db --user=mysql
Installing MySQL system tables...
./bin/mysqld: error while loading shared libraries: libssl.so.6: cannot open shared object file: No such file or directory
WSREP_SST: [INFO] Evaluating socat -u TCP-LISTEN:4444,reuseaddr stdio | tar xfi - --recursive-unlink -h; RC=( ${PIPESTATUS[@]} ) (20140128 15:35:07.478)
2014/01/28 15:35:07 socat[10521.3077941584] E bind(11, {AF=2 0.0.0.0:4444}, 16): Address already in use
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
解决办法,找到占用端口的程序,杀掉(比较暴力,也可以换端口,但是初次安装为简单起见,暴力)
Solution:
[root@12 ~]# lsof -i :4444
lsof: no pwd entry for UID 503
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
lsof: no pwd entry for UID 503
socat 5256 503 11u IPv4 13450 0t0 TCP *:krb524 (LISTEN)
[root@12 ~]# kill -9 5256
[root@12 ~]# lsof -i :4444
[root@12 ~]# lsof -i :4444