Patching MySQL Server from version 5.6.14 to 5.6.21 - mysql

I would like to "update" a MySQL server from version 5.6.14 to the latest GA release 5.6.21. I have already reviewed the MySQL reference at http://dev.mysql.com/doc/refman/5.6/en/upgrading.html and Oracle's "How does Patching Work in MySQL?; How to Apply All the Latest Patches?; How to Find the Latest Patches (Doc ID 1589556.1)." But, these don't clearly explain the patching mechanism. The doc (id 1589556.1) instructs that "...to apply the latest patches to an existing installation, all that is required is to download and install the latest patch release." Well, will this not overwrite the existing server metadata and effectively make me loose the user, database, and privileges related info. in the existing server?
Please help with the exact patching steps or any link to a document with clearer instructions. Also, any gotchas, i.e., what do I need to watch out for?
Thank you.

https://dev.mysql.com/doc/refman/5.6/en/installing.html
Hi,
I did an upgrade from 5.6.14 to 5.6.22 recently on our dev environment. Please note this was on a Linux server
Backup database - I used MEB but MySQLDump or a cold backup is okay
Shutdown the database cleanly.
Upgrade the binaries (rpm -Uvh)
Start the database
I didn't need to run mysql_upgrade as the release has not changed.
Hope it helps.

I use yum update and its updated automatically into latest patchset.5.6.37.
So run "yum update" for centos or as per your linux distribution

Related

How to fix a broken MySQL installation?

