Uninstall Share Lib In Linux - mysql

I have tried to install MYSQL 5.6.29 on Linux Centos and installed file "MySQL-shared-5.6.29-1.linux_glibc2.5.x86_64" but i found its wrong file which i have installed. Now when i am trying to install correct file "MySQL-shared-5.6.29-1.el6.x86_6" then getting below error.
/usr/share/doc/MySQL-shared-5.6.29/README from install of MySQL-shared-5.6.29-1.el6.x86_64 conflicts with file from package MySQL-shared-5.6.29-
1.linux_glibc2.5.x86_64
My installation was incomplete and only able to install 3 rpm packages. I run "yum remove mysql" but its un-install only one package please guide me to find & un-install MYSQL related packages.

issue fixed through these commands:
rpm -qa|grep -i SQL -- find installed rpm packages
rpm -e -- find installed package and then place the package name
rpm -i package_name.rpm -- to install packages
yum remove mysql-libs

Related

Not able to install mysql workbench on ubuntu 16.04

while installing MYSQL workbench from software center, the system shutdown due to a power cut.
After I powered it back up, when I try to install the workbench again, it does not install and when I try to install it from command line using
sudo apt-get install mysql-workbench
I get following error.
The following packages have unmet dependencies: mysql-workbench :
Depends: libgdal.so.1-1.11.3 Depends: libgdal1i (>= 1.8.0) but it is
not going to be installed E: Unable to correct problems, you have held
broken packages.
Please help to install it on ubuntu 16.04
I had the exact same problem. I was not able to install it using apt-get, but I had no problem doing so with the .deb file:
Go to mysql-workbench download site
Select Platform > Ubuntu Linux > Download
No thanks, just start my download.
Open the deb file downloaded
Click Install
I hope this works for you too.
https://dev.mysql.com/downloads/repo/apt/
Download apt repository
Select “No thanks, just start my download“
2)install sudo apt install ./mysql-apt-config_0.8.15-1_all.deb
3)During the installation, we will be prompted by dialog box,click ‘OK’ to continue MySQL Workbench installation.
4)update apt
sudo apt update
5)install workbench
sudo apt install mysql-workbench-community
6)To launch run mysql-workbench
list held packages : apt-mark showhold
then
get them out of held state: apt-mark unhold
then remove them. then try your main install again.
on Ubuntu 19
1)I had to preceding it on Ubuntu 19 also install manually a library libzip
https://ubuntu.pkgs.org/18.10/ubuntu-universe-amd64/libzip4_1.1.2-1.1_amd64.deb.html
2) then manually selecting on download page deb package for mysql workbench
https://dev.mysql.com/downloads/workbench/
then install deb packages via standard apt installer in Downloads dir
sudo apt install ./libzip4_1.1.2-1.1_amd64.deb
and downloaded workbench deb package
sudo apt install ./mysql-workbench-community_8.0.16-1ubuntu18.04_amd64.deb

PHPAdmin on Redhat 6.4

I'm try into install the latest PhpMyAdmin into the Redhat 6.4 and I can't get it working and getting dependencies error, I'm try install through YUM REMI and other file repo, all I can get it working is the old version 2.11 which is very old.
I manually downloaded the Phpadmin 4.xx. RPM and using Yum localinstall and still not working.
The box is running PHP 5.6.9 and MySQL Server 5.6.22-log
Anyone have any idea?
Usually it gets to work if we do the following as preliminary steps
Firstly clean your metadata: This cleans up any xml metadata that may have been cached from any enabled repository
$ sudo yum clean metadata
Then upgrade all of your system software to the latest version
$ sudo yum update
But, if you have installed PHP 5.6.9 from remi repository, then need to check the phpmyadmin version compatibility with php from remi repository. Do not downgrade php if there is a mismatch. In that case try this
yum --enablerepo=remi install phpmyadmin
If you get package not found
The EPEL repo contains the phpMyAdmin package we are looking for.
sudo yum install epel-release
Once EPEL is done try
sudo yum install phpmyadmin
For reference:
http://www.if-not-true-then-false.com/2012/install-phpmyadmin-on-fedora-centos-red-hat-rhel/
http://www.krizna.com/centos/how-install-phpmyadmin-centos-6/

