I have MySQL 5.6 installed on cent os. I am trying to update it to 5.7, but yum packages contain only mysql57-community-dmr version, not mysql57-community, seems like my list of packages is outdated, is there any way to update it?
First, check that you have the MySQL repo enabled:
yum repolist enabled | grep "mysql.*-community.*"
Then do this:
yum clean all
and then re-check for updates using yum.
Related
I'm trying to install CloudStack managment on RHEL 7.4 Server by following:
http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/4.11/management-server/index.html
Issue 1:
/etc/yum.repos.d/cloudstack.repo
The variable $releasever is translated to 7Server which results in url
baseurl=http://cloudstack.apt-get.eu/centos/$releasever/4.11/
Is translated to:
http://cloudstack.apt-get.eu/centos/7Server/4.11/
Which does not exists.
I had to modified it to:
http://cloudstack.apt-get.eu/centos/7/4.11/
There is also
http://cloudstack.apt-get.eu/rhel/7/4.11/
I don’t know which of the two is required.
Issue 2:
When doing:
sudo yum install cloudstack-management
Error: Package: cloudstack-management-4.11.0.0-1.el7.centos.x86_64 (cloudstack)
Requires: apache-commons-daemon-jsvc
I was not able to install this missing package.
Issue 3:
sudo yum install mysql-server
results in:
No package mysql-server available.
I understand that RHEL 7.4 comes with MariaDB and not MySql. I don’t have instructions on how to configure the MariaDB for CloudStack.
Any help will be appreciated.
As you are using redhat, you need to use below repo:
http://cloudstack.apt-get.eu/rhel/7/4.11/
To get apache-commons-daemon-jsvc, you need to enable base repo as this package is provided by redhat.
You can install mariaDB, instead of mysql and then follow exact steps from documentation.
Only difference will be while restarting/starting/enabling service use mariadb instead of mysql.
I have a requirement for MySQL 5.5, and the box is a CentOS 6.4 64-bit VM.
MySQL 5.1.69 is installed, and won't let me install any of the RPMs from the 5.5 RPMs..
MySQL-client-5.5.32-1.el6.x86_64.rpm
MySQL-devel-5.5.32-1.el6.x86_64.rpm
MySQL-embedded-5.5.32-1.el6.x86_64.rpm
MySQL-server-5.5.32-1.el6.x86_64.rpm
MySQL-shared-5.5.32-1.el6.x86_64.rpm
MySQL-shared-compat-5.5.32-1.el6.x86_64.rpm
MySQL-test-5.5.32-1.el6.x86_64.rpm
So I run yum -y remove mysql and then try to install the newer version. I first of all run
rpm -ivh MySQL-shared-5.5.32-1.el6.x86_64.rpm
rpm -ivh MySQL-shared-compat-5.5.32-1.el6.x86_64.rpm
So far so good. I then try to install the server.
rpm -ivh MySQL-server-5.5.32-1.el6.x86_64.rpm
And I get this..
file /usr/share/mysql/romanian/errmsg.sys from install of MySQL-server-5.5.32-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.69-1.el6_4.x86_64
... and so on. If I google some of those errors, I get this page from StackOverflow..
Installing mysql-libs on server with MySQL-Server5.5
.. but if I look at the advice, it says to install the MySQL-shared-compat-5.5.32-2.el6.x86_64.rpm. But it's already installed. :(
Any advice would be welcome. Thank you.
One way is to install all the RPMs at the same time with yum install MySQL*.rpm, which ideally should take care of all package dependencies and upgrades.
You can also get around this problem by using the --replacefiles option to RPM:
rpm -ivh --replacefiles MySQL-server-5.5.32-1.el6.x86_64.rpm
That uses the error message language files from the server package to overwrite those in the 5.1 version that comes with CentOS.
Had this issue with webtatic repository.
Using remi, epel and rpmforge repository saved me the trouble.
Here is the link I referred :
Cent OS 6.4, Php 5.4, Mysql 5.5 - HowTo
I just installed Centos 6.4, and installed MySQL using the version that came with the Centos distribution. To my dismay, it is MySQL 5.1.69 versus the current 5.6.12. As stated on http://dev.mysql.com/doc/refman/5.5/en/linux-installation-native.html, "the MySQL version will often be some way behind the currently available release", but I didn't expect that long.
[root#centosBox ~]# rpm -qa | grep mysql
mysql-5.1.69-1.el6_4.x86_64
mysql-devel-5.1.69-1.el6_4.x86_64
mysql-server-5.1.69-1.el6_4.x86_64
mysql-libs-5.1.69-1.el6_4.x86_64
[root#centosBox ~]# whereis mysql
mysql: /usr/bin/mysql /usr/lib64/mysql /usr/include/mysql /usr/share/mysql /usr/share/man/man1/mysql.1.gz
[root#centosBox ~]#
An alternative is to install by RPM packages which is the "recommended way to install MySQL" per http://dev.mysql.com/doc/refman/5.5/en/linux-installation-rpm.html. I have done so and it wasn't overly complicated, however, I am concerned as I've often been told that I should always install by yum when available. Towards the very end of the documentation, it does describe doing so extremely briefly using yum, however, it is so brief that I question whether it is the way to go.
So.... What is the best way for a not guru Linux user to install/upgrade MySQL on a Centos machine?
Just this week (2013-10-28), MySQL announced official yum repositories for MySQL Community Edition. The packages are intended for use with RHEL-compatible Linux (e.g. CentOS).
All the details including how to set up the yum repo on your system, can be found from the announcement:
http://insidemysql.com/announcing-new-yum-repositories-for-mysql/
A bit off-topic but there we go.
It is recommended to install from the repositories because you can later update your software to a newer version with a simple yum upgrade. The repository takes care of that for you, as well as any dependencies the software may entertain with other libraries.
RPM Packages installed manually (even with yum, which then only acts as an installer) will have to be managed manually as well.
Since the MySQL RPM package shows no dependencies (as far as I can tell from the manual), you are safe from this side.
And to answer your question: the best method is to stick with the versions from the repository. If you need a newer version, then you took the right path.
I am no guru myself but I was happy with the result of the RPM method you mentioned since other times I have seen problems with mysql-libs being a dependency for other packages.
(depending on the 5.6 version you want and cpu)
mkdir MySQL
cd MySQL
wget http://dev.mysql.com/get/Downloads/MySQL-5.6/MySQL-5.6.16-1.el6.x86_64.rpm-bundle.tar
tar -xvf MySQL-5.6.16-1.el6.x86_64.rpm-bundle.tar
yum install MySQL*rpm
installs them in the correct order and removes mysql-libs in one step without conflicts.
http://dev.mysql.com/doc/refman/5.6/en/linux-installation-rpm.html
It doesn't surprise me that MySQL is a bit behind. Why would Oracle make it easy for you to not use pay-for Oracle? </rant>
Anyway, you can get the awkwardly named, but otherwise identical MariaDB to run easily by adding a new YUM repository.
You can install MySQL 5.5 (mysql55-server.x86_64) from IUS repository (currently version 5.5.34 available)
When running the transaction check to install mysql i'm getting:
Processing Conflict: mysql55-5.5.29-1.w6.x86_64 conflicts mysql < 5.5
I guess this means i'm attempting to install a package called mysql55-5.5.29-1.w6.x86_64 on to a system with mysql already installed but somehow there is a conflict?
yum says that mysql isn't installed so it was installed without using the repositories. In that case how does yum know there is confict?
it would be good to better under what 'confict' means.
There are many online yum repo available and all are free opensource contribute. So source packages are compiled with different options in each repo. So when we add 2 or more yum repo at a time, it may happen that 2 or more packages are of same version are selected and we get a conflict error.
In your case you added some repo which is providing mysql 5.5 which is already available with some other name in some other repo or already installed but new mysql package is selected by yum for any other package as dependency. Try removing one of the repo or try installing it as yum install mysql-5.5*
You can try this : yum list | grep mysql. It will list mysql in different packages, then you can make a decision to remove one of them and install mysql again.
I am trying to install a software which required MySQL-server, MySQL-client installed on the server so now I want to install MySQL-server and MySQL-client using rpm files "MySQL-server-5.5.17-1.rhel5.x86_64.rpm" and "MySQL-client-5.5.17-1.rhel5.x86_64.rpm".
I have installed MySQL-client but when I try to run mysql-server
*rpm -i MySQL-server-5.5.17-1.rhel5.x86_64.rpm*
it's showing error:
*error: Failed dependencies:
MySQL conflict with mysql-5.0.77-4.el5_6.6.x86_64
MySQL conflict with mysql-5.0.77-4.el5_6.6.i386
MySQL conflict with mysql-server-5.0.77-4.el5_6.6.x86_64*
So how can i solve this problem?
the error given by you *error: Failed dependencies:
MySQL conflict with mysql-5.0.77-4.el5_6.6.x86_64
MySQL conflict with mysql-5.0.77-4.el5_6.6.i386
MySQL conflict with mysql-server-5.0.77-4.el5_6.6.x86_64*
It clear show that the machine you are going to install mysql 5.5 rpm have mysql 5.0.77 installed .
to resolve this problem .
1. you take backup of datadir and my.cnf (if you are using mysql 5.0 db server earlier).
2. remove all mysql 5.0 server packages , to remove these package you should knew what are the packages already installed on machine
to view all mysql package already installed use rpm -qa | grep -i "mysql*" this command show what package is already installed on machine
now you have to remove all package which name shows in above command.
to remove a package/rpm use rpm -e mysql-5.0.** if show error then use
rpm -e --nodeps mysql-5.0.**
we have to remove all packages one by one by using rpm -e .
after successful remove all older version of mysql , now start installation of mysql-5.5*** packages by using rpm -ivh mysql-5.5***.rpm.
First question - is the version of MySQL already installed actually in use or was it simply there as a result of a fresh CentOS install? If the former, try upgrading rather than installing. If the latter, uninstall the old version (possibly using the --no-deps option on rpm) and then install the newer version
Next, are you trying to replace MySQL or install another version alongside it?
If the former, again try upgrading rather than installing. If that's not possible, you're going to have to remove the older version and then install the new version
If the latter, and if it is possible, look at the --prefix and --relocate options in RPM.as they may help.
If you do to mange to get it installed side by side with an older, you'll have fun and games ensuring that the relevant versions are pointing to the correct libraries and that you don't get any corruption between them. Also, you will need to run them so that they listen on separate ports with separate database folders, PID and socket files etc.
Whatever you need to do, do it out of business hours with as many backups as you can do