<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title> &amp;apos;colValue&amp;apos; can&amp;apos;t have a default value</title>
        <link>https://interactivetools.com/forum/forum-posts.php?colValue-can-t-have-a-default-value-82586</link>
        <description></description>
        <pubDate>Sat, 07 Mar 2026 10:01:00 -0800</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-posts.php?rss=1&amp;colValue-can-t-have-a-default-value-82586" rel="self" type="application/rss+xml" />

                <item>
          <title> &apos;colValue&apos; can&apos;t have a default value</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2246140#post2246140</link>
          <description><![CDATA[<p>Hi petrogus,</p>
<p>It can be difficult to tell the exact issue without seeing the backup file itself, but something that we've found in the past is that sometimes fields will end up with a default value of the string "NULL" rather than the <em>NULL</em> value. This is acceptable in MariaDB but causes an error when moving to MySQL, because MySQL doesn't support default values in mediumtext fields.</p>
<p>If you open your backup file in a text editor and search for "colValues" you should see something like this:</p>
<pre class="language-php"><code>`colValues` mediumtext COLLATE utf8mb4_unicode_ci DEFAULT 'NULL',</code></pre>
<p>If there are quotations around 'NULL'  like the above (or any other value other than just <em>NULL</em>) it needs to be modified to:</p>
<pre class="language-php"><code>`colValues` mediumtext COLLATE utf8mb4_unicode_ci DEFAULT NULL,</code></pre>
<p>It's likely that this isn't the only field where this is an issue, and they will all need to be corrected, though using a simple search/replace can take care of this relatively quickly.</p>
<p>Let me know if this helps, or if you have any other questions!</p>
<p>Thanks,</p>]]></description>
          <pubDate>Thu, 08 Sep 2022 21:34:37 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2246140#post2246140</guid>
        </item>
                <item>
          <title> &apos;colValue&apos; can&apos;t have a default value</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2246131#post2246131</link>
          <description><![CDATA[<p>Hello All !</p>
<p>I am trying to transfer some websites from on server to other</p>
<p>I am using cpanel <span class="page-title">Backup Wizard or manual transfer but both of them I have the same error </span></p>
<p><span class="page-title"><span> <strong class="alert-title">Error:</strong> <span class="alert-body"><span>The system failed to execute the database script with the following errors: ERROR 1101 (42000) at line 125: BLOB, TEXT, GEOMETRY or JSON column 'colValue' can't have a default value </span></span> </span></span></p>
<p>I have notice that the older host account work with </p>
<p>Database Server MariaDB Server v5.5.5-10.3.36-MariaDB (Max Connections: 151)</p>
<p>and the new one </p>
<p>MySQL Community Server - GPL v8.0.30 (Max Connections: 151)</p>

<p>I can't sold the problem, could you suggest any solution </p>
<p>Thank you in advance</p>
<p>Petrogus</p>]]></description>
          <pubDate>Tue, 06 Sep 2022 14:30:03 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2246131#post2246131</guid>
        </item>
              </channel>
    </rss>
  