Re: Mysql devel
- Date: Tue, 23 Feb 2016 13:32:04 +0100
- From: Reindl Harald <h.reindl@xxxxxxxxxxxxx>
- Subject: Re: Mysql devel
Am 23.02.2016 um 13:12 schrieb Larry Martell:
On Tue, Feb 23, 2016 at 7:07 AM, Larry Martell <larry.martell@xxxxxxxxx> wrote:On Tue, Feb 23, 2016 at 6:16 AM, Reindl Harald <h.reindl@xxxxxxxxxxxxx> wrote:Am 23.02.2016 um 04:47 schrieb Larry Martell:I am trying to install the mysql devel libs (so I can build MySQLdb). This is on RHEL 6. It's failing as shown below. Can anyone help with this?you are mixing remi and other reposI did this: # yum shell --enablerepo=remiremove php-mysql install php-mysqlnd runFollowed by this: yum install mysql-devel /usr/local/bin/pip2.7 install MySQL-python Now the MySQL server is down and will not come up. It fails with this: Fatal error: mysql.user table is damaged. Please run mysql_upgrade It was running 5.1 before and now it's running 5.7. But how can I run mysql_upgrade if I can't start the server?Actually it was running 5.5 before: Server version: 5.5.44 MySQL Community Server (GPL) by Remi
all your problems are coming from careless mix repos and allow updates without considering the result and read how to deal with 3rd party repos from the very beginning
downgrade and re-consider how you are doing upgrades 5.5 to 5.7 and skip 5.6 entirely is a bad idea make sure that you don't mix mysql-packages from different repos and RTFM https://wiki.centos.org/de/AdditionalResources/Repositories/Les RPM de Remi repository - (See http://rpms.famillecollet.com/) Remi Collet maintains latest version of MySQL and PHP (backports of fedora RPM). Suggest caution if using this repo due to replacement of core packages
Third Party RepositoriesWARNING: These repositories are not provided nor supported by CentOS. The CentOS project has no control over these sites. Many have their own mailing lists, IRC channels, issue trackers, etc. for support issues with their packages.
NOTE: If you are considering using a 3rd Party Repository, then you should seriously consider how to prevent unintended 'updates' from these side archives from over-writing some core part of CentOS. One approach is to only enable these archives from time to time, and generally leave them disabled. See: man yum
Another approach is to use the exclude= and includepkgs= options on a per sub-archive basis, in the matching .conf file found in /etc/yum.repos.d/ See: man yum.conf
The yum Priorities plug-in can prevent a 3rd party repository from replacing base packages, or prevent base/updates from replacing a 3rd party package.
Description: OpenPGP digital signature