After months of work in (slow) progress, I’m glad to announce that packages of MySQL 5.6.17 are now available for Debian 7.4 “Wheezy” on both amd64 and i386 architectures.
This is our first major release of the MySQL 5.6 branch, so be very careful when upgrading your boxes : backup your data first, keep a spare/ delayed MySQL slave… And be sure to know in details what’s new in MySQL 5.6 :
- A better Optimizer
- InnoDB great new features : online DDL, split kernel mutex, multi-threaded purge, separate flush thread
- New NoSQL-style memcached APIs
- Partitioning improvements for querying and managing huge tables
- Replication now supports multi-threaded slaves, GTID and checksums
- More data is available through the PERFORMANCE_SCHEMA.
- …
Of course, feedbacks are welcome, as usual.
By the way, sorry for that delay. Among other reasons, I had to deal with the Oracle/MariaDB/Percona - and now WebscaleSQL - dilemma. It’s still not concluded, since MariaDB is now well integrated in Debian Sid and that its 10.x has been declared as GA a few days ago. Stay tuned, some more announcement might be made in the next few weeks on the Dotdeb side.
Enjoy!
OK, I got it thanks.
I’m glad to hear you study MariaDB && WebscaleSQL.
The performance of WebscaleSQL seams to be really better than MariaDB. So why don’t we wait for the team of MariaDB include the perf optimization of WebscaleSQL ?
Bonjour,
Et merci.
Chez moi, la mise à jour a fonctionné, mais au redémarrage de mysql j’obtiens les suivantes : [ERROR] Function ‘innodb’ already exists [Warning] Couldn’t load plugin named ‘innodb’ with soname ‘ha_innodb.so’. [ERROR] Function ‘federated’ already exists [Warning] Couldn’t load plugin named ‘federated’ with soname ‘ha_federated.so’. [ERROR] Function ‘blackhole’ already exists [Warning] Couldn’t load plugin named ‘blackhole’ with soname ‘ha_blackhole.so’. [ERROR] Function ‘archive’ already exists [Warning] Couldn’t load plugin named ‘archive’ with soname ‘ha_archive.so’.
Avez-vous une idée ?
Merci beaucoup.
@Achim : maybe you can be more specific and give us some relevant lines of your MySQL log files to diagnose the problem.
If you still want to downgrade to 5.5, packages come from Debian. You can provide the version explicitely, eg. “apt-get install mysql-server-5.5 mysql-server-core-5.5”
Je me réponds :
“If a plugin is named both using a –plugin-load option and in the mysql.plugin table, the server starts but writes these messages to the error log: 100310 19:15:44 [ERROR] Function ‘plugin_name’ already exists 100310 19:15:44 [Warning] Couldn’t load plugin named ‘plugin_name’ with soname ‘plugin_object_file’.”
(https://dev.mysql.com/doc/refman/5.6/en/server-plugin-loading.html)
Désolé pour le dérangement.
After some research and having found the PHP Warning: mysql_connect(): Connection using old (pre-4.1.1) authentication protocol refused (client option ‘secure_auth’ enabled) in ‘…’ error, I was able to find some webpages with information, which are http://mysqlblog.fivefarmers.com/2012/05/30/why-your-pre-4-1-client-wont-like-mysql-5-6/ and http://www.cyberciti.biz/faq/mysql-change-user-password/
With this I could solve my old pre 4.1 passwort issues easily by changing the passwords.
With PHPMyAdmin, just go the the “Privileges” tab. Edit the user containing username and the host you want to use with. In the “Change Password” box below, you can choose whether using password or no. The best solution is to make new passwords with the new hash 4.1 length, eg. mysql> SET PASSWORD FOR user@localhost = OLD_PASSWORD(‘oldPasswd’); else choose “MySQL 4.0 Compatible” and “Go”.
Thank you dotdeb and Marki! :)
After upgrading, MySQL won’t start anymore. When trying to restart, I’v got: “[ ok ] Stopping MySQL database server: mysqld. [….] Starting MySQL database server: mysqldNo directory, logging in with HOME=/”
No idea why. I search through the log, but cannot find any solution. Is there somthing to do in order to fix it quickly?
I still get these error:
Starting MySQL database server: mysqldNo directory, logging in with HOME=/ [FAIL. . . . . . . . . . . . failed!
I’ve tried nyro sugestion but it didn’t work.
I ran debian 7.4 on KVM
please help?
Graca
After upgrading to MySQL 5.6 the following errors appear in the logs and the server does not come up:
hi, made an apt-get upgrade as usual. it upgraded to mysql 5.6 itself. perhaps as mentioned by someone other there shoud be two repos… one for 5.6 and one for 5.5 to avoid problems
after upgrading i have some problem:
After the update I was seeing a ‘fatal error’ from mysql_upgrade in the logs.
Traced this to mysql_upgrade not being able to login to the server. A line in /etc/mysql/debian-start has changed, now it says:
MYUPGRADE="/usr/bin/mysql_upgrade"
whereas the line before upgrade was
MYUPGRADE="/usr/bin/mysql_upgrade –defaults-extra-file=/etc/mysql/debian.cnf"
Changing the line back fixed the error.
Did something go wrong with my upgrade or is this a bug?
Please can you help? 2014-04-07 11:06:33 14475 [Note] Plugin ‘FEDERATED’ is disabled. 2014-04-07 11:06:33 14475 [ERROR] Function ‘innodb’ already exists 2014-04-07 11:06:33 14475 [Warning] Couldn’t load plugin named ‘innodb’ with soname ‘ha_innodb.so’. 2014-04-07 11:06:33 14475 [ERROR] Function ‘federated’ already exists 2014-04-07 11:06:33 14475 [Warning] Couldn’t load plugin named ‘federated’ with soname ‘ha_federated.so’. 2014-04-07 11:06:33 14475 [ERROR] Function ‘blackhole’ already exists 2014-04-07 11:06:33 14475 [Warning] Couldn’t load plugin named ‘blackhole’ with soname ‘ha_blackhole.so’. 2014-04-07 11:06:33 14475 [ERROR] Function ‘archive’ already exists 2014-04-07 11:06:33 14475 [Warning] Couldn’t load plugin named ‘archive’ with soname ‘ha_archive.so’. 2014-04-07 11:06:33 14475 [Note] InnoDB: Using atomics to ref count buffer pool pages
I do not have plugin-load line in /etc/mysql/my.cnf
Note also:
“log_slow_queries” needs to change to “slow_query_log” or mysqld won’t start - nor does it seem to log anything useful in syslog regarding this either.
To use log_slow_query, replace all instances of log_slow_query to this:
slow_query_log = 1 slow_query_log_file = /var/log/mysql/slow-queries.log
About the slow_query* directives, this typo has been fixed for months in the Dotdeb packages, but the typo is still present in the default MySQL packages from Debian. Please be careful when upgrading from them.
https://github.com/gplessis/dotdeb-mysql/blob/wheezy-mysql56/debian/additions/my.cnf
Hello,
I have recently upgraded to MySQL 5.6.17 and everything is running fine (apart from some problems with froxlor). However, I am always getting the following Message in my logs when I startup the Server:
Apr 8 19:58:13 mail /etc/mysql/debian-start[8939]: FATAL ERROR: Upgrade failed
I made a manual mysql_upgrade -uroot -p, which ran trough successfully - so I don’t know why MySQL is trying to run an Upgrade everytime?
@Kevin and others who are having these errors in the log file:
[ERROR] Function ‘innodb’ already exists [Warning] Couldn’t load plugin named ‘innodb’ with soname ‘ha_innodb.so’. etc.
Clean your
plugintable in yourmysqldatabase, e.g: with the following MySQL command:TRUNCATE
mysql.plugin;Then restart MySQL server and the errors in the log file will be gone.
@dotdeb-user and others who are having the “Too many open files” problem:
Add the following lines to your /etc/security/limits.conf file:
root soft nofile 32768 root hard nofile 65536
Save the file. Log out from your Linux server then log back in and then restart MySQL server.
For more info, see: https://wied.it/blog/increase-max-open-files-in-debian-squeeze-too-many-open-files-ulimit-n-limits-conf.html It applies to Debian Wheezy, too.
Yeah, but for me this part of the MySQL documentation applied (from your link): “server attempts to obtain as many as the system will permit”
On my Wheezy server the op.system permitted only 1024 files to be opened by any given user (including root, mysql, etc.) and I wanted to increase this op.system imposed limit, because: (also from the official docs you have linked:) the default value of open_files_limit (if otherwise not specified) is minimum 5000 which is more than 1024.
After having upgraded 2 debian Wheezy and 4 windows mysql5.5 to 5.6 servers I suggest the following procedure:
backup the 5.5 database
stop (shutdown) the server
change/add the following settings in ini file
replace the binaries (for Wheezy that means uninstall 5.5 and install 5.6)
delete the log_bin files (very important)
start the server
shut down the server
remove the setting: innodb_force_recovery=3 or set it to innodb_force_recovery=0
start the server
run mysql_upgrade
next start of the server should not show errors
Would id be possible to parse an /etc/default/mysql to slightly alter the mysql starting environment?
Zoltan gives us a good example of one of this possible alteration, for example by setting ulimit -n . This should be better to keep an global limit low (in limits.conf) and increase it especially for mysql, no?
Hello,
i read all your post and try many solution but my mysql doen’t want start :
this is my error file when i start
my my.cnf
thx if you can help me
about open file limits, I struggled a bit and seems like it need open_files_limit directive to be specified in my.cnf (this wasn’t the case with mysql5.5 in my case) adding open_files_limit = 16000
soleved the isue [Warning] Buffered warning: Changed limits: max_open_files: 1024 (requested 5000)
Hi Guillaume,
Today 2 of my servers reboot and both mysql couldn’t restart because of the following error :
mysqld: unknown option ‘–explicit_defaults_for_timestamp’
I deleted the line “explicit_defaults_for_timestamp” from my.cnf to soluve this problem. I don’t know why the error occurred only now.
I forgot to say that it was 2 clean install from mysql 5.6 directly, not an upgrade from mysql 5.5
I’m running Debian Wheezy will all updates
I also encountered the same issue regarding the startup with the following happening:
root@hydrogen:/server/log/sql# /etc/init.d/mysql start Starting MySQL database server: mysqldNo directory, logging in with HOME=/ . . . . . . . . . . . . . . failed!
Checking the logs i saw the following:
2014-04-26 01:37:41 6239 [Note] Plugin ‘FEDERATED’ is disabled. 2014-04-26 01:37:41 6239 [Note] Plugin ‘InnoDB’ is disabled. 2014-04-26 01:37:41 6239 [Note] Plugin ‘partition’ is disabled. 2014-04-26 01:37:41 6239 [ERROR] Unknown/unsupported storage engine: InnoDB 2014-04-26 01:37:41 6239 [ERROR] Aborting
Since I had InnoDB disabled specifically in the config as below:
skip-external-locking skip-name-resolve skip-host-cache skip-partition skip-symbolic-links skip-innodb
I simply had to comment out/remove the ‘skip-innodb’ in the configuration to have it up and running again.
TL:DR; If you’re trying to disable InnoDB in mysql-5.6 the service won’t go up. If you have no use for InnoDB then go ahead and dimension it down to not use memory for buffering datasets back and forth.
Sidenote: Thanks for your effort providing mysql-5.6, Guillaume.P! Much appreciated!
Hi
I found /root/.mysql_history having unwanted numbers http://bugs.mysql.com/bug.php?id=72108
On other place I found someone say: In order to solve this problem we need to configure mysql source with –without-readline parameter.
And btw I was using this new 5.6 on a Parellels VPS. Now after a very long uptime, the server was restarted and crashed, since the upgrade removed upstart and changed init to sysvinit. Please note this somewhere to people on VPS, to check having the latest Parallels versions running to support things like this.
I am still trying to get rid of blackholes.so etc error notes.
I got something strange. A record being deleted in a table but normally a trigger does NOT allow it. I can’t reproduce the bug. I don’t know if it’s my code, my setting, this build of mysql. I never append for 1 year.
Does anyone experience something similar ?
Debian 7.4 64bits Mysql 5.6 @dotdeb Innodb tables
Today apt-get upgrade wants to “downgrade” mysql :
The following packages will be upgraded: mysql-client-5.5 mysql-server-5.5 mysql-server-core-5.5
I’m already using 5.6 @dotdeb
Debian 7.4 64bits
Solved it. Apparently I had both of the installed. apt-get remove –purge mysql-client-5.5 mysql-server-5.5 mysql-server-core-5.5
did the trick for me.
You must explicitly ask what you want to install since the update of dpkg system:
apt-get install mysql-client-5.6 mysql-server-5.6 mysql-server-core-5.6
@Annoyed user : ok, could you please be more specific and could we have a useful feedback from you? First describe your environment (distribution, architecture, sources.list), provide your config files, check your log files for any relevant error, so that we can help you dealing with your LOTS of problems and get MySQL 5.6 work on your box.
Thanks in advance.
olala@box:# apt-get -V install mysql-server-5.6 Reading package lists… Done Building dependency tree
Reading state information… Done E: Unable to locate package mysql-server-5.6 E: Couldn’t find any package by regex ‘mysql-server-5.6’
I cannot install MySQL 5.6 help! :(
How I can disable unnecessary storage engines? I have already disable a few engines:
skip-innodb skip-blackhole skip-federated skip-archive
But for Memory and CSV engines when I try to add
skip-csvorskip-memory, the server won’t to start. I only need MyISAM and probably InnoDB in the future.i run coomand: mysqldump -q -u user -ppassword -h localhost gmdb | gzip -c > $BACKUP_MYSQL_DIR-gracemax.sql.gz
and i get massage “Warning: Using a password on the command line interface can be insecure.” how do disable it? i have the mysql - 5.6.17-1~dotdeb.1
Have you seen this?
http://mysqlrelease.com/2014/05/theyre-here-official-mysql-repos-for-debian-and-ubuntu/
I would like to learn Guillaume’s opinion.
@Kenn Ejima : last time I took a look at MySQL’s packages, it was actually one monolithic package that was not fully compatible with the Debian packaging policy. I have to take a further look before giving any technical opinion on these new packages, but Oracle collaborating with Debian/Ubuntu devs should bring some good things.
FYI, my plan is to publish MariaDB 10.0 on Dotdeb, along with MySQL 5.6, for Wheezy, with seamless migration, based on Debian’s unstable packaging schemes.
./mysql start [….] Starting MySQL database server: mysqldNo directory, logging in with HOME=/
And after that my KVM VPS si shuting down automaticaly, need to boot manual from VPS CP.
Guillaume Plessis,
Could you please create / provide Debian Wheezy packages for MySQL-NDB-Cluster_5.7.3.5 ?
Thanks
Hi, thanx for your great work, shouldn’t it be like that? file /etc/mysql/debian-start: … MYUPGRADE="/usr/bin/mysql_upgrade –defaults-extra-file=/etc/mysql/debian.cnf" …
without credentials mysql_upgrade is failing, so we see in log every mysql start: FATAL ERROR: Upgrade failed
Andreas reported it first, I have it in my log also - clean mysql 5.6 installation, not upgrade.
Hi Guys,
Wheezy install with mysql 5,6, having issues with the main Debian repos trying to downgrade to mysql 5.5. Anyway to specifically add only the mysql 5.6 repos without the core dotdeb:
deb http://packages.dotdeb.org wheezy all deb-src http://packages.dotdeb.org wheezy all
Sources.list deb http://ftp.de.debian.org/debian/ wheezy main contrib non-free deb-src http://ftp.de.debian.org/debian/ wheezy main contrib non-free
deb http://security.debian.org/ wheezy/updates main contrib non-free deb-src http://security.debian.org/ wheezy/updates main contrib non-free
wheezy-updates, previously known as ‘volatile’
deb http://ftp.de.debian.org/debian/ wheezy-updates main contrib non-free deb-src http://ftp.de.debian.org/debian/ wheezy-updates main contrib non-free
DotDeb
#deb http://packages.dotdeb.org wheezy all #deb-src http://packages.dotdeb.org wheezy all deb http://packages.dotdeb.org wheezy-php55 all deb-src http://packages.dotdeb.org wheezy-php55 all