<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ro">
	<id>https://wiki.dexonline.ro/index.php?action=history&amp;feed=atom&amp;title=Minimizarea_bazei_de_date</id>
	<title>Minimizarea bazei de date - Revizia istoricului</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.dexonline.ro/index.php?action=history&amp;feed=atom&amp;title=Minimizarea_bazei_de_date"/>
	<link rel="alternate" type="text/html" href="https://wiki.dexonline.ro/index.php?title=Minimizarea_bazei_de_date&amp;action=history"/>
	<updated>2026-05-22T05:53:35Z</updated>
	<subtitle>Istoricul versiunilor pentru această pagină din wiki</subtitle>
	<generator>MediaWiki 1.37.1</generator>
	<entry>
		<id>https://wiki.dexonline.ro/index.php?title=Minimizarea_bazei_de_date&amp;diff=3130&amp;oldid=prev</id>
		<title>Cătălin.Frâncu: Pagină nouă: Aceste instrucțiuni economisesc cam 1,7 GB spațiu pe disc (50% din mărimea bazei de date), cu restricția că baza de date devine ''read-only''.  După importarea bazei de date,...</title>
		<link rel="alternate" type="text/html" href="https://wiki.dexonline.ro/index.php?title=Minimizarea_bazei_de_date&amp;diff=3130&amp;oldid=prev"/>
		<updated>2018-12-13T09:41:55Z</updated>

		<summary type="html">&lt;p&gt;Pagină nouă: Aceste instrucțiuni economisesc cam 1,7 GB spațiu pe disc (50% din mărimea bazei de date), cu restricția că baza de date devine &amp;#039;&amp;#039;read-only&amp;#039;&amp;#039;.  După importarea bazei de date,...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Pagină nouă&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Aceste instrucțiuni economisesc cam 1,7 GB spațiu pe disc (50% din mărimea bazei de date), cu restricția că baza de date devine ''read-only''.&lt;br /&gt;
&lt;br /&gt;
După importarea bazei de date, respectiv:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
zcat /tmp/dex-database.sql.gz | mysql -u root dexonline&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
continuați cu:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd /var/lib/mysql/dexonline&lt;br /&gt;
sudo systemctl stop mariadb&lt;br /&gt;
sudo -u mysql myisampack *.MYI&lt;br /&gt;
sudo -u mysql myisamchk -rq *.MYI&lt;br /&gt;
sudo systemctl start mariadb&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
După compresie, toate tabele MyISAM devin ''read-only''.&lt;br /&gt;
&lt;br /&gt;
În MariaDB (10.3.11) rezultatele după compresie arată o reducere de 50% cu metoda de mai sus.&lt;br /&gt;
&lt;br /&gt;
Dacă ulterior aveți nevoie de ''read+write'', le puteți reface/decomprima:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd /var/lib/mysql/dexonline&lt;br /&gt;
sudo systemctl stop mariadb&lt;br /&gt;
sudo -u mysql myisamchk -u *.MYI&lt;br /&gt;
sudo systemctl start mariadb&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Instrucțiuni [https://github.com/dexonline/dexonline/issues/804 preluate de pe GitHub].&lt;/div&gt;</summary>
		<author><name>Cătălin.Frâncu</name></author>
	</entry>
</feed>