Solved

Not able  install MySQL on SentOS

Posted on 2013-10-25
9
577 Views
Last Modified: 2013-10-26
Hello ,
Trying to install MySql on SentOS 6.
After running this commands:yum install mysql mysql - server

yum install mysql mysql - server
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.versaweb.com
 * extras: mirror.san.fastserv.com
 * updates: mirrors.kernel.org
base                                                     | 3.7 kB     00:00
extras                                                   | 3.4 kB     00:00
r1soft                                                   |  951 B     00:00
updates                                                  | 3.4 kB     00:00
Setting up Install Process
No package mysql available.
No package mysql available.
No package server available.
Nothing to do
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.versaweb.com
 * extras: mirror.san.fastserv.com
 * updates: centos.mirror.freedomvoice.com
Setting up Install Process
No package mysql available.
No package mysql available.
No package server available.
Nothing to do


Can you guys help? Thanks!
0
Comment
Question by:Razor74
9 Comments
 
LVL 88

Expert Comment

by:rindi
ID: 39599776
Try replacing "MySQL" with "mariadb". On my Fedora system MySQL has been replaced by mariadb which is a community branch of MySQL, and as Fedora is what Redhat and CentOS are based on I guess it'll be the same there.

yum install mariadb mariadb-server
0
 

Author Comment

by:Razor74
ID: 39599781
Same thing please see bellow:
 
yum install mariadb mariadb-server

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.versaweb.com
 * extras: mirror.san.fastserv.com
 * updates: centos.mirror.freedomvoice.com
Setting up Install Process
No package mariadb available.
No package mariadb-server available.
Error: Nothing to do
0
 
LVL 88

Expert Comment

by:rindi
ID: 39599792
Then make sure your server has an internet connection, and maybe run a yum update first, with a reboot, and then try installing your db server again.
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 

Author Comment

by:Razor74
ID: 39599795
It does have connection I am connect to it. This is VPS server.
When running yum update getting same thing.
0
 
LVL 23

Accepted Solution

by:
Mysidia earned 500 total points
ID: 39599814
yum install mysql mysql-server
(not "mysql - server")  Don't type a space in the  mysql-server  package name.

Also make sure the "-"  you use is an ASCII  minus sign,  not a  Unicode Dash symbol, or extended ASCII dash symbol   (In other words:     if  gathering the package name from documentation: type it out ---  attempting to copy and paste    something autocorrected by  MS Word  or a Web browser,  may sometimes lead to bad results)


If it still doesn't work, try:
1)
  yum clean metadata
  yum clean expire-cache

2)
  yum install mysql-server
   yum --enablerepo=*base*  install  mysql-server

If it still doesn't work;
then  I think you've been supplied a VPS with a   (messed up)  non-default Yum configuration   that  has had the CentOS6  base repositories    removed,  or "excluded".


It might be time to contact your hosting provider's support about that,   to get help restoring the  normal  standard  CentOS6   Yum configuration  that you would have gotten out of the box,   if  the VPS  hadn't been provisioned with an  unusual Yum config......


Consider adding a MariaDB repository by hand   as an alternative


cat >> /etc/yum.repos.d/MariaDB.repo   <<END
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/5.5/centos6-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
END


yum install mariadb-server
0
 
LVL 88

Expert Comment

by:rindi
ID: 39599828
What "same thing" do you get when running yum update?
0
 
LVL 1

Expert Comment

by:ossec
ID: 39602303
su -c 'yum install mysql mysql-server'
0
 
LVL 34

Expert Comment

by:Seth Simmons
ID: 39603344
what is in the /etc/yum.repo.d folder?
if there is a CentOS-Base.repo file can you post it?

if they used a customized the image i'm thinking they made some changes to the configuration; perhaps added exclusions so that certain packages can't be installed that way.  especially so after seeing r1soft in the repo list yum output which isn't standard as they probably use r1soft agent

@mysidia - if the default base repository was not enabled, it would have said "nothing to do" coming from the updates/epel/extras and wouldn't have said "no package x available".  base is shown in the output so it is obviously enabled and being used

@ossec - if the user wasn't running with sudo or directly as root he wouldn't have got as far as he did
0
 

Author Closing Comment

by:Razor74
ID: 39603358
The problem on the provider side. They restricting many things. Thank you for the comments. Will cancel service and find some one else.
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Guacamole cut and paste issue 3 95
SonarQube on Linux vs Windows 3 52
windows 7 starter missing password 21 89
how to configure linux OS using Ubuntu 7 58
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question