{"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":"http:\/\/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=\"http:\/\/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 decoding=\"async\" loading=\"lazy\" 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\" data-recalc-dims=\"1\"\/><\/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<div class=\"sharedaddy sd-sharing-enabled\"><div class=\"robots-nocontent sd-block sd-social sd-social-icon-text sd-sharing\"><h3 class=\"sd-title\">Share this:<\/h3><div class=\"sd-content\"><ul><li class=\"share-email\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"\" class=\"share-email sd-button share-icon\" href=\"mailto:?subject=%5BShared%20Post%5D%20Ubuntu%2014.04%20-%20some%20MySQL%20ecosystem%20notes&body=http%3A%2F%2Fwww.bytebot.net%2Fblog%2Farchives%2F2014%2F04%2F22%2Fubuntu-14-04-some-mysql-ecosystem-notes&share=email\" target=\"_blank\" title=\"Click to email a link to a friend\" data-email-share-error-title=\"Do you have email set up?\" data-email-share-error-text=\"If you&#039;re having problems sharing via email, you might not have email set up for your browser. You may need to create a new email yourself.\" data-email-share-nonce=\"d1a3d94be8\" data-email-share-track-url=\"http:\/\/www.bytebot.net\/blog\/archives\/2014\/04\/22\/ubuntu-14-04-some-mysql-ecosystem-notes?share=email\"><span>Email<\/span><\/a><\/li><li class=\"share-facebook\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-facebook-2914\" class=\"share-facebook sd-button share-icon\" href=\"http:\/\/www.bytebot.net\/blog\/archives\/2014\/04\/22\/ubuntu-14-04-some-mysql-ecosystem-notes?share=facebook\" target=\"_blank\" title=\"Click to share on Facebook\" ><span>Facebook<\/span><\/a><\/li><li class=\"share-linkedin\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-linkedin-2914\" class=\"share-linkedin sd-button share-icon\" href=\"http:\/\/www.bytebot.net\/blog\/archives\/2014\/04\/22\/ubuntu-14-04-some-mysql-ecosystem-notes?share=linkedin\" target=\"_blank\" title=\"Click to share on LinkedIn\" ><span>LinkedIn<\/span><\/a><\/li><li class=\"share-twitter\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-twitter-2914\" class=\"share-twitter sd-button share-icon\" href=\"http:\/\/www.bytebot.net\/blog\/archives\/2014\/04\/22\/ubuntu-14-04-some-mysql-ecosystem-notes?share=twitter\" target=\"_blank\" title=\"Click to share on Twitter\" ><span>Twitter<\/span><\/a><\/li><li class=\"share-end\"><\/li><\/ul><\/div><\/div><\/div>","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<div class=\"sharedaddy sd-sharing-enabled\"><div class=\"robots-nocontent sd-block sd-social sd-social-icon-text sd-sharing\"><h3 class=\"sd-title\">Share this:<\/h3><div class=\"sd-content\"><ul><li class=\"share-email\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"\" class=\"share-email sd-button share-icon\" href=\"mailto:?subject=%5BShared%20Post%5D%20Ubuntu%2014.04%20-%20some%20MySQL%20ecosystem%20notes&body=http%3A%2F%2Fwww.bytebot.net%2Fblog%2Farchives%2F2014%2F04%2F22%2Fubuntu-14-04-some-mysql-ecosystem-notes&share=email\" target=\"_blank\" title=\"Click to email a link to a friend\" data-email-share-error-title=\"Do you have email set up?\" data-email-share-error-text=\"If you&#039;re having problems sharing via email, you might not have email set up for your browser. You may need to create a new email yourself.\" data-email-share-nonce=\"d1a3d94be8\" data-email-share-track-url=\"http:\/\/www.bytebot.net\/blog\/archives\/2014\/04\/22\/ubuntu-14-04-some-mysql-ecosystem-notes?share=email\"><span>Email<\/span><\/a><\/li><li class=\"share-facebook\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-facebook-2914\" class=\"share-facebook sd-button share-icon\" href=\"http:\/\/www.bytebot.net\/blog\/archives\/2014\/04\/22\/ubuntu-14-04-some-mysql-ecosystem-notes?share=facebook\" target=\"_blank\" title=\"Click to share on Facebook\" ><span>Facebook<\/span><\/a><\/li><li class=\"share-linkedin\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-linkedin-2914\" class=\"share-linkedin sd-button share-icon\" href=\"http:\/\/www.bytebot.net\/blog\/archives\/2014\/04\/22\/ubuntu-14-04-some-mysql-ecosystem-notes?share=linkedin\" target=\"_blank\" title=\"Click to share on LinkedIn\" ><span>LinkedIn<\/span><\/a><\/li><li class=\"share-twitter\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-twitter-2914\" class=\"share-twitter sd-button share-icon\" href=\"http:\/\/www.bytebot.net\/blog\/archives\/2014\/04\/22\/ubuntu-14-04-some-mysql-ecosystem-notes?share=twitter\" target=\"_blank\" title=\"Click to share on Twitter\" ><span>Twitter<\/span><\/a><\/li><li class=\"share-end\"><\/li><\/ul><\/div><\/div><\/div>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_options":[]},"categories":[1064,23],"tags":[1052,1775,1376,15],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p4vJD-L0","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":2906,"url":"http:\/\/www.bytebot.net\/blog\/archives\/2014\/04\/18\/congratulations-ubuntu-for-the-wide-choice","url_meta":{"origin":2914,"position":0},"title":"Congratulations Ubuntu, for the wide choice!","date":"18\/4\/2014","format":false,"excerpt":"Inspired by Yngve Svendsen\u2019s post, I too think it makes absolute sense to congratulate Ubuntu on the 14.04 LTS release\u00a0(some server notes\u00a0- MySQL has a section dedicated to it). Ubuntu users have a lot of server choice today (that\u2019s from all major MySQL ecosystem vendors): MySQL 5.5.35 ships in\u00a0main. It\u2026","rel":"","context":"In &quot;MariaDB&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3131,"url":"http:\/\/www.bytebot.net\/blog\/archives\/2015\/11\/10\/ubuntu-online-summit-mysql-variants-in-16-04","url_meta":{"origin":2914,"position":1},"title":"Ubuntu Online Summit: MySQL &#038; Variants in 16.04","date":"10\/11\/2015","format":false,"excerpt":"I personally have always enjoyed the Ubuntu Developer Summits (UDS), but nowadays they have been converted to the Ubuntu Online Summits (UOS). Attending them is not always convenient (timezone issues, might be travelling, etc.) so I watched the recorded video of a session I was interested in: MySQL & Variants\u2026","rel":"","context":"In &quot;Distributions&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3296,"url":"http:\/\/www.bytebot.net\/blog\/archives\/2016\/12\/01\/debian-and-mariadb-server","url_meta":{"origin":2914,"position":2},"title":"Debian and MariaDB Server","date":"1\/12\/2016","format":false,"excerpt":"GNU\/Linux distributions matter, and Debian is one of the most popular ones out there in terms of user base. Its an interesting time as MariaDB Server becomes more divergent compared to upstream MySQL, and people go about choosing default providers of the database. The MariaDB Server original goals were to\u2026","rel":"","context":"In &quot;Distributions&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2904,"url":"http:\/\/www.bytebot.net\/blog\/archives\/2014\/04\/17\/ssl-and-mariadbmysql","url_meta":{"origin":2914,"position":3},"title":"SSL and MariaDB\/MySQL","date":"17\/4\/2014","format":false,"excerpt":"With the recent Heartbleed bug, people are clearly more interested in their MariaDB\/MySQL running with SSL and if they have problems. First up, you should read the advisory notes: MariaDB, Percona Server (blog), and MySQL\u00a0(blog). Next, when you install MariaDB (or a variant) you are usually dynamically linked to the\u2026","rel":"","context":"In &quot;MariaDB&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2898,"url":"http:\/\/www.bytebot.net\/blog\/archives\/2014\/04\/10\/amazon-ec2-linux-amis","url_meta":{"origin":2914,"position":4},"title":"Amazon EC2 Linux AMIs","date":"10\/4\/2014","format":false,"excerpt":"If you use Amazon Elastic Compute Cloud (EC2), you are always given choices of AMIs (by default; there are plenty of other AMIs available for your base-os): Amazon Linux AMI, Red Hat Enterprise Linux, SUSE Enterprise Server and Ubuntu. In terms of cost, the Amazon Linux AMI is the cheapest,\u2026","rel":"","context":"In &quot;MariaDB&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2840,"url":"http:\/\/www.bytebot.net\/blog\/archives\/2013\/12\/27\/mariadb-distributions-update-dec-2013","url_meta":{"origin":2914,"position":5},"title":"MariaDB &#038; distributions update, Dec 2013","date":"27\/12\/2013","format":false,"excerpt":"A few things to note recently, amongst MariaDB in distributions.\u00a0 Ubuntu keeps MySQL 5.5 despite MariaDB's success. There's a lot of reasons for this, but remember the key takeaway here is MySQL 5.5 & the fact that MariaDB wasn't even in Debian yet when the decision was made. MariaDB is\u2026","rel":"","context":"In &quot;MariaDB&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"amp_enabled":true,"_links":{"self":[{"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts\/2914"}],"collection":[{"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/comments?post=2914"}],"version-history":[{"count":1,"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts\/2914\/revisions"}],"predecessor-version":[{"id":2915,"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts\/2914\/revisions\/2915"}],"wp:attachment":[{"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/media?parent=2914"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/categories?post=2914"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/tags?post=2914"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}