Solved

Not able  install MySQL on SentOS

Posted on 2013-10-25
9
549 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 87

Expert Comment

by:rindi
Comment Utility
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
Comment Utility
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 87

Expert Comment

by:rindi
Comment Utility
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
 

Author Comment

by:Razor74
Comment Utility
It does have connection I am connect to it. This is VPS server.
When running yum update getting same thing.
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 23

Accepted Solution

by:
Mysidia earned 500 total points
Comment Utility
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 87

Expert Comment

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

Expert Comment

by:ossec
Comment Utility
su -c 'yum install mysql mysql-server'
0
 
LVL 34

Expert Comment

by:Seth Simmons
Comment Utility
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
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

743 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now