Installing a PHP application that requires MySQL or MariaDB, I first installed MariaDB via 'apt install' from the MariaDB repos, but there were behaviours with the installation of the application that seemed to be caused by some kind of incompatibility. Calls to the DB were timing out, and although I could see it was creating the DB, it was impossible to set the application up in its setup routine.
So I used apt remove to get rid of MariaDB. I saw the application had a *.deb installer for all requirements (wish I'd seen this sooner!) and, after removing PHP and Nginx, I attempted to install it the normal way. Unfortunately, the MySQL portion of the installation failed with:
Automatic maintenance of MySQL Server daemon disabled.
Packaging maintainer scripts detected a case that it does not know how to handle and cannot continue configuring MySQL. Automatic management of your MySQL Installation has been disabled to allow other packaging tasks to complete. For more details, see /etc/mysql/FROZEN
Unfortunately, /etc/mysql/FROZEN is a symlink to a non-existent file explaining downgrading. I can't run the uninstaller of the overall package or repair the installation with sudo --fix-broken install because the installer requires a MySQL password I can't provide it.
How can I fix my borked MySQL installation? If I could just get to a place to have MySQL run properly, understanding what left-overs perhaps from the MariaDB installation that I need to delete manually before trying to repair it, that would be helpful. FYI, the version of MariaDB was 10.3, and the version of MySQL the application package was installing was 5.7.
Any suggestions appreciated.

Can I safely remove mariadb from Centos Linux?

I just did a clean install of CentOS Linux. The first thing I did after installing CentOS was to download MySQL and try to install the -server rpm file. But the installation fails with a lot of messages stating conflicts with MariaDB packages which seem to be redundant to those in MySQL. I want to use MySQL as my database.
Are there any reasons why I should not just delete mariadb, so that the conflicts can be resolved? If mariadb performs some important functions in CentOS, I do not want to end up having my system crash.
You could use MariaDB as mysql version 5.5 for it is just another MYSQL branch...
In Centos 7, it is a alternative project of oracle mysql. It contains all mysql functions and optimize structures, data processing, Algorithm etc..
you could even login the server with a "mysql" command.
you don't need to pay attentions on the name, it is no problem to your former mysql projects.
ps:
I don't think that a linux system will have a "clean", "pure" os environment. Linux is a free and open source system which means you could install and remove every thing with no problem.
To have MySQL database functionality you can install either the MySQL packages or the MariaDB packages. MariaDB is a fork originating from the same MySQL code base. For compatibility see https://mariadb.com/kb/en/mariadb/mariadb-vs-mysql-compatibility/
Yes, you can remove MariaDB packages and replace them by MySQL packages.

phpMyAdmin - Error You should upgrade to MySQL 5.5.0 or later

I installed phpMyAdmin-4.2.9.1-english on a Centos 6.5 platform.
2.6.32-431.23.3.el6.x86_64 #1 SMP Thu Jul 31 17:20:51 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
When I login I get the following screen:
phpMyAdmin - Error
You should upgrade to MySQL 5.5.0 or later.
I am using Server version: 5.1.73
What should I do?
I went to /usr/share/phpMyAdmin/libraries/common.inc.php and
comment out this lines:
#if (PMA_MYSQL_INT_VERSION < 50500) {
# PMA_fatalError(
# __('You should upgrade to %s %s or later.'),
# array('MySQL', '5.5.0')
# );
#}
and now I can admin my mysql .
UPDATE :
http://docs.phpmyadmin.net/en/latest/faq.html#faq1-17 but doesn't explain why
why :
https://sourceforge.net/p/phpmyadmin/bugs/4437/
https://github.com/phpmyadmin/phpmyadmin/commit/9112d7c9303b51b7e156cc98fa79ab8824b50e30
That particular version of phpMyAdmin is designed for more modern MySQL versions. To resolve the problem, you can either upgrade your MySQL installation or downgrade your phpMyAdmin. Upgrading your MySQL is probably going to involve upgrading to CentOS 7, so you probably aren't ready to do that. Fortunately, the phpMyAdmin team currently continues to support the 4.0.x branch, which requires only MySQL 5 or newer and PHP 5.2 or newer. So you can download 4.0.10.4 (or whatever the current 4.0.x release is) from http://www.phpmyadmin.net/home_page/downloads.php (where you can also see the listed requirements and anticipated end of life dates).
If you want to use PHPMyAdmin then recommend to upgrade your MySQL version to the latest [it is very important for security reasons]. For that, just follow few simple steps:
. Export all your databases and take backup on your local system.
- Upgrade your MySQL version to the latest one..
- Import all your database again from PHPMyAdmin panel.
Complete tutorials for export/import database from PHPMyAdmin...
You should not get much problem except password problem for already created database users. Just reset the password to fix it.
Use the instructions here to set up mysql repo and update your mysql to the latest version:
http://dev.mysql.com/doc/mysql-repo-excerpt/5.6/en/updating-yum-repo.html
It's better than hacking phpmyadmin down or using an old mysql version.
I did the upgrade, and everything goes to hell, I recommend to totally remove and do a clean mysql install from stratch in order to avoid headaches. Any way for a test environment you may use the hack answer commenting the lines in the "/usr/share/phpMyAdmin/libraries/common.inc.php" file or before install mysql, download and install the mysql-repo ad from there proceed to the PMA. Good luck.
Was getting this error only for one user on my cpanel hosting server.
I changed the max_questions: max_updates: max_connections: max_user_connections: values for the user facing the issue from "1" to "0"
Post this phpadmin started working.
You're using 5.1 but you should be using > 5.5. You'll need to upgrade or use a different tool like MySql workbench

MySQL upgrade from 5.0 to 5.6 on Linux

I need to upgrade mysql 5.0 to mysql 5.6 on Linux Server . What are the commands or what are the steps should I follow . I am new to mySQL and Linux. I have gone through the steps to follow but I could not get any complete idea like how to get the software copied to Linux and what are the mysql commands on Linux to upgrade the existing mysql.
Check the Official Documentation on MySql for the instructions to Upgrade your MySql server.
As #Michael said, It heavily depends on your Linux distro. Generally you can upgrade using Yum Repository/Apt Repository via Terminal. You may refer to the documentation for more information.

Where can I find MySql 4.0.30 for windows?

I need to adapt our testing server to our production one that is stored on Aruba.
Aruba use MySql 4.0.30 but I can't find them nowhere!
Anybody know where can I find it ? or anybody has the installer stored anywhere?
Davide
According to http://lists.mysql.com/mysql/210800 (an email from a MySQL employee) this is a non-public release for customers who are too inflexible to upgrade. It says you can pay for "extended support" to get it.
Here for you source: http://mirror.provenscaling.com/mysql/community/source/4.0/mysql-4.0.30.tar.gz
Binaries only there for 4.1: http://mirror.provenscaling.com/mysql/community/binaries/4.1/
MySQL does not require much installation steps like most windows software.
Just copy the mysql dir and the mysql data dir from the production environment to your local machine and start mysqld.exe (does not need to be run as a service) from the bin directory with:
mysqld.exe --defaults-file="C:\path\to\my.ini" MySQL
If it does not start, you most likely tweak some path entries in your my.ini.
Or you can install the latest 4.x Server you find and replace the binaries and data files with the ones you get from production. That should totally do it.