<?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>MixInformatico.com &#187; Mysql</title>
	<atom:link href="http://www.mixinformatico.com/category/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mixinformatico.com</link>
	<description>Reforzando tus ideas</description>
	<lastBuildDate>Sat, 31 Jul 2010 00:47:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Instalar Mytop</title>
		<link>http://www.mixinformatico.com/2010/05/11/instalar-mytop/</link>
		<comments>http://www.mixinformatico.com/2010/05/11/instalar-mytop/#comments</comments>
		<pubDate>Tue, 11 May 2010 05:04:59 +0000</pubDate>
		<dc:creator>javier</dc:creator>
				<category><![CDATA[Cpanel y whm]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[Sysadmin]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[whm]]></category>

		<guid isPermaLink="false">http://www.mixinformatico.com/?p=9247</guid>
		<description><![CDATA[bueno para los que trabajan con servidores Mytop es una buena herramienta, ya que sirve igualmente que el comando top solamente que vee el estado de consumo de mysql a nivel de servidor, asi podemos estar atento de cuales usuarios generan varias query en nuestro servidor y causan overloading, para instalar tienen que aplicar los [...]]]></description>
			<content:encoded><![CDATA[<p>bueno para los que trabajan con servidores Mytop es una buena herramienta, ya que sirve igualmente que el comando top solamente que vee el estado de consumo de mysql a nivel de servidor, asi podemos estar atento de cuales usuarios generan varias query en nuestro servidor y causan overloading, para instalar tienen que aplicar los siguientes comandos mediante ssh logueados como root:</p>
<p><strong>Descargamos Mytop</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="abap" style="font-family:monospace;">wget http<span style="color: #808080;">://</span>jeremy.zawodny.com<span style="color: #808080;">/</span>mysql<span style="color: #808080;">/</span>mytop<span style="color: #808080;">/</span>mytop<span style="color: #808080;">-</span>1.6.tar.gz</pre></td></tr></table></div>

<p><span id="more-9247"></span><br />
<strong>Descomprimimos y accedemos al directorio</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="abap" style="font-family:monospace;"> tar <span style="color: #808080;">-</span>zxvf mytop<span style="color: #808080;">-</span>1.6.tar.gz
cd mytop<span style="color: #808080;">-</span><span style="color: #3399ff;">1.6</span></pre></td></tr></table></div>

<p><strong>Instalamos Mytop</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="abap" style="font-family:monospace;">perl Makefile.PL
make
make install</pre></td></tr></table></div>

<p><strong>Ejecutamos Mytop con el siguiente comando</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="abap" style="font-family:monospace;">mytop</pre></td></tr></table></div>

<p><strong>en caso de que aparesca el siguiente error al ejecutar el comando:</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="abap" style="font-family:monospace;">Error <span style="color: #500066; text-transform: uppercase; font-weight: bold; zzz:keyword;">in</span> <span style="color: #500066; text-transform: uppercase; font-weight: bold; zzz:keyword;">option</span> spec<span style="color: #808080;">:</span> <span style="color: #808080; font-style: italic;">&quot;long|!&quot;</span></pre></td></tr></table></div>

<p><strong>tenemos que ejecutar lo siguiente:</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="abap" style="font-family:monospace;">nano <span style="color: #808080;">/</span>usr<span style="color: #808080;">/</span>bin<span style="color: #808080;">/</span>mytop</pre></td></tr></table></div>

<p><strong>buscamos la siguiente linea</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="abap" style="font-family:monospace;">db            <span style="color: #800080;">=</span>&gt; <span style="color: #4da619;">'test'</span>,</pre></td></tr></table></div>

<p><strong>y la dejamos de la siguiente manera</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="abap" style="font-family:monospace;">db            <span style="color: #800080;">=</span>&gt; <span style="color: #4da619;">''</span>,</pre></td></tr></table></div>

<p><strong>asi aplicamos el comando mytop a nivel de servidor y no solamente a una base de datos, ahora buscamos la siguiente linea</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="abap" style="font-family:monospace;"> <span style="color: #808080; font-style: italic;">&quot;long|!&quot;              =&gt; \$config{long_nums},</span></pre></td></tr></table></div>

<p><strong>y la comentamos para que quede de la siguiente forma:</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="abap" style="font-family:monospace;"># <span style="color: #808080; font-style: italic;">&quot;long|!&quot;              =&gt; \$config{long_nums},</span></pre></td></tr></table></div>

<p><strong>ahora ejecutamos mytop </strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mixinformatico.com/2010/05/11/instalar-mytop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Contador de Visitas en php y mysql</title>
		<link>http://www.mixinformatico.com/2010/03/27/contador-de-visitas-en-php-y-mysql/</link>
		<comments>http://www.mixinformatico.com/2010/03/27/contador-de-visitas-en-php-y-mysql/#comments</comments>
		<pubDate>Sat, 27 Mar 2010 23:30:27 +0000</pubDate>
		<dc:creator>dementexmaster</dc:creator>
				<category><![CDATA[Mysql]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[contador]]></category>
		<category><![CDATA[contador de visitas]]></category>

		<guid isPermaLink="false">http://www.mixinformatico.com/?p=9097</guid>
		<description><![CDATA[Que tal amigos de Mix informatico Aqui les traigo un contador el cual su funcion es: En una tabla de nuestra BD se guardan, La fecha y Hora de la visita y la direccion IP de la Maquina. Cada vez que se accede en la pagina el Script se activa y busca en la BD, [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Que tal amigos de Mix informatico Aqui les traigo un contador el cual su funcion es:</p>
<p style="text-align: justify;">En una tabla de nuestra BD se guardan, La fecha y Hora de la visita y la direccion IP de la Maquina. Cada vez que se accede en la pagina el Script se activa y busca en la BD, si encuentra la misma IP en un ragdo de tiempo dado, pasa por alto la visita, pero si la IP no se encuentra o supera dicho rango de tiempo (1minuto, 1 hora, 1 dia, etc.) depende del programador, almacena los datos.</p>
<p style="text-align: justify;">Por ultimo, corremos una linea que selecciona TODO el contenido de la tabla y nos muestra cuantos registros hay, que seria lo mismo que el numero real de visitas de la pagina web.</p>
<p style="text-align: justify;">En otras palabras, si entramos en la Web marcamos una visita, pero si damos Actualizar (F5), cerramos y volvemos a cargar, no acumularemos mas visitas&#8230;</p>
<p style="text-align: justify;"><strong><span style="color: #0000ff;">contador.sql</span></strong></p>
<p style="text-align: justify;">

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code"><pre class="mysql" style="font-family:monospace;"><span style="color: #990099; font-weight: bold;">CREATE</span> <span style="color: #990099; font-weight: bold;">TABLE</span> <span style="color: #008000;">`contador`</span> <span style="color: #FF00FF;">&#40;</span>   
 <span style="color: #008000;">`id`</span> <span style="color: #999900; font-weight: bold;">int</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">11</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #CC0099; font-weight: bold;">NOT</span> <span style="color: #9900FF; font-weight: bold;">NULL</span> <span style="color: #FF9900; font-weight: bold;">auto_increment</span><span style="color: #000033;">,</span>   
 <span style="color: #008000;">`ip`</span> <span style="color: #999900; font-weight: bold;">varchar</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">15</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #990099; font-weight: bold;">default</span> <span style="color: #9900FF; font-weight: bold;">NULL</span><span style="color: #000033;">,</span>   
 <span style="color: #008000;">`hora`</span> <span style="color: #999900; font-weight: bold;">varchar</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">8</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #990099; font-weight: bold;">default</span> <span style="color: #9900FF; font-weight: bold;">NULL</span><span style="color: #000033;">,</span>   
 <span style="color: #008000;">`fecha`</span> <span style="color: #999900; font-weight: bold;">varchar</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">20</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #990099; font-weight: bold;">default</span> <span style="color: #9900FF; font-weight: bold;">NULL</span><span style="color: #000033;">,</span>   
 <span style="color: #008000;">`horau`</span> <span style="color: #999900; font-weight: bold;">varchar</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">10</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #990099; font-weight: bold;">default</span> <span style="color: #9900FF; font-weight: bold;">NULL</span><span style="color: #000033;">,</span>   
 <span style="color: #008000;">`diau`</span> <span style="color: #000099;">char</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">3</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #990099; font-weight: bold;">default</span> <span style="color: #9900FF; font-weight: bold;">NULL</span><span style="color: #000033;">,</span>   
 <span style="color: #008000;">`aniou`</span> <span style="color: #999900; font-weight: bold;">varchar</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">4</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #990099; font-weight: bold;">default</span> <span style="color: #9900FF; font-weight: bold;">NULL</span><span style="color: #000033;">,</span>   
 <span style="color: #990099; font-weight: bold;">KEY</span> <span style="color: #008000;">`id`</span> <span style="color: #FF00FF;">&#40;</span><span style="color: #008000;">`id`</span><span style="color: #FF00FF;">&#41;</span>   
 <span style="color: #FF00FF;">&#41;</span> <span style="color: #990099; font-weight: bold;">TYPE</span><span style="color: #CC0099;">=</span>MyISAM <span style="color: #FF9900; font-weight: bold;">AUTO_INCREMENT</span><span style="color: #CC0099;">=</span><span style="color: #008080;">1</span><span style="color: #000033;">;</span></pre></td></tr></table></div>

<p><span id="more-9097"></span></p>
<p style="text-align: justify;"><strong><span style="color: #0000ff;">config.php</span></strong></p>
<p style="text-align: justify;">

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>   
 <span style="color: #000088;">$bd_host</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;Nombre del servidor de BD&quot;</span><span style="color: #339933;">;</span>   
 <span style="color: #000088;">$bd_usuario</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;Nombre de usuario de BD&quot;</span><span style="color: #339933;">;</span>   
 <span style="color: #000088;">$bd_password</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;Password de BD&quot;</span><span style="color: #339933;">;</span>   
 <span style="color: #000088;">$bd_base</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;Nombre de BD&quot;</span><span style="color: #339933;">;</span>   
 <span style="color: #000088;">$con</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_connect</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$bd_host</span><span style="color: #339933;">,</span> <span style="color: #000088;">$bd_usuario</span><span style="color: #339933;">,</span> <span style="color: #000088;">$bd_password</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>   
 <span style="color: #990000;">mysql_select_db</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$bd_base</span><span style="color: #339933;">,</span> <span style="color: #000088;">$con</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>   
 <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p style="text-align: justify;"><strong><span style="color: #0000ff;">contadordeuser.php</span></strong></p>
<p style="text-align: justify;">

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #b1b100;">require</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'config.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">//se requiere el archivo para validar los datos de usuario de bdd para conectar</span>
<span style="color: #000088;">$ip</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$REMOTE_ADDR</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$fecha</span> <span style="color: #339933;">=</span> <span style="color: #990000;">date</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;j \d\e\l n \d\e Y&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$hora</span> <span style="color: #339933;">=</span> <span style="color: #990000;">date</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;h:i:s&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$horau</span> <span style="color: #339933;">=</span> <span style="color: #990000;">date</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;h&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$diau</span> <span style="color: #339933;">=</span> <span style="color: #990000;">date</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;z&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$aniou</span> <span style="color: #339933;">=</span> <span style="color: #990000;">date</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Y&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">//se asignan la variables</span>
<span style="color: #000088;">$sql</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;SELECT aniou, diau, horau, ip &quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$sql</span><span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;FROM contador WHERE aniou LIKE '<span style="color: #006699; font-weight: bold;">$aniou</span>' AND diau LIKE '<span style="color: #006699; font-weight: bold;">$diau</span>' AND horau LIKE '<span style="color: #006699; font-weight: bold;">$horau</span>' AND ip LIKE '<span style="color: #006699; font-weight: bold;">$ip</span>' &quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$es</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_query</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$sql</span><span style="color: #339933;">,</span> <span style="color: #000088;">$con</span><span style="color: #009900;">&#41;</span> or <span style="color: #990000;">die</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Error al leer base de datos: &quot;</span><span style="color: #339933;">.</span><span style="color: #990000;">mysql_error</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">//se buscan los registros que coincidan con la hora,dia,año e ip  </span>
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">mysql_num_rows</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$es</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">&gt;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span><span style="color: #666666; font-style: italic;">//no se cuenta la visita</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">else</span>
<span style="color: #009900;">&#123;</span>
<span style="color: #000088;">$sql</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;INSERT INTO contador (id, ip, fecha, hora, horau, diau, aniou) &quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$sql</span><span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;VALUES ('','<span style="color: #006699; font-weight: bold;">$ip</span>','<span style="color: #006699; font-weight: bold;">$fecha</span>','<span style="color: #006699; font-weight: bold;">$hora</span>','<span style="color: #006699; font-weight: bold;">$horau</span>','<span style="color: #006699; font-weight: bold;">$diau</span>','<span style="color: #006699; font-weight: bold;">$aniou</span>')&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$es</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_query</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$sql</span><span style="color: #339933;">,</span> <span style="color: #000088;">$con</span><span style="color: #009900;">&#41;</span> or <span style="color: #990000;">die</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Error al grabar un mensaje: &quot;</span><span style="color: #339933;">.</span><span style="color: #990000;">mysql_error</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #666666; font-style: italic;">//creamos el condicionamiendo para logearlo o no.</span>
<span style="color: #000088;">$sql</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;SELECT * &quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$sql</span><span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;FROM contador WHERE id &quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$es</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_query</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$sql</span><span style="color: #339933;">,</span> <span style="color: #000088;">$con</span><span style="color: #009900;">&#41;</span> or <span style="color: #990000;">die</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Error al leer base de datos: &quot;</span><span style="color: #339933;">.</span><span style="color: #990000;">mysql_error</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$visitas</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_num_rows</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$es</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$men</span><span style="color: #339933;">=</span><span style="color: #000088;">$men</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;&lt;table width='9<span style="color: #009933; font-weight: bold;">%' b</span>order='1' height='25' bgcolor='#333333'&gt;&quot;</span> <span style="color: #339933;">.</span> <span style="color: #990000;">chr</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">10</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$men</span><span style="color: #339933;">=</span><span style="color: #000088;">$men</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;&lt;tr&gt;&quot;</span> <span style="color: #339933;">.</span> <span style="color: #990000;">chr</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">10</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$men</span><span style="color: #339933;">=</span><span style="color: #000088;">$men</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;&lt;td&gt;&lt;font color=#FFFFFF&gt;Visitas:<span style="color: #006699; font-weight: bold;">$visitas</span>&lt;/font&gt;&lt;/td&gt;&quot;</span> <span style="color: #339933;">.</span> <span style="color: #990000;">chr</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">10</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$men</span><span style="color: #339933;">=</span><span style="color: #000088;">$men</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;&lt;/tr&gt;&quot;</span> <span style="color: #339933;">.</span> <span style="color: #990000;">chr</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">10</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$men</span><span style="color: #339933;">=</span><span style="color: #000088;">$men</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;&lt;/table&gt;&quot;</span> <span style="color: #339933;">.</span> <span style="color: #990000;">chr</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">10</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p style="text-align: justify;"><strong><span style="color: #0000ff;">index.php</span></strong></p>
<p style="text-align: justify;">

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #b1b100;">require</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'contadordeuser.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$men</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.mixinformatico.com/2010/03/27/contador-de-visitas-en-php-y-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clonar una tabla MYSQL de forma rapida y sencilla</title>
		<link>http://www.mixinformatico.com/2010/03/25/clonar-una-tabla-mysql-de-forma-rapida-y-sencilla/</link>
		<comments>http://www.mixinformatico.com/2010/03/25/clonar-una-tabla-mysql-de-forma-rapida-y-sencilla/#comments</comments>
		<pubDate>Thu, 25 Mar 2010 16:56:48 +0000</pubDate>
		<dc:creator>javier</dc:creator>
				<category><![CDATA[Mysql]]></category>
		<category><![CDATA[Sysadmin]]></category>

		<guid isPermaLink="false">http://www.mixinformatico.com/?p=8924</guid>
		<description><![CDATA[Si dispones de acceso shell como root, una forma sencilla de clonar una tabla de una base de datos, tanto su estructura como contenido es la siguiente: 1 mysql&#62; CREATE TABLE tabla_destino SELECT * FROM tabla_origen;]]></description>
			<content:encoded><![CDATA[<p>Si dispones de acceso shell como root, una forma sencilla de clonar una tabla de una base de datos, tanto su estructura como contenido es la siguiente:<br />
<span id="more-8924"></span></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="abap" style="font-family:monospace;">mysql&gt; CREATE <span style="color: #500066; text-transform: uppercase; font-weight: bold; zzz:keyword;">TABLE</span> tabla_destino <span style="color: #005066; text-transform: uppercase; font-weight: bold; zzz:statement;">SELECT</span> <span style="color: #808080;">*</span> <span style="color: #500066; text-transform: uppercase; font-weight: bold; zzz:keyword;">FROM</span> tabla_origen;</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.mixinformatico.com/2010/03/25/clonar-una-tabla-mysql-de-forma-rapida-y-sencilla/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 1.134 seconds -->

