<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://docs.civetsolutions.com/index.php?action=history&amp;feed=atom&amp;title=Upgrading_from_MySQL_5.7_to_MySQL_8.0</id>
	<title>Upgrading from MySQL 5.7 to MySQL 8.0 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://docs.civetsolutions.com/index.php?action=history&amp;feed=atom&amp;title=Upgrading_from_MySQL_5.7_to_MySQL_8.0"/>
	<link rel="alternate" type="text/html" href="https://docs.civetsolutions.com/index.php?title=Upgrading_from_MySQL_5.7_to_MySQL_8.0&amp;action=history"/>
	<updated>2026-05-27T06:49:35Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://docs.civetsolutions.com/index.php?title=Upgrading_from_MySQL_5.7_to_MySQL_8.0&amp;diff=734&amp;oldid=prev</id>
		<title>Aloha at 02:01, 25 March 2023</title>
		<link rel="alternate" type="text/html" href="https://docs.civetsolutions.com/index.php?title=Upgrading_from_MySQL_5.7_to_MySQL_8.0&amp;diff=734&amp;oldid=prev"/>
		<updated>2023-03-25T02:01:15Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 21:01, 24 March 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Incompatible SQL modes ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Incompatible SQL modes ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;For MySQL 5.7, the installation instructions guided you to create &amp;lt;code&amp;gt;/etc/mysql/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;mysql.&lt;/del&gt;conf.d/convention_master.cnf&amp;lt;/code&amp;gt; with the following contents:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;For MySQL 5.7, the installation instructions guided you to create &amp;lt;code&amp;gt;/etc/mysql/conf.d/convention_master.cnf&amp;lt;/code&amp;gt; with the following contents:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     &amp;lt;code&amp;gt;[mysqld]&amp;lt;/code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     &amp;lt;code&amp;gt;[mysqld]&amp;lt;/code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Aloha</name></author>
	</entry>
	<entry>
		<id>https://docs.civetsolutions.com/index.php?title=Upgrading_from_MySQL_5.7_to_MySQL_8.0&amp;diff=732&amp;oldid=prev</id>
		<title>Rex at 14:58, 22 March 2023</title>
		<link rel="alternate" type="text/html" href="https://docs.civetsolutions.com/index.php?title=Upgrading_from_MySQL_5.7_to_MySQL_8.0&amp;diff=732&amp;oldid=prev"/>
		<updated>2023-03-22T14:58:51Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 09:58, 22 March 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l5&quot;&gt;Line 5:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 5:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     &amp;lt;code&amp;gt;[mysqld]&amp;lt;/code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     &amp;lt;code&amp;gt;[mysqld]&amp;lt;/code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     &amp;lt;code&amp;gt;sql-mode=&amp;quot;NO_ZERO_IN_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION&amp;quot;&amp;lt;/code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     &amp;lt;code&amp;gt;sql-mode=&amp;quot;NO_ZERO_IN_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION&amp;quot;&amp;lt;/code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;These may also have been placed directly within &amp;lt;code&amp;gt;/etc/mysql/mysql.conf.d/mysqld.cnf&amp;lt;/code&amp;gt; or another configuration file; your installation may vary.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;These may also have been placed directly within &amp;lt;code&amp;gt;/etc/mysql/mysql.conf.d/mysqld.cnf&amp;lt;/code&amp;gt; or another configuration file; your installation may vary.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Rex</name></author>
	</entry>
	<entry>
		<id>https://docs.civetsolutions.com/index.php?title=Upgrading_from_MySQL_5.7_to_MySQL_8.0&amp;diff=731&amp;oldid=prev</id>
		<title>Rex: Created page with &quot;== Incompatible SQL modes ==  For MySQL 5.7, the installation instructions guided you to create &lt;code&gt;/etc/mysql/mysql.conf.d/convention_master.cnf&lt;/code&gt; with the following contents:      &lt;code&gt;[mysqld]&lt;/code&gt;     &lt;code&gt;sql-mode=&quot;NO_ZERO_IN_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION&quot;&lt;/code&gt;  These may also have been placed directly within &lt;code&gt;/etc/mysql/mysql.conf.d/mysqld.cnf&lt;/code&gt; or another configuration file; your installation may...&quot;</title>
		<link rel="alternate" type="text/html" href="https://docs.civetsolutions.com/index.php?title=Upgrading_from_MySQL_5.7_to_MySQL_8.0&amp;diff=731&amp;oldid=prev"/>
		<updated>2023-03-22T14:58:31Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Incompatible SQL modes ==  For MySQL 5.7, the installation instructions guided you to create &amp;lt;code&amp;gt;/etc/mysql/mysql.conf.d/convention_master.cnf&amp;lt;/code&amp;gt; with the following contents:      &amp;lt;code&amp;gt;[mysqld]&amp;lt;/code&amp;gt;     &amp;lt;code&amp;gt;sql-mode=&amp;quot;NO_ZERO_IN_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION&amp;quot;&amp;lt;/code&amp;gt;  These may also have been placed directly within &amp;lt;code&amp;gt;/etc/mysql/mysql.conf.d/mysqld.cnf&amp;lt;/code&amp;gt; or another configuration file; your installation may...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Incompatible SQL modes ==&lt;br /&gt;
&lt;br /&gt;
For MySQL 5.7, the installation instructions guided you to create &amp;lt;code&amp;gt;/etc/mysql/mysql.conf.d/convention_master.cnf&amp;lt;/code&amp;gt; with the following contents:&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;code&amp;gt;[mysqld]&amp;lt;/code&amp;gt;&lt;br /&gt;
    &amp;lt;code&amp;gt;sql-mode=&amp;quot;NO_ZERO_IN_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These may also have been placed directly within &amp;lt;code&amp;gt;/etc/mysql/mysql.conf.d/mysqld.cnf&amp;lt;/code&amp;gt; or another configuration file; your installation may vary.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;BEFORE beginning the MySQL upgrade process!!!&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
You must remove &amp;lt;code&amp;gt;NO_AUTO_CREATE_USER&amp;lt;/code&amp;gt; from the list of SQL modes. This is not a valid mode in MySQL 8.0, and leaving it in place will cause the upgrade process to break! You should now have&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;code&amp;gt;[mysqld]&amp;lt;/code&amp;gt;&lt;br /&gt;
    &amp;lt;code&amp;gt;sql-mode=&amp;quot;NO_ZERO_IN_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;HELP! I didn&amp;#039;t read the instructions and my installation is now broken!&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
Find and remove the incompatible SQL mode as mentioned above, then run &amp;lt;code&amp;gt;apt-get --fix-broken install&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Set the required options ==&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;AFTER&amp;#039;&amp;#039;&amp;#039; the upgrade to MySQL 8.0 is finished, log into MySQL as the root user (you may try &amp;lt;code&amp;gt;sudo mysql&amp;lt;/code&amp;gt;, or you may also try &amp;lt;code&amp;gt;mysql -u root -p&amp;lt;/code&amp;gt;) and run the following query:&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;code&amp;gt;SET GLOBAL log_bin_trust_function_creators = 1;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You should now be ready to run with MySQL 8.0.&lt;/div&gt;</summary>
		<author><name>Rex</name></author>
	</entry>
</feed>