Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing MySQL 5.6 in Amazon Linux Machine

I am trying to install MySQL 5.6 in amazon linux machine. by using following link.

after completing following steps.

sudo yum localinstall http://repo.mysql.com/mysql-community-release-el6-3.noarch.rpm
sudo yum install mysql-community-server

when i am starting mysql services by this command.

sudo service mysqld start

I am getting MySQL Daemon failed to start error.

like image 303
Kuldeep Avatar asked Dec 01 '22 17:12

Kuldeep


1 Answers

Remove old mySql

sudo yum remove mysql mysql-server mysql-common mysql-client

remove all pre-installed packages. You can get a list:

rpm -qa | grep -i mysql

Then uninstall all of them. For example:

rpm -e mysql libmysqlclient15-5.0.94-0.2.4.1 <and so on>

Completely remove the /var/lib/mysql folder

    cd /var/lib
    rm -rf mysql

Installing fresh mySql 5.6 =>

    wget http://dev.mysql.com/get/Downloads/MySQL-5.6/MySQL-5.6.23-1.el7.x86_64.rpm-bundle.tar
    tar -xvf MySQL-5.6.23-1.el7.x86_64.rpm-bundle.tar
    sudo yum -y install MySQL-client-5.6.23-1.el7.x86_64.rpm
    sudo yum install MySQL-shared-compat-5.6.23-1.el7.x86_64.rpm
    sudo yum install MySQL-server-5.6.23-1.el7.x86_64.rpm
like image 154
Anil Agrawal Avatar answered Dec 10 '22 04:12

Anil Agrawal