-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
45 lines (32 loc) · 2.11 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Resolving Database Collation Issues during MySQL Backup Restore</title> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"> </head>
<body>
<div class="container">
<br>
<h2 class="mt-4">Resolving Database Collation Issues during MySQL Backup Restore</h2>
<h3 class="mt-4">The Problem</h3>
<p class="lead">When restoring a MySQL database backup from a newer version to an older version, you may encounter issues due to differences in database collation.</p>
<h3 class="mt-4">The Cause</h3>
<p class="lead">The MySQL server running on the destination is an older version than the source, which means it doesn't contain the required database collation.</p>
<h3 class="mt-4">The Solution</h3>
<p class="lead">To resolve this issue, you need to make a small tweak to the backup file. Follow these steps:</p>
<h4 class="mt-4">Edit the Backup File</h4>
<ol class="list-group">
<li class="list-group-item">Open the database backup file in a text editor.</li>
<li class="list-group-item">Replace the following strings:
<ul class="list-group">
<li class="list-group-item"><code>utf8mb4_0900_ai_ci</code> with <code>utf8mb4_general_ci</code></li>
<li class="list-group-item"><code>CHARSET=utf8mb4</code> with <code>CHARSET=utf8</code></li>
</ul>
</li>
</ol>
<h4 class="mt-4">Update the ENGINE Statement</h4>
<p class="lead">Replace the following line:</p>
<pre class="alert alert-secondary"><code>ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;</code></pre>
<p class="lead">With</p>
<pre class="alert alert-secondary"><code>ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;</code></pre>
</div>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
</body> </html>