<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Itimag.com &#187; BBDD</title>
	<atom:link href="http://www.itimag.com/tag/bbdd/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.itimag.com</link>
	<description>Blog de un Ingeniero Informático</description>
	<lastBuildDate>Mon, 09 Jan 2012 11:54:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Instalar MySQL en el servidor Linux</title>
		<link>http://www.itimag.com/unix/myslq/instalar-mysql-en-el-servidor-linux/</link>
		<comments>http://www.itimag.com/unix/myslq/instalar-mysql-en-el-servidor-linux/#comments</comments>
		<pubDate>Mon, 17 Nov 2008 21:57:01 +0000</pubDate>
		<dc:creator>Itimag</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[BBDD]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[servidor]]></category>

		<guid isPermaLink="false">http://www.itimag.net/?p=417</guid>
		<description><![CDATA[Para instalar MySQL, debemos abrir una nueva consola, hacer login como root y ejecutar el siguiente comando: su apt-get install mysql-server mysql-client libmysqlclient15-dev Como nosotros queremos que MySQL escuche a todas las peticiones de internet y no únicamente las de localhost, tenemos que editar el fichero /etc/mysql/my.cnf y comentar la linea “bind-address = 127.0.0.1”: nano [...]]]></description>
			<content:encoded><![CDATA[<p>Para instalar MySQL, debemos abrir una nueva consola, hacer login como root y ejecutar el siguiente comando:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">su</span>
<span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> mysql-server mysql-client libmysqlclient15-dev</pre></div></div>

<p>Como nosotros queremos que MySQL escuche a todas las peticiones de internet y no únicamente las de localhost, tenemos que editar el fichero /etc/mysql/my.cnf y comentar la linea “bind-address = 127.0.0.1”:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>mysql<span style="color: #000000; font-weight: bold;">/</span>my.cnf</pre></div></div>

<p>El fichero resultante debe quedar así:</p>

<div class="wp_syntax"><div class="code"><pre class="null" style="font-family:monospace;">[...]
#bind-address           = 127.0.0.1
[...]</pre></div></div>

<p>Ahora reiniciamos MySQL para que los cambios surjan efecto:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>mysql restart</pre></div></div>

<p>Ahora chequeamos que el servicio se encuentre en escucha. Para ello ejecutamos:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">netstat</span> <span style="color: #660033;">-tap</span></pre></div></div>

<p>Y debemos ver una linea como esta:</p>

<div class="wp_syntax"><div class="code"><pre class="null" style="font-family:monospace;">tcp       0      0 *:mysql                 *:*                     LISTEN      3281/mysqld</pre></div></div>

<p>Con la finalidad de proteger mysql y que nadie pueda acceder sin ser autentificado , <strong>debemos asignar una contraseña</strong> al usuario root:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mysqladmin <span style="color: #660033;">-u</span> root password tu_contraseña
mysqladmin <span style="color: #660033;">-h</span> server1.mi_dominio.com <span style="color: #660033;">-u</span> root password tu_contraseña</pre></div></div>

<p><strong>Nota</strong>: tu_contraseña debe ser substituido por tu contraseña y server1.mi_dominio.com por el tuyo.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.itimag.com/unix/myslq/instalar-mysql-en-el-servidor-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

