php-mysql for MySQL-server (case sensitive) - mysql

I don't know how but it seems there are two different versions of mysql probably from different yum repositories :
yum list | grep mysql
MySQL-server.x86_64 5.5.9-1.linux2.6 installed
mysql-server.x86_64 5.1.47-1.2.amzn1 amzn
I need to install php-mysql which is available only for the version that is not installed (5.1.47-1.2.amzn1), if I run yum install php-mysql there is a conflict with the other MySQL-server (5.5.9-1.linux2.6)..
yum install php-mysql
.
.
.
Transaction Check Error:
file /usr/share/mysql/charsets/cp1251.xml from install of mysql-libs-5.1.47-1.2.amzn1.x86_64 conflicts with file from package MySQL-server-5.5.9-1.linux2.6.x86_64
As the current MySQL-server with uppercase letters is currently installed and used in production I can't uninstall it and install the other version wehre the php-mysql package is compatible.
How can I install php-mysql for the MySQL-server (5.5.9-1.linux2.6) ? why there are two versions of mysql-servers ?
Any help will be appreciated..

I just had a similar problem when trying to install geoip-devel (GeoIP-devel version 1.4.5 in repo extras, geoip-devel version 1.4.6 in repo rpmforge). Mine was solved by excluding the rpmforge:
yum install --disablerepo=rpmforge GeoIP-devel
I guess your problem is with several repos supplying different versions, maybe you can use yum downgrade (possibly with the --disablerepo option)?

Related

How could i download Mariabd 10.2 in Debian 9?

apt-get install mariadb-server installs 10.1 version. However i want the latest version. How could i do that? I have checked apt sources and they are allright.
If you want the latest of any package in Linux you have two options, either you change the repository from stable to unstable or you compile from source

How do I update version of Fish Terminal? (Ubuntu)

I am currently on 2.1.0 and would like to go to latest (2.5.0 currently). Is there a command to do this? Or do I need to uninstall the current version and install a new one? Is this done through apt-get?
Could not find this anywhere in documentation or elsewhere on the internet...
I tried downloading the latest .deb file from the fish download page, but trying to open this in Ubuntu software centre yields "Breaks existing package 'fish'"
The best way is to use the package archive provided by the fish project to replace the packages that the Ubuntu project ship (which are very old and contain security problems).
The following commands subscribe your system to the Personal Package Archive run by the fish developers, update the package list and finally upgrade or install fish:
sudo add-apt-repository ppa:fish-shell/release-3
sudo apt-get update
sudo apt-get install fish
As an added bonus, running apt-get upgrade after these steps will always make sure you have the newest-available version of fish.
Add the PPA for release-3, update, and install
sudo add-apt-repository ppa:fish-shell/release-3
sudo apt-get update
sudo apt-get install fish

I removed yum on f24. How do I easily reinstall it?

I removed yum on Fedora 24. How do I easily reinstall it?
I have tried reinstalling using rpm. First I cannot find the rpm previously used (dnf-yum-1.1.10-1.fc24.noarch) and the rpms I get a lot of dependencies and sub dependencies.
I removed yum because it was not working after I re-partitioned my OS using gparted
Fedora 24 does not need yum. You should use dnf.
In case you really need a yum, then install it with dnf:
sudo dnf install yum

Why can't I uninstall mysql-5.5 & install mysql-5.6 on Amazon Linux machine?

I'm on a 64-bit Amazon Linux machine.
I had previously installed mysql-server 5.5. (using sudo yum install)
However, I soon found out that my application requires MySql-serve 5.6.
So I uninstalled mysql-server 5.5. (using sudo yum remove mysql-server) and now I'm following these instruction to install mysql-server 5.6.
But I'm running into a problem.
when I try to do the second install, I get the following 2 errors:
file /usr/lib64/mysql/libmysqlclient.so.18 from install of mysql-community-libs-5.6.14-3.el6.x86_64 conflicts with file from package mysql55-libs-5.5.46-1.10.amzn1.x86_64
file /etc/my.cnf from install of mysql-community-server-5.6.14-3.el6.x86_64 conflicts with file from package mysql-config-5.5.46-1.10.amzn1.x86_64
Why on earth am I getting these two errors? How do I fix them?
I removed mysql-server-5.5, so why is it conflicting with 5.6?
I did ls on /etc/my.cnf and /usr/lib64/mysql/libmysqlclient.so.18 and the files don't even exist!! If the files don't exist how can they be conflicting with other files?? Who can help explain this?
PS, I tried #msknapp's explanation here: Can't install MySQL 5.6 by RPM, however I don't know what to do after step #1 to install the rpm. I think that step is left unstated.
mysql-server (of whatever version) depends on other packages ( in your case mysql-community-libs mysql-community-server)
When it is installed in the first place with the old version this stuff is installed. When you "uninstall" mysql-server these dependencies are NOT removed.
When you try and install the new version these still existing packages will conflict with the new package. It does not matter if the actual files in the package are there, it is the package and it's listing of what to expect that conflicts.
To resolve your problem figure out what the dependencies of mysql-server were and uninstall them before attemping the install.
This answer https://superuser.com/questions/294662/how-to-get-list-of-dependencies-of-non-installed-rpm-package may be of interest for working out what mysql-server depends on

mysql 5.5 on centos 6.4

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