Reputation: 109
I recently trying out AWS EC2 and launched an instance. I have just installed php successfully via sudo yum install php php-mysql
But when I try sudo yum install mysql-server, it says
$ sudo yum install mysql-server Loaded plugins: extras_suggestions, langpacks, priorities, update-motd amzn2-core >| 2.4 kB 00:00:00 No package mysql-server available. Error: Nothing to do
May I know how can I get it to install SQL server? Any help is much appreciated, thank you!
Upvotes: 5
Views: 5208
Reputation: 481
Run below resolved for me
rpm -ivh https://repo.mysql.com//mysql57-community-release-el7-11.noarch.rpm
rpm -ivh https://repo.mysql.com//mysql57-community-release-el6-11.noarch.rpm
yum install mysql-server
Upvotes: 3
Reputation: 21
Check out this tutorial >> https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/install-LAMP.html
I think the package name might be incorrect as the one in the tutorial is mysql56-server
. You could also do a yum search mysql
as suggested above to find the appropriate package.
Upvotes: 2