<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Mysql on Evan Hoffman</title><link>https://evan.wtf/tags/mysql/</link><description>Recent content in Mysql on Evan Hoffman</description><generator>Hugo</generator><language>en-US</language><copyright>Evan Hoffman</copyright><lastBuildDate>Wed, 08 Oct 2014 15:25:10 +0000</lastBuildDate><atom:link href="https://evan.wtf/tags/mysql/index.xml" rel="self" type="application/rss+xml"/><item><title>Can I create an EC2 MySQL slave to an RDS master?</title><link>https://evan.wtf/2014/10/08/can-i-create-an-ec2-mysql-slave-to-an-rds-master/</link><pubDate>Wed, 08 Oct 2014 15:25:10 +0000</pubDate><guid>https://evan.wtf/2014/10/08/can-i-create-an-ec2-mysql-slave-to-an-rds-master/</guid><description>&lt;h2 id="no"&gt;No.&lt;a class="heading-anchor" href="#no" aria-label="Link to this section"&gt;&#10; &lt;svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2"&#10; stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"&gt;&#10; &lt;path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/&gt;&#10; &lt;path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/&gt;&#10; &lt;/svg&gt;&#10; &lt;/a&gt;&#10;&lt;/h2&gt;&#10;&lt;p&gt;Here&amp;rsquo;s what happens if you try:&lt;/p&gt;&#10;&lt;pre tabindex="0"&gt;&lt;code&gt;mysql&amp;gt; grant replication slave on *.* to &amp;#39;ec2-slave&amp;#39;@&amp;#39;%&amp;#39;;&#10;ERROR 1045 (28000): Access denied for user &amp;#39;rds_root&amp;#39;@&amp;#39;%&amp;#39; (using password: YES)&#10;mysql&amp;gt; update mysql.user set Repl_slave_priv=&amp;#39;Y&amp;#39; WHERE user=&amp;#39;rds_root&amp;#39; AND host=&amp;#39;%&amp;#39;;&#10;ERROR 1054 (42S22): Unknown column &amp;#39;ERROR (RDS): REPLICA SLAVE PRIVILEGE CANNOT BE GRANTED OR MAINTAINED&amp;#39; in &amp;#39;field list&amp;#39;&#10;mysql&amp;gt;&#10;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Note: this is for MySQL 5.5, which is unfortunately what I&amp;rsquo;m currently stuck with.&lt;/p&gt;</description></item><item><title>Digital Ocean - First Impressions</title><link>https://evan.wtf/2013/07/24/digital-ocean-first-impressions/</link><pubDate>Wed, 24 Jul 2013 08:59:06 +0000</pubDate><guid>https://evan.wtf/2013/07/24/digital-ocean-first-impressions/</guid><description>&lt;p&gt;For the past few years I&amp;rsquo;ve been hosting this site on an old desktop in my basement on my FiOS connection. This was one of the things I really liked when I switched from Cablevision to Verizon - they don&amp;rsquo;t block port 80 inbound, so I didn&amp;rsquo;t have to pay for separate hosting. My &amp;ldquo;server&amp;rdquo; was an old AMD desktop with 1 gig ram and a sata drive. It was ok; my site was slow but I was ok with that. I configured Nginx to cache the static assets which sped most things up to &amp;ldquo;ok&amp;rdquo; levels but it was never fast.&lt;/p&gt;</description></item><item><title>Migrating RT from mysql to postgresql.</title><link>https://evan.wtf/2009/08/06/migrating-rt-from-mysql-to-postgresql/</link><pubDate>Thu, 06 Aug 2009 17:21:42 +0000</pubDate><guid>https://evan.wtf/2009/08/06/migrating-rt-from-mysql-to-postgresql/</guid><description>&lt;p&gt;So I wanted to move our old RT 3.6 system to a new VM running a clean CentOS 5.3 x86 install and RT 3.8. I got RT installed but the 3.6 system was running on MySQL, which sucks (still), and I wanted to move it to Postgres, which rules (more and more each day). So Googling for &amp;ldquo;migrate rt from mysql to postgresql&amp;rdquo; brought me &lt;a href="http://himdel.blogspot.com/2009/04/migrating-request-tracker-from-rt-345.html"&gt;here&lt;/a&gt;. I tried the procedure listed there but it wasn&amp;rsquo;t quite working for me. my2pg.pl and mysql2postgresql.perl both caused segfaults when I tried to run them. I realized I was on my own, and it wasn&amp;rsquo;t really that bad.&lt;/p&gt;</description></item></channel></rss>