<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="es">
	<id>http://wiki.enunpimpam.com/pimpamwiki/index.php?action=history&amp;feed=atom&amp;title=MySQL</id>
	<title>MySQL - Historial de revisiones</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.enunpimpam.com/pimpamwiki/index.php?action=history&amp;feed=atom&amp;title=MySQL"/>
	<link rel="alternate" type="text/html" href="http://wiki.enunpimpam.com/pimpamwiki/index.php?title=MySQL&amp;action=history"/>
	<updated>2026-04-05T23:56:22Z</updated>
	<subtitle>Historial de revisiones de esta página en el wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>http://wiki.enunpimpam.com/pimpamwiki/index.php?title=MySQL&amp;diff=1187&amp;oldid=prev</id>
		<title>Nacho en 10:31 27 ene 2022</title>
		<link rel="alternate" type="text/html" href="http://wiki.enunpimpam.com/pimpamwiki/index.php?title=MySQL&amp;diff=1187&amp;oldid=prev"/>
		<updated>2022-01-27T10:31:22Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;es&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Revisión anterior&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revisión del 10:31 27 ene 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l88&quot; &gt;Línea 88:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línea 88:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  GRANT ALL PRIVILEGES ON * . * TO 'nacho'@'localhost';&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  GRANT ALL PRIVILEGES ON * . * TO 'nacho'@'localhost';&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  GRANT ALL PRIVILEGES ON * . * TO nacho;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  GRANT ALL PRIVILEGES ON * . * TO nacho &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;with grant option&lt;/ins&gt;;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Quitar permisos a un usuario ===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Quitar permisos a un usuario ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Nacho</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.enunpimpam.com/pimpamwiki/index.php?title=MySQL&amp;diff=1186&amp;oldid=prev</id>
		<title>Nacho en 16:25 22 ene 2022</title>
		<link rel="alternate" type="text/html" href="http://wiki.enunpimpam.com/pimpamwiki/index.php?title=MySQL&amp;diff=1186&amp;oldid=prev"/>
		<updated>2022-01-22T16:25:05Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;es&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Revisión anterior&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revisión del 16:25 22 ene 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l80&quot; &gt;Línea 80:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línea 80:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  GRANT tipo_privilegio ON {nombre_tabla | * | *.* | nombre_bd.*} TO usuario;  &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  GRANT tipo_privilegio ON {nombre_tabla | * | *.* | nombre_bd.*} TO usuario;  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Así para dar el &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;permito &lt;/del&gt;''SELECT'' al usuario ''pepe'' sería:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Así para dar el &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;permiso &lt;/ins&gt;''SELECT'' al usuario ''pepe'' sería:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  GRANT SELECT ON * . * TO pepe;  &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  GRANT SELECT ON * . * TO pepe;  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l87&quot; &gt;Línea 87:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línea 87:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Asignar permisos administrador ===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Asignar permisos administrador ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  GRANT ALL PRIVILEGES ON * . * TO 'nacho'@'localhost';&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  GRANT ALL PRIVILEGES ON * . * TO 'nacho'@'localhost';&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; GRANT ALL PRIVILEGES ON * . * TO nacho;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Quitar permisos a un usuario ===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Quitar permisos a un usuario ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Nacho</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.enunpimpam.com/pimpamwiki/index.php?title=MySQL&amp;diff=1166&amp;oldid=prev</id>
		<title>Nacho en 10:06 9 feb 2021</title>
		<link rel="alternate" type="text/html" href="http://wiki.enunpimpam.com/pimpamwiki/index.php?title=MySQL&amp;diff=1166&amp;oldid=prev"/>
		<updated>2021-02-09T10:06:55Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;es&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Revisión anterior&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revisión del 10:06 9 feb 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l6&quot; &gt;Línea 6:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línea 6:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Para instalar MySQL, debes [[Añadir aplicaciones| instalar]] los siguientes paquetes:  '''mysql-server''' y '''mysql-client'''.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Para instalar MySQL, debes [[Añadir aplicaciones| instalar]] los siguientes paquetes:  '''mysql-server''' y '''mysql-client'''.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Existe un entorno gráfico del programa llamado '''mysql administrator''', dependiente de los anteriores paquetes. Y opcionalmente el paquete ''''mysql-query-browser''', que servirá para realizar consultas.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Existe un entorno gráfico del programa llamado '''mysql administrator''', dependiente de los anteriores paquetes. Y opcionalmente el paquete ''''mysql-query-browser''', que servirá para realizar consultas.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt; &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;sudo apt-get install mysql-server&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;sudo mysql_secure_installation&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Configuración ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Configuración ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Nacho</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.enunpimpam.com/pimpamwiki/index.php?title=MySQL&amp;diff=1162&amp;oldid=prev</id>
		<title>Nacho en 17:38 19 dic 2020</title>
		<link rel="alternate" type="text/html" href="http://wiki.enunpimpam.com/pimpamwiki/index.php?title=MySQL&amp;diff=1162&amp;oldid=prev"/>
		<updated>2020-12-19T17:38:28Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;es&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Revisión anterior&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revisión del 17:38 19 dic 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l40&quot; &gt;Línea 40:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línea 40:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  bind-address            = 0.0.0.0 o la IP que tengas en tu seridor si tienes IP fija  &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  bind-address            = 0.0.0.0 o la IP que tengas en tu seridor si tienes IP fija  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Despues reinicia el servicio.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Despues reinicia el servicio.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;shell&amp;gt;cd &lt;/del&gt;etc/init.d&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt; shell&amp;gt;.&lt;/del&gt;/mysql restart  &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;sudo &lt;/ins&gt;etc/init.d/mysql restart  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Para que todos los demás ordenadores tengan acceso al servidor. Para más seguridad puedes poner solamente una lista de las IPs de los ordenadores que quieres que tengan acceso.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Para que todos los demás ordenadores tengan acceso al servidor. Para más seguridad puedes poner solamente una lista de las IPs de los ordenadores que quieres que tengan acceso.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Nacho</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.enunpimpam.com/pimpamwiki/index.php?title=MySQL&amp;diff=1006&amp;oldid=prev</id>
		<title>Nacho en 19:08 5 jul 2020</title>
		<link rel="alternate" type="text/html" href="http://wiki.enunpimpam.com/pimpamwiki/index.php?title=MySQL&amp;diff=1006&amp;oldid=prev"/>
		<updated>2020-07-05T19:08:58Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;es&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Revisión anterior&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revisión del 19:08 5 jul 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l76&quot; &gt;Línea 76:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línea 76:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Así para dar el permito ''SELECT'' al usuario ''pepe'' sería:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Así para dar el permito ''SELECT'' al usuario ''pepe'' sería:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  GRANT SELECT ON *.* TO pepe;  &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  GRANT SELECT ON * . * TO pepe;  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Más información en [http://dev.mysql.com/doc/refman/5.0/es/grant.html Sintaxis de GRANT y REVOKE].&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Más información en [http://dev.mysql.com/doc/refman/5.0/es/grant.html Sintaxis de GRANT y REVOKE].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;=== Asignar permisos administrador ===&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; GRANT ALL PRIVILEGES ON * . * TO 'nacho'@'localhost';&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Quitar permisos a un usuario ===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Quitar permisos a un usuario ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Nacho</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.enunpimpam.com/pimpamwiki/index.php?title=MySQL&amp;diff=375&amp;oldid=prev</id>
		<title>Nacho: 1 revisión importada</title>
		<link rel="alternate" type="text/html" href="http://wiki.enunpimpam.com/pimpamwiki/index.php?title=MySQL&amp;diff=375&amp;oldid=prev"/>
		<updated>2020-04-23T21:50:29Z</updated>

		<summary type="html">&lt;p&gt;1 revisión importada&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;es&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Revisión anterior&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revisión del 21:50 23 abr 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;es&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(Sin diferencias)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Nacho</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.enunpimpam.com/pimpamwiki/index.php?title=MySQL&amp;diff=374&amp;oldid=prev</id>
		<title>Linux&gt;Nacho en 21:18 23 abr 2020</title>
		<link rel="alternate" type="text/html" href="http://wiki.enunpimpam.com/pimpamwiki/index.php?title=MySQL&amp;diff=374&amp;oldid=prev"/>
		<updated>2020-04-23T21:18:56Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Página nueva&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[category:Linux]]&lt;br /&gt;
