<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://kb.rvmgroup.it/index.php?action=history&amp;feed=atom&amp;title=Ottimizzare_tutte_le_tabelle_in_un_database_MySQL</id>
	<title>Ottimizzare tutte le tabelle in un database MySQL - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://kb.rvmgroup.it/index.php?action=history&amp;feed=atom&amp;title=Ottimizzare_tutte_le_tabelle_in_un_database_MySQL"/>
	<link rel="alternate" type="text/html" href="https://kb.rvmgroup.it/index.php?title=Ottimizzare_tutte_le_tabelle_in_un_database_MySQL&amp;action=history"/>
	<updated>2026-05-05T20:23:29Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://kb.rvmgroup.it/index.php?title=Ottimizzare_tutte_le_tabelle_in_un_database_MySQL&amp;diff=11180&amp;oldid=prev</id>
		<title>Gabriele.vivinetto: Created page with &quot;* Usare lo script &lt;pre&gt; #!/bin/bash for table in $(mysql -u root -proot_pwd -sss -e &quot;select concat(table_schema,&#039;.&#039;,table_name) from information_schema.tables where table_schema in (&#039;mydatabasename&#039;) order by data_free desc;&quot;) do   echo OPTIMIZE $table   mysql -u root -proot_pwd -e &quot;OPTIMIZE TABLE $table;&quot; done &lt;/pre&gt;&quot;</title>
		<link rel="alternate" type="text/html" href="https://kb.rvmgroup.it/index.php?title=Ottimizzare_tutte_le_tabelle_in_un_database_MySQL&amp;diff=11180&amp;oldid=prev"/>
		<updated>2024-06-11T14:47:03Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;* Usare lo script &amp;lt;pre&amp;gt; #!/bin/bash for table in $(mysql -u root -proot_pwd -sss -e &amp;quot;select concat(table_schema,&amp;#039;.&amp;#039;,table_name) from information_schema.tables where table_schema in (&amp;#039;mydatabasename&amp;#039;) order by data_free desc;&amp;quot;) do   echo OPTIMIZE $table   mysql -u root -proot_pwd -e &amp;quot;OPTIMIZE TABLE $table;&amp;quot; done &amp;lt;/pre&amp;gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;* Usare lo script&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
for table in $(mysql -u root -proot_pwd -sss -e &amp;quot;select concat(table_schema,&amp;#039;.&amp;#039;,table_name) from information_schema.tables where table_schema in (&amp;#039;mydatabasename&amp;#039;) order by data_free desc;&amp;quot;)&lt;br /&gt;
do&lt;br /&gt;
  echo OPTIMIZE $table&lt;br /&gt;
  mysql -u root -proot_pwd -e &amp;quot;OPTIMIZE TABLE $table;&amp;quot;&lt;br /&gt;
done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Gabriele.vivinetto</name></author>
	</entry>
</feed>