<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://planeshift.top-ix.org//pswiki/index.php?action=history&amp;feed=atom&amp;title=Errors_in_Database_connection</id>
	<title>Errors in Database connection - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://planeshift.top-ix.org//pswiki/index.php?action=history&amp;feed=atom&amp;title=Errors_in_Database_connection"/>
	<link rel="alternate" type="text/html" href="https://planeshift.top-ix.org//pswiki/index.php?title=Errors_in_Database_connection&amp;action=history"/>
	<updated>2026-04-06T13:00:30Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://planeshift.top-ix.org//pswiki/index.php?title=Errors_in_Database_connection&amp;diff=24444&amp;oldid=prev</id>
		<title>Talad: Created page with &quot; == Error: Can&#039;t initialize character set unknown (path: compiled_in) ==  LogSQL: Error: Failed to connect to database: Error: Can&#039;t initialize character set unknown (path: compiled_in) This happened after we upgraded on Windows the mysql DB from 5.5 to 8.0.29. This error was present when starting the PSUnreal server.  We have seen the DB was using a character set utf8_mb4, collation: utf8mb4_0900_ai_ci , checking production db on linux   MariaDB [planeshift_prod2]&gt; SELE...&quot;</title>
		<link rel="alternate" type="text/html" href="https://planeshift.top-ix.org//pswiki/index.php?title=Errors_in_Database_connection&amp;diff=24444&amp;oldid=prev"/>
		<updated>2022-07-02T22:11:13Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot; == Error: Can&amp;#039;t initialize character set unknown (path: compiled_in) ==  LogSQL: Error: Failed to connect to database: Error: Can&amp;#039;t initialize character set unknown (path: compiled_in) This happened after we upgraded on Windows the mysql DB from 5.5 to 8.0.29. This error was present when starting the PSUnreal server.  We have seen the DB was using a character set utf8_mb4, collation: utf8mb4_0900_ai_ci , checking production db on linux   MariaDB [planeshift_prod2]&amp;gt; SELE...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
== Error: Can&amp;#039;t initialize character set unknown (path: compiled_in) ==&lt;br /&gt;
 LogSQL: Error: Failed to connect to database: Error: Can&amp;#039;t initialize character set unknown (path: compiled_in)&lt;br /&gt;
This happened after we upgraded on Windows the mysql DB from 5.5 to 8.0.29. This error was present when starting the PSUnreal server.&lt;br /&gt;
&lt;br /&gt;
We have seen the DB was using a character set utf8_mb4, collation: utf8mb4_0900_ai_ci , checking production db on linux &lt;br /&gt;
 MariaDB [planeshift_prod2]&amp;gt; SELECT @@character_set_database, @@collation_database;&lt;br /&gt;
 +--------------------------+----------------------+&lt;br /&gt;
 | @@character_set_database | @@collation_database |&lt;br /&gt;
 +--------------------------+----------------------+&lt;br /&gt;
 | utf8mb4                  | utf8mb4_general_ci   |&lt;br /&gt;
 +--------------------------+----------------------+&lt;br /&gt;
 1 row in set (0.000 sec)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We edited mysql.ini file adding these two lines:&lt;br /&gt;
 character-set-server = utf8mb4&lt;br /&gt;
 collation-server = utf8mb4_general_ci&lt;br /&gt;
and ensured that the db startup was using the proper ini file:&lt;br /&gt;
 mysqld --defaults-file=&amp;quot;E:/MySQL80Data/my.ini&amp;quot; --datadir=&amp;quot;E:/MySQL80Data/Data&amp;quot;&lt;/div&gt;</summary>
		<author><name>Talad</name></author>
	</entry>
</feed>