MySQL es un gestor de bases de datos bastante popular y rápido. Normalmente lo puedes encontrar instalado en los sitios de hosting.&lt;br /&gt;
 &lt;br /&gt;
== Instalación ==&lt;br /&gt;
 &lt;br /&gt;
Para instalar MySQL, debes [[Añadir aplicaciones| instalar]] los siguientes paquetes:  '''mysql-server''' y '''mysql-client'''.&lt;br /&gt;
Existe un entorno gráfico del programa llamado '''mysql administrator''', dependiente de los anteriores paquetes. Y opcionalmente el paquete ''''mysql-query-browser''', que servirá para realizar consultas.&lt;br /&gt;
 &lt;br /&gt;
== Configuración ==&lt;br /&gt;
 &lt;br /&gt;
Se te pedirá crear la contraseña del administrador cuando se instale el programa.  &lt;br /&gt;
 &lt;br /&gt;
En versiones antiguas no se crea con la instalación. Debemos crearla manualmente, nada más instalar el servidor. Para hacerlo teclea en un Terminal.&lt;br /&gt;
 &lt;br /&gt;
  $ sudo /usr/bin/mysqladmin -u root password ''clavenueva'' &lt;br /&gt;
Puedes cambiar el archivo '''/etc/mysql/my.cnf''' para configurar las opciones básicas -- archivo de registro, número de puerto, etc. Mira al archivo '''/etc/mysql/my.cnf''' para más detalles.&lt;br /&gt;
 &lt;br /&gt;
