{"id":2914,"date":"2014-04-22T18:56:02","date_gmt":"2014-04-22T23:56:02","guid":{"rendered":"http:\/\/www.bytebot.net\/blog\/?p=2914"},"modified":"2014-04-22T18:56:02","modified_gmt":"2014-04-22T23:56:02","slug":"ubuntu-14-04-some-mysql-ecosystem-notes","status":"publish","type":"post","link":"https:\/\/www.bytebot.net\/blog\/archives\/2014\/04\/22\/ubuntu-14-04-some-mysql-ecosystem-notes","title":{"rendered":"Ubuntu 14.04 &#8211; some MySQL ecosystem notes"},"content":{"rendered":"<p>Following my <a href=\"https:\/\/www.bytebot.net\/blog\/archives\/2014\/04\/18\/congratulations-ubuntu-for-the-wide-choice\">previous post<\/a> on the launch, I just rolled Ubuntu 14.04 LTS on an Amazon EC2 t1.micro instance (not something you expect to run a database server on, for sure &#8211; 1 vCPU, 0.613GiB RAM). If you do an <tt>apt-cache search mysql<\/tt> you get 435 return result sets with the default configuration (trusty: main &amp; universe).<\/p>\n<p>If you do <tt>apt-get install mysql-server<\/tt>, you get MySQL 5.5. You enter the password of choice, and before you know it, MySQL is installed (a <tt>SELECT VERSION()<\/tt> will return\u00a0<tt>5.5.35-1ubuntu1<\/tt>).<\/p>\n<p>Next you decide to install <a href=\"http:\/\/mariadb.org\/\">MariaDB<\/a>. I run an <tt>apt-get install mariadb-server<\/tt>. It pulls in <tt>libjemalloc<\/tt> (for TokuDB) and I expect future releases to ship this engine by default. You enter the password, and you get a new message (as pictured).<\/p>\n<p><center><a href=\"https:\/\/www.flickr.com\/photos\/byte\/13996092383\" title=\"MariaDB Ubuntu 14.04 LTS by Colin Charles, on Flickr\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/farm8.staticflickr.com\/7059\/13996092383_30e4bbca2d_n.jpg?resize=320%2C141&#038;ssl=1\" width=\"320\" height=\"141\" alt=\"MariaDB Ubuntu 14.04 LTS\"\/><\/a><\/center>\u00a0<\/p>\n<p>I verify my test database that I created exists. It does. A <tt>SELECT VERSION()<\/tt> returns\u00a0<tt>5.5.36-MariaDB-1<\/tt>. The <tt>innodb_version<\/tt> returns\u00a0<tt>5.5.36-MariaDB-33.0<\/tt>.<\/p>\n<p>I\u2019m curious about MySQL 5.6 now. So I run <tt>apt-get install mysql-server-5.6<\/tt>. Not so straightforward.\u00a0<\/p>\n<pre>start: Job failed to start\ninvoke-rc.d: initscript mysql, action \"start\" failed.\ndpkg: error processing package mysql-server-5.6 (--configure):\n subprocess installed post-installation script returned error exit status 1\nSetting up mysql-common-5.6 (5.6.16-1~exp1) ...\nProcessing triggers for libc-bin (2.19-0ubuntu6) ...\nErrors were encountered while processing:\n mysql-server-5.6\nE: Sub-process \/usr\/bin\/dpkg returned an error code (1)\n<\/pre>\n<p>Looks like MySQL 5.6 is more memory hungry\u2026 I edited <tt>\/etc\/mysql\/my.cnf<\/tt> to ensure that i<tt>nnodb_buffer_pool_size = 64M<\/tt> (I increased this to 128M and it worked too) was set (there was nothing in the default config) and re-ran <tt>apt-get install mysql-server-5.6<\/tt> and it started. My test database was still around ;-)<\/p>\n<p>I wanted to make sure that MySQL 5.6 isn\u2019t more memory hungry just on that instance so I created yet another clean t1.micro instance and did an <tt>apt-get install mysql-server-5.6<\/tt>. Same error. Reported <a href=\"https:\/\/bugs.launchpad.net\/ubuntu\/+source\/mysql-5.6\/+bug\/1311387\">lp#1311387<\/a>.<\/p>\n<p>Nothing to report in particular about Percona &#8211; 5.5.34 Percona XtraDB Cluster (GPL), Release 31.1 (Ubuntu), wsrep_25.9.rXXXX. <strong>One thing is for sure &#8211; if you&#8217;re playing around with the ecosystem, installs and upgrades aren&#8217;t exactly straightforward.<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Following my previous post on the launch, I just rolled Ubuntu 14.04 LTS on an Amazon EC2 t1.micro instance (not something you expect to run a database server on, for sure &#8211; 1 vCPU, 0.613GiB RAM). If you do an apt-cache search mysql you get 435 return result sets with the default configuration (trusty: main [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1064,23],"tags":[1052,1775,1376,15],"class_list":["post-2914","post","type-post","status-publish","format-standard","hentry","category-mariadb-databases","category-mysql","tag-mariadb","tag-mysql","tag-percona-server","tag-ubuntu"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/p4vJD-L0","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts\/2914","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/comments?post=2914"}],"version-history":[{"count":1,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts\/2914\/revisions"}],"predecessor-version":[{"id":2915,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts\/2914\/revisions\/2915"}],"wp:attachment":[{"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/media?parent=2914"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/categories?post=2914"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/tags?post=2914"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}