[root@89-97-218-94 scripts]# rootpass=`cat ./setup.txt | grep mysql= | cut -d= -f2`;
[root@89-97-218-94 scripts]# dbuser=`cat ./setup.txt | grep mysqluser= | cut -d= -f2`;
[root@89-97-218-94 scripts]# userpass=`cat ./setup.txt | grep adminpass= | cut -d= -f2`;
[root@89-97-218-94 scripts]#
[root@89-97-218-94 scripts]# ./mysql.sh $rootpass $dbuser $userpass $CMD_LINE;
yum update
*****************************************************
*****************************************************
It seems as though mysql has already been installed.
The directory /var/lib/mysql has been found. For the best results, its recommended that this be deleted.
All database data will be lost if you delete it
Do you want to delete it? (y is recommended)? (y,n) :
Preparing... ########################################### [100%]
1:MySQL-server ########################################### [100%]
/usr/sbin/mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory
Installation of system tables failed! Examine the logs in
/var/lib/mysql for more information.
You can try to start the mysqld daemon with:
shell> /usr/sbin/mysqld --skip-grant &
and use the command line tool /usr/bin/mysql
to connect to the mysql database and look at the grant tables:
shell> /usr/bin/mysql -u root mysql
mysql> show tables
Try 'mysqld --help' if you have problems with paths. Using --log
gives you a log in /var/lib/mysql that may be helpful.
Please consult the MySQL manual section
'Problems running mysql_install_db', and the manual section that
describes problems on your OS. Another information source are the
MySQL email archives available at http://lists.mysql.com/.
Please check all of the above before mailing us! And remember, if
you do mail us, you MUST use the /usr/bin/mysqlbug script!
Preparing... ########################################### [100%]
1:MySQL-client ########################################### [100%]
Preparing... ########################################### [100%]
1:MySQL-devel ########################################### [100%]
usermod: no changes
Starting MySQL. ERROR! The server quit without updating PID file (/var/lib/mysql/Test.CrazyNetwork.it.pid).
Waiting for mysqld to start....
Setting MySQL Root Password...
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
Setting DirectAdmin user and password...
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
Updating privilege tables...
[root@89-97-218-94 scripts]# yum update
CRITICAL:yum.cli:Config Error: Error accessing file for config file:///etc/yum.conf