Una vez asignada una contraseña al administrador, puedes conectar con el servidor mySQL de la manera siguiente:&lt;br /&gt;
 &lt;br /&gt;
  $ mysql -h localhost -u root -p &lt;br /&gt;
Donde &amp;quot;localhost&amp;quot; és la dirección de tu host y &amp;quot;root&amp;quot; el nombre de usuario.&lt;br /&gt;
A continuación introduce el password de la base de datos. Te aparece la siguiente pantala:&lt;br /&gt;
 &lt;br /&gt;
  Welcome to the MySQL monitor.  Commands end with ; or \g.&lt;br /&gt;
  Your MySQL connection id is 20 to server version: 5.0.24a-Debian_9ubuntu2-log&lt;br /&gt;
    &lt;br /&gt;
  Type 'help;' or '\h' for help. Type '\c' to clear the buffer. &lt;br /&gt;
Para desconectar,  &lt;br /&gt;
 &lt;br /&gt;
  mysql&amp;gt; QUIT&lt;br /&gt;
  Bye &lt;br /&gt;
== Conexión desde un host remoto ==&lt;br /&gt;
Por defecto, MySQL no permite que cualquier usuario puede acceder a las bases de datos usando un conexión TCP. Para que lo permita debes crear un usuario con los permisos correspondientes.&lt;br /&gt;
 &lt;br /&gt;
También tendrás que editar el fichero '''/etc/mysql/my.cnf''' y modificar la línea:&lt;br /&gt;
 &lt;br /&gt;
 bind-address            = 127.0.0.1 &lt;br /&gt;
Cambiándola por la direccion IP del servidor, o en caso de que se quiera escuchar en todas las IPs:&lt;br /&gt;
 &lt;br /&gt;
 bind-address            = 0.0.0.0 o la IP que tengas en tu seridor si tienes IP fija &lt;br /&gt;
Despues reinicia el servicio.&lt;br /&gt;
 shell&amp;gt;cd etc/init.d&lt;br /&gt;
 shell&amp;gt;./mysql restart &lt;br /&gt;
Para que todos los demás ordenadores tengan acceso al servidor. Para más seguridad puedes poner solamente una lista de las IPs de los ordenadores que quieres que tengan acceso.&lt;br /&gt;
 &lt;br /&gt;
Si aún no te puedes conectar desde un ordenador remoto tendrás que editar el fichero ''/etc/hosts.allow'' y añadir la línea:&lt;br /&gt;
 &lt;br /&gt;
 mysqld: all &lt;br /&gt;
== Gestión de usuarios ==&lt;br /&gt;
 &lt;br /&gt;
=== Crear un usuario ===&lt;br /&gt;
 &lt;br /&gt;
Para la creación de usuarios tendremos que conectarnos al servidor MySQL (ver más arriba) con un usuario que tenga el permiso global ''CREATE USER'' o el permiso ''INSERT'' para la base de datos ''mysql''. La sintaxis es la siguiente:&lt;br /&gt;
 &lt;br /&gt;
 CREATE USER ''usuario'' IDENTIFIED BY &amp;lt;nowiki&amp;gt;'&amp;lt;/nowiki&amp;gt;''password''&amp;lt;nowiki&amp;gt;'&amp;lt;/nowiki&amp;gt;; &lt;br /&gt;