Downgrade Mysql 5.5.9 to 5.1 on Ubuntu 14.04

After upgrading to Ubuntu 14.04 Mysql 5.5.9 is incompatible with some of my scripts. I need to re-install Mysql 5.1. I tried research online but no luck
When I do
apt-get install mysql-server-5.1 mysql-client-5.1
Package mysql-server-5.1 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
mysql-server-core-5.5:i386 mysql-server-5.5:i386 mysql-server-core-5.5
mysql-server-5.5
E: Package 'mysql-server-5.1' has no installation candidate
E: Package 'mysql-client-5.1' has no installation candidate
Tried to find multiverse source but no luck,
Anyone?
Uninstall existing mysql
sudo apt-get remove mysql-server
Download the MySQL APT repository config tool (as root)
wget http://dev.mysql.com/get/mysql-apt-config_0.3.5-1debian8_all.deb
Install the MySQL APT repository config tool
dpkg -i mysql-apt-config_0.3.5-1debian8_all.deb
Update APT
apt-get update
Install the server
apt-get install mysql-community-server
Thereby you can select the server you need and install

MySQL 5.5 install conflicting

I am trying to install MySQL 5.5 on my CentOS machine, but when running yum install I get the following:
file /usr/share/mysql/slovak/errmsg.sys from install of mysql-libs-5.5.27-1.el5.remi.x86_64 conflicts with file from package mysql51-libs-5.1.65-1.ius.el5.x86_64
file /usr/share/mysql/spanish/errmsg.sys from install of mysql-libs-5.5.27-1.el5.remi.x86_64 conflicts with file from package mysql51-libs-5.1.65-1.ius.el5.x86_64
file /usr/share/mysql/swedish/errmsg.sys from install of mysql-libs-5.5.27-1.el5.remi.x86_64 conflicts with file from package mysql51-libs-5.1.65-1.ius.el5.x86_64
file /usr/share/mysql/ukrainian/errmsg.sys from install of mysql-libs-5.5.27-1.el5.remi.x86_64 conflicts with file from package mysql51-libs-5.1.65-1.ius.el5.x86_64
It did have MySQL 5.1 installed, but I thought I had removed it, help much needed.
Just remove mysql51-libs-5.1.65-1.ius.el5.x86_64
rpm -qa | grep mysql51-libs
rpm -e <what you find>
Maybe there will be some dependencies, so remove them also before installing new version.
Never mix-up repos.Use official repos only to avaiod such situations.

linux mysql-server can't find mysql_config

I have a running (in production) mysql instance on my linux server (ubuntu-10.10) however I cannot find my mysql_config file.
command and output:
~$ locate mysql_config
~$
I've heard/read that I need the libmysqlclient-dev package installed to be able to use mysql_config but I don't want to break my current production instance. I want to make sure installing this dev package is not going to have adverse effects on my current mysql databases.
Furthermore, where can I find the source download for libmysqlclient-dev to install manually? In my current situation (behind corporate proxy) I am not permitted to use apt-get's.
UPDATE
this is stemming from attempting to install python-MySQLdb from source. the setup.py file is requiring the mysql_config path and continues to break when trying to use anything but that file.
The mysql_config executable is by default located in the bin directory of the MySQL server installation if you install it from precompiled binaries. But if you install it using apt-get it may not exist on your server.
Try:
sudo apt-get install libmysqlclient-dev
yum install mariadb-devel works for Centos 7 too, this puts the mysql_config into all the places that pip install mysqlclient requires/looks for it.
In Ubuntu 13.04 installation, it is at /usr/bin/mysql_config
Try /etc/my.cnf, that is the standard file for mysql config.
You can also do:
find / -name my.cnf -type f
On Fedora, install the mariadb-devel package, and you should have the binary.