<?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 Andy M Mallon - AM²</title><link>https://am2.co/tag/mysql/</link><description>Recent content in MySQL on Andy M Mallon - AM²</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Sun, 27 Oct 2019 04:43:04 -0400</lastBuildDate><atom:link href="https://am2.co/tag/mysql/index.xml" rel="self" type="application/rss+xml"/><item><title>How to implement a unique key for a long VARCHAR column in MySQL</title><link>https://am2.co/2019/10/27/how-to-implement-a-unique-key-for-a-long-varchar-column-in-mysql/</link><pubDate>Sun, 27 Oct 2019 04:43:04 -0400</pubDate><guid>https://am2.co/2019/10/27/how-to-implement-a-unique-key-for-a-long-varchar-column-in-mysql/</guid><description>&lt;p&gt;&lt;a href="https://dba.stackexchange.com/q/252009/52344"&gt;&lt;img src="https://am2.co/images/stack-exchange-question-mark.svg" alt="Question on Stack Exchange" width="96" height="96" class="stack-exchange-question-icon" /&gt;&lt;/a&gt;&lt;/p&gt;&#10;&lt;h2 id="question"&gt;Question&lt;/h2&gt;&#10;&lt;p&gt;I need to let MySQL to check the uniqueness of a VARCHAR column which is 5000 max length and is not the primary key. I can use an index of length 500 on the column to speed up query, but how to create an unique key that works? &lt;/p&gt;</description></item><item><title>What is the MySQL equivalent of SQL Server 2016 Always Encrypted technology?</title><link>https://am2.co/2016/12/20/what-is-the-mysql-equivalent-of-sql-server-2016-always-encrypted-technology/</link><pubDate>Tue, 20 Dec 2016 18:04:46 -0500</pubDate><guid>https://am2.co/2016/12/20/what-is-the-mysql-equivalent-of-sql-server-2016-always-encrypted-technology/</guid><description>&lt;p&gt;&lt;a href="https://dba.stackexchange.com/q/158725/52344"&gt;&lt;img src="https://am2.co/images/stack-exchange-question-mark.svg" alt="Question on Stack Exchange" width="96" height="96" class="stack-exchange-question-icon" /&gt;&lt;/a&gt;&lt;/p&gt;&#10;&lt;h2 id="question"&gt;Question&lt;/h2&gt;&#10;&lt;p&gt;What is the MySQL equivalent of SQL Server 2016 Always Encrypted technology or is there anything similar in MySQL that can act as AE?&lt;/p&gt;&#10;&lt;p class="qa-attribution qa-attribution-asked"&gt;&lt;span class="qa-attribution-label"&gt;Asked&lt;/span&gt;&lt;span class="qa-attribution-date"&gt;&lt;a href="https://dba.stackexchange.com/q/158725/52344" rel="noopener" target="_blank"&gt;2016-12-20&lt;/a&gt;&lt;/span&gt;&lt;span class="qa-attribution-by"&gt;by&lt;/span&gt;&lt;span class="qa-attribution-user"&gt;&lt;a href="https://dba.stackexchange.com/users/113328" rel="noopener" target="_blank"&gt;dwkd&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&#10;&lt;hr&gt;&#10;&lt;h2 id="answer"&gt;Answer&lt;/h2&gt;&#10;&lt;p&gt;The Always Encrypted feature provides end-to-end encryption, which encrypts data both in-flight, and at rest. Data is encrypted &amp;amp; decrypted on the client at the driver. Data is encrypted everywhere except for on he client machine. This is one step beyond encryption at rest (which is handled in SQL Server by Transparent Data Encryption).&lt;/p&gt;</description></item></channel></rss>