Más información en [http://dev.mysql.com/doc/refman/5.0/es/create-user.html Sintaxis de CREATE USER].&lt;br /&gt;
 &lt;br /&gt;
=== Eliminar un usuario ===&lt;br /&gt;
 &lt;br /&gt;
El usuario que usemos en la conexión debe tener el permiso global CREATE USER o el permiso DELETE para la base de datos mysql. La sintaxis es la siguiente:&lt;br /&gt;
 &lt;br /&gt;
 DROP USER usuario; &lt;br /&gt;
Más información en [http://dev.mysql.com/doc/refman/5.0/es/drop-user.html Sintaxis de DROP USER].&lt;br /&gt;
 &lt;br /&gt;
=== Dar permisos a un usuario ===&lt;br /&gt;
 &lt;br /&gt;
Los permisos pueden darse en varios niveles:&lt;br /&gt;
 &lt;br /&gt;
* Nivel global&lt;br /&gt;
* Nivel de base de datos&lt;br /&gt;
* Nivel de tabla&lt;br /&gt;
 &lt;br /&gt;
La sintaxis es:&lt;br /&gt;
 &lt;br /&gt;
 GRANT tipo_privilegio ON {nombre_tabla | * | *.* | nombre_bd.*} TO usuario; &lt;br /&gt;
Así para dar el permito ''SELECT'' al usuario ''pepe'' sería:&lt;br /&gt;
 &lt;br /&gt;
 GRANT SELECT ON *.* TO pepe; &lt;br /&gt;
Más información en [http://dev.mysql.com/doc/refman/5.0/es/grant.html Sintaxis de GRANT y REVOKE].&lt;br /&gt;
&lt;br /&gt;
=== Quitar permisos a un usuario ===&lt;br /&gt;
 &lt;br /&gt;
La sintaxis es:&lt;br /&gt;
 &lt;br /&gt;
 REVOKE tipo_privilegio ON {nombre_tabla | * | *.* | nombre_bd.*} FROM usuario; &lt;br /&gt;
Más información en [http://dev.mysql.com/doc/refman/5.0/es/grant.html Sintaxis de GRANT y REVOKE].&lt;br /&gt;
&lt;br /&gt;
== Gestión de las bases de datos ==&lt;br /&gt;
 &lt;br /&gt;
=== Crear una Base de datos ===&lt;br /&gt;
 &lt;br /&gt;
Para crear una base de datos nueva puedes hacerlo de, al menos, dos formas. Abre un Terminal y ejecuta lo siguiente.&lt;br /&gt;
 &lt;br /&gt;
  $ mysql -h servidor -u usuario -p&lt;br /&gt;
  Enter password:&lt;br /&gt;
  mysql&amp;gt; CREATE DATABASE nombre_de_la_base_de_datos;&lt;br /&gt;
  quit &lt;br /&gt;
Más información en [http://dev.mysql.com/doc/refman/5.0/es/create-database.html Sintaxis de CREATE DATABASE]. También puedes usar la orden '''mysqladmin'''.&lt;br /&gt;
 &lt;br /&gt;
  $ mysqladmin -h servidor -u usuario -p create nombre_de_la_base_de_datos &lt;br /&gt;
=== Eliminar una Base de datos ===&lt;br /&gt;
 &lt;br /&gt;
Para eliminar una base de datos que ya no es necesaria en el sistema también tenemos, al menos, dos métodos. En un ventana de Terminal ejecuta.&lt;br /&gt;
 &lt;br /&gt;
  $ mysql -h servidor -u usuario -p&lt;br /&gt;
  Enter password:&lt;br /&gt;
  mysql&amp;gt; DROP DATABASE nombre_de_la_base_de_datos;&lt;br /&gt;
  quit &lt;br /&gt;
Más información en [http://dev.mysql.com/doc/refman/5.0/es/drop-database.html Sintaxis de DROP DATABASE]. También puedes obtener el mismo resultado con el comando '''mysqladmin'''.&lt;br /&gt;
 &lt;br /&gt;
  $ mysqladmin -h servidor -u usuario -p drop nombre_de_la_base_de_datos &lt;br /&gt;
=== Hacer Backup de una Base de datos ===&lt;br /&gt;
 &lt;br /&gt;
Para hacer una copia de seguridad de una base de datos tiene el siguiente comando:&lt;br /&gt;
 &lt;br /&gt;
 $ mysqldump -h servidor -u usuario -p nombre_de_la_base_de_datos &amp;gt; backup.sql &lt;br /&gt;
Para hacer una copia de seguridad de las bases de datos MySQL de un servidor puedes usar el siguiente script:&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;bash&amp;gt;&lt;br /&gt;
 #!/bin/bash &lt;br /&gt;
 ## BEGIN CONFIG ##&lt;br /&gt;
 HOST=localhost&lt;br /&gt;
 USER=usuario&lt;br /&gt;
 PASS=secreto&lt;br /&gt;
 BACKUP_DIR=Backup&lt;br /&gt;
 ## END CONFIG ## &lt;br /&gt;
 if [ ! -d $BACKUP_DIR ]; then&lt;br /&gt;
  mkdir -p $BACKUP_DIR&lt;br /&gt;
 fi &lt;br /&gt;
 # Backup de MySQL&lt;br /&gt;
 MYSQL_DBS=$(mysqlshow -h $HOST -u $USER -p$PASS | awk ' (NR &amp;gt; 2) &amp;amp;&amp;amp; (/[a-zA-Z0-9]+[ ]+[|]/) &amp;amp;&amp;amp; ( $0 !~ /mysql/) { print $2 }'); &lt;br /&gt;
 for DB in $MYSQL_DBS ; do  &lt;br /&gt;
  echo &amp;quot;* Backuping MySQL data from $DB@$HOST...&amp;quot;&lt;br /&gt;
  mysqldump -h $HOST -u $USER -p$PASS $DB &amp;gt; $BACKUP_DIR/mysql_$DB.sql&lt;br /&gt;
 done&lt;br /&gt;
 &amp;lt;/bash&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
=== Restaurar el Backup de una Base de datos ===&lt;br /&gt;
 &lt;br /&gt;
Para restaurar una base de datos creada anteriormente ejecuta en un Terminal.&lt;br /&gt;
 &lt;br /&gt;
 $ mysql -h servidor -u usuario -p nombre_de_la_base_de_datos &amp;lt; backup.sql &lt;br /&gt;
{{nota|La base de datos “nombre_de_la_base_de_datos” debe existir en el sistema antes de restaurar el fichero backup.sql.&lt;br /&gt;
Si no sabes como crear una base de datos lee [[MySQL#Crear una Base de datos|Crear una Base de datos]].}}&lt;br /&gt;
 &lt;br /&gt;
=== Recuperar la contraseña de ROOT del Serivor MySQL ===&lt;br /&gt;
 &lt;br /&gt;
Para recuperar,o mejor dicho resetear, la contraseña de ROOT del servidor MySQL se puede hacer lo siguiente:&lt;br /&gt;
 &lt;br /&gt;
 $ /etc/init.d/mysql stop&lt;br /&gt;
 $ mysqld_safe --skip-grant-tables &amp;amp;&lt;br /&gt;
 $ mysql -u root mysql&lt;br /&gt;
 mysql&amp;gt; UPDATE user SET Password=PASSWORD('nueva_contraseña') WHERE User='root';  &lt;br /&gt;
 mysql&amp;gt; FLUSH PRIVILEGES;  &lt;br /&gt;
 mysql&amp;gt; \q&lt;br /&gt;
 $ killall mysqld;  &lt;br /&gt;
 $ /etc/init.d/mysql start&lt;br /&gt;
===Almacenamiento de los datos===&lt;br /&gt;
Las bases de datos se encuentran en la siguiente dirección:&lt;br /&gt;
&lt;br /&gt;
 /var/lib/mysql&lt;br /&gt;
&lt;br /&gt;
== Ver también ==&lt;br /&gt;
* [[PostgreSQL]]&lt;br /&gt;
* [[PhpMyAdmin]]&lt;br /&gt;
 &lt;br /&gt;
== Enlaces externos ==&lt;br /&gt;
*[http://www.xtec.net/~acastan/textos/Administracion%20de%20MySQL.htmlGuía rápida de administración de MySQL]&lt;br /&gt;
* [http://www.babilonics.com/node/1800 Como exportar una base de datos mysql 4.0 a mysql 4.1 sin perder los caracteres especiales]&lt;br /&gt;
*[http://ubuntulife.wordpress.com/2007/05/10/importar-una-base-de-datos-access-con-kexi/Convertir de Access a MySQL (Enlace corregido)]&lt;br /&gt;
*[http://ubuntulife.wordpress.com/2007/04/20/migrar-de-oracle-a-mysql-empleando-mysql-migration-toolkit/Migrar de Oracle a MySQL (Enlace corregido)]&lt;br /&gt;
 &lt;br /&gt;
[[Categoría: Administración del sistema]]&lt;/div&gt;</summary>
		<author><name>Linux&gt;Nacho</name></author>
		
	</entry>
</feed>