<?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>Pseudonerd &#187; banco de dados</title>
	<atom:link href="http://pseudonerd.com/category/banco-de-dados/feed" rel="self" type="application/rss+xml" />
	<link>http://pseudonerd.com</link>
	<description>blog sobre tecnologia e nerdices em geral!</description>
	<lastBuildDate>Tue, 15 May 2012 18:54:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Mysqlnd cannot connect to MySQL 4.1+ using the old insecure authentication.</title>
		<link>http://pseudonerd.com/php/mysqlnd-cannot-connect-to-mysql-4-1-using-the-old-insecure-authentication-490</link>
		<comments>http://pseudonerd.com/php/mysqlnd-cannot-connect-to-mysql-4-1-using-the-old-insecure-authentication-490#comments</comments>
		<pubDate>Mon, 26 Dec 2011 14:28:13 +0000</pubDate>
		<dc:creator>adlersd</dc:creator>
				<category><![CDATA[banco de dados]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programação]]></category>
		<category><![CDATA[password]]></category>

		<guid isPermaLink="false">http://pseudonerd.com/?p=490</guid>
		<description><![CDATA[mysqlnd cannot connect to MySQL 4.1+ using the old insecure authentication. Please use an administration tool to reset your password with the command SET PASSWORD = PASSWORD(‘your_existing_password’). This will store a new, and more secure, hash value in mysql.user. If this user is used in other scripts executed by PHP 5.2 or earlier you might [...]
Não existem posts relacionados.]]></description>
			<content:encoded><![CDATA[<blockquote><p>mysqlnd cannot connect to MySQL 4.1+ using the old insecure authentication. Please use an administration tool to reset your password with the command SET PASSWORD = PASSWORD(‘your_existing_password’). This will store a new, and more secure, hash value in mysql.user. If this user is used in other scripts executed by PHP 5.2 or earlier you might need to remove the old-passwords flag from your my.cnf file</p></blockquote>
<p>Você pode verificar se a senha do seu usuário foi criada no padrão antigo utilizando o comando a seguir (com uma conta que tenha acesso a essa tabela).</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="mysql" style="font-family:monospace;"><span style="color: #990099; font-weight: bold;">SELECT</span> <span style="color: #008000;">`User`</span><span style="color: #000033;">,</span> <span style="color: #008000;">`Host`</span><span style="color: #000033;">,</span> <span style="color: #000099;">Length</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008000;">`Password`</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #990099; font-weight: bold;">FROM</span> mysql.<span style="color: #000099;">user</span></pre></td></tr></table></div>

<p>Esse comando vai te mostrar o comprimento das senhas e irá retornar 16 para contas com senhas no padrão antigo e 41 para as contas com senhas novas (e, 0 para contas com nenhuma senha).</p>
<p>Se você tiver permissão, para recriar a senha no padrão &#8220;novo&#8221;, você pode utilizar as <em>queries</em> a seguir:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="mysql" style="font-family:monospace;"><span style="color: #990099; font-weight: bold;">SET</span> <span style="color: #000099;">PASSWORD</span> FOR <span style="color: #008000;">'User'</span>@<span style="color: #008000;">'Host'</span><span style="color: #CC0099;">=</span><span style="color: #000099;">PASSWORD</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008000;">'sua<span style="color: #008080; font-weight: bold;">_</span>senha'</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">;</span>
FLUSH <span style="color: #990099; font-weight: bold;">Privileges</span></pre></td></tr></table></div>

<p>Caso você não possa fazer isso, você pode tentar utilizar as <em>queries</em> abaixo e alterar o seu php para:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="mysql" style="font-family:monospace;"><span style="color: #990099; font-weight: bold;">SET</span> <span style="color: #990099; font-weight: bold;">SESSION</span> old_passwords<span style="color: #CC0099;">=</span><span style="color: #9900FF; font-weight: bold;">FALSE</span><span style="color: #000033;">;</span>
<span style="color: #990099; font-weight: bold;">SET</span> <span style="color: #000099;">PASSWORD</span> <span style="color: #CC0099;">=</span> <span style="color: #000099;">PASSWORD</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008000;">'[your password]'</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">;</span></pre></td></tr></table></div>


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'CLIENT_LONG_PASSWORD'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">mysql_connect</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'[endereco_servidor]'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'[nome_de_usuario]'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'[sua_senha]'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span> CLIENT_LONG_PASSWORD<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>abraço,<br />
até…</p>
<p>Não existem posts relacionados.</p>]]></content:encoded>
			<wfw:commentRss>http://pseudonerd.com/php/mysqlnd-cannot-connect-to-mysql-4-1-using-the-old-insecure-authentication-490/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Depurando erros com php e mysql</title>
		<link>http://pseudonerd.com/php/depurando-erros-com-php-e-mysql-313</link>
		<comments>http://pseudonerd.com/php/depurando-erros-com-php-e-mysql-313#comments</comments>
		<pubDate>Mon, 05 Jan 2009 17:25:25 +0000</pubDate>
		<dc:creator>adlersd</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programação]]></category>
		<category><![CDATA[mysql_errno()]]></category>
		<category><![CDATA[mysql_error()]]></category>

		<guid isPermaLink="false">http://pseudonerd.com/?p=313</guid>
		<description><![CDATA[Quando você está trabalhando com banco de dados, nesse caso Php e MySQL é muito útil para o desenvolvedor obter informações nais detalhadas sobre o problema, de forma que o problema fique mais explícito, ficando mais fácil arrumá-lo. Você pode utilizar o mysql_error() e o mysql_errno() para obter a mensagem de erro do mysql e [...]
Não existem posts relacionados.]]></description>
			<content:encoded><![CDATA[<p>Quando você está trabalhando com banco de dados, nesse caso Php e MySQL é muito útil para o desenvolvedor obter informações nais detalhadas sobre o problema, de forma que o problema fique mais explícito, ficando mais fácil arrumá-lo.</p>
<p>Você pode utilizar o <a href="http://br.php.net/mysql_error">mysql_error()</a> e o <a href="http://br.php.net/mysql_errno">mysql_errno()</a> para obter a mensagem de erro do mysql e colocá-la na tela para você.</p>
<p>mysql_error() -&gt; Retorna o texto da mensagem de erro da operação MySQL anterior.</p>
<p>mysql_errno() -&gt; Retorna o valor numérico da mensagem de erro da operação MySQL anterior.</p>
<p>Um exemplo de como utilizar o mysql_error():</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">mysql_connect</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;localhost&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;username&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;password&quot;</span><span style="color: #009900;">&#41;</span> or <span style="color: #990000;">die</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">mysql_error</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span></pre></td></tr></table></div>

<p>O exemplo abaixo retornará um erro se houver um problema de conexão com seu banco de dados MySQL:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">$valor</span> = mysql_query<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #007800;">$query</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> or die<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #ff0000;">&quot;Ocorreu um erro no MySQL.&amp;lt;br /&amp;gt;Query utilizada: &quot;</span> . <span style="color: #007800;">$your_query</span> . <span style="color: #ff0000;">&quot;&amp;lt;br /&amp;gt; Erro: (&quot;</span> . mysql_errno<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> . <span style="color: #ff0000;">&quot;) &quot;</span> . mysql_error<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></td></tr></table></div>

<p>abraço,<br />
até&#8230;</p>
<p>Não existem posts relacionados.</p>]]></content:encoded>
			<wfw:commentRss>http://pseudonerd.com/php/depurando-erros-com-php-e-mysql-313/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>MySql: Converter VARCHAR para DATE</title>
		<link>http://pseudonerd.com/banco-de-dados/mysql-converter-varchar-para-date-231</link>
		<comments>http://pseudonerd.com/banco-de-dados/mysql-converter-varchar-para-date-231#comments</comments>
		<pubDate>Wed, 03 Sep 2008 18:18:42 +0000</pubDate>
		<dc:creator>adlersd</dc:creator>
				<category><![CDATA[banco de dados]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[date_format]]></category>
		<category><![CDATA[mysql5]]></category>
		<category><![CDATA[str_to_date]]></category>

		<guid isPermaLink="false">http://pseudonerd.com/?p=231</guid>
		<description><![CDATA[Se, por algum motivo, um campo data do seu banco de dados foi criado como VARCHAR e você precisa mascarar o resultado de um SELECT em um campo. Como esse campo é VARCHAR não é possível utilizar somente máscara conforme esse post esse post. Além de utilizar a máscara você precisa converter a informação do [...]
Não existem posts relacionados.]]></description>
			<content:encoded><![CDATA[<p>Se, por algum motivo, um campo data do seu banco de dados foi criado como VARCHAR e você precisa mascarar o resultado de um SELECT em um campo.</p>
<p>Como esse campo é VARCHAR não é possível utilizar somente máscara conforme esse post <a title="formatando data em uma maskedtextbox" href="http://pseudonerd.com/2008/07/18/formatando-data-em-uma-maskedtextbox/">esse post</a>.</p>
<p>Além de utilizar a máscara você precisa converter a informação do campo para o tipo data, uma vez que até então ela é só uma string. Para essa tarefa o MySql 5 conta com o date_format! O que torna essa tarefa muito mais simples.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="mysql" style="font-family:monospace;"><span style="color: #990099; font-weight: bold;">select</span> <span style="color: #000099;">DATE_FORMAT</span><span style="color: #FF00FF;">&#40;</span><span style="color: #000099;">str_to_date</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008000;">'1/1/2008'</span><span style="color: #000033;">,</span> <span style="color: #008000;">&quot;<span style="color: #008080; font-weight: bold;">%</span>d/<span style="color: #008080; font-weight: bold;">%</span>m/<span style="color: #008080; font-weight: bold;">%</span>Y&quot;</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">,</span> <span style="color: #008000;">&quot;<span style="color: #008080; font-weight: bold;">%</span>d/<span style="color: #008080; font-weight: bold;">%</span>m/<span style="color: #008080; font-weight: bold;">%</span>Y&quot;</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">;</span></pre></td></tr></table></div>

<p>Como você provavelmente irá precisar utilizar esse campo depois o ideal é utilizar um nome que torne a manipulação mais prática:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="mysql" style="font-family:monospace;"><span style="color: #990099; font-weight: bold;">select</span> <span style="color: #000099;">DATE_FORMAT</span><span style="color: #FF00FF;">&#40;</span><span style="color: #000099;">str_to_date</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008000;">'1/1/2008'</span><span style="color: #000033;">,</span> <span style="color: #008000;">&quot;<span style="color: #008080; font-weight: bold;">%</span>d/<span style="color: #008080; font-weight: bold;">%</span>m/<span style="color: #008080; font-weight: bold;">%</span>Y&quot;</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">,</span> <span style="color: #008000;">&quot;<span style="color: #008080; font-weight: bold;">%</span>d/<span style="color: #008080; font-weight: bold;">%</span>m/<span style="color: #008080; font-weight: bold;">%</span>Y&quot;</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #990099; font-weight: bold;">AS</span> date_column<span style="color: #000033;">;</span></pre></td></tr></table></div>

<p>Um exemplo final,  caso a coluna da tabela fosse dataNascimento:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="mysql" style="font-family:monospace;"><span style="color: #990099; font-weight: bold;">SELECT</span> <span style="color: #000099;">date_format</span><span style="color: #FF00FF;">&#40;</span><span style="color: #000099;">str_to_date</span><span style="color: #FF00FF;">&#40;</span>dataNascimento<span style="color: #000033;">,</span> <span style="color: #008000;">&quot;<span style="color: #008080; font-weight: bold;">%</span>d/<span style="color: #008080; font-weight: bold;">%</span>m/<span style="color: #008080; font-weight: bold;">%</span>Y&quot;</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">,</span><span style="color: #008000;">&quot;<span style="color: #008080; font-weight: bold;">%</span>d/<span style="color: #008080; font-weight: bold;">%</span>m/<span style="color: #008080; font-weight: bold;">%</span>Y&quot;</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #990099; font-weight: bold;">AS</span> dataNascimento <span style="color: #990099; font-weight: bold;">FROM</span> tbcliente <span style="color: #990099; font-weight: bold;">WHERE</span> CodCliente <span style="color: #CC0099;">=</span> <span style="color: #008080;">44</span><span style="color: #000033;">;</span></pre></td></tr></table></div>

<p>abraço,</p>
<p>até&#8230;</p>
<p>Não existem posts relacionados.</p>]]></content:encoded>
			<wfw:commentRss>http://pseudonerd.com/banco-de-dados/mysql-converter-varchar-para-date-231/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Instalar Apache, PHP5, MySQL5, ADODB no Debian Etch</title>
		<link>http://pseudonerd.com/linux/instalar-apache-php5-mysql5-adodb-no-debian-etch-2-143</link>
		<comments>http://pseudonerd.com/linux/instalar-apache-php5-mysql5-adodb-no-debian-etch-2-143#comments</comments>
		<pubDate>Wed, 16 Jan 2008 19:45:55 +0000</pubDate>
		<dc:creator>adlersd</dc:creator>
				<category><![CDATA[apache]]></category>
		<category><![CDATA[banco de dados]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[adodb]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[mysql5]]></category>
		<category><![CDATA[php5]]></category>

		<guid isPermaLink="false">http://limitado.wordpress.com/2008/01/16/instalando-apache-php5-mysql5-adodb-no-debian-etch/</guid>
		<description><![CDATA[Instalando Apache2 no Debian: 1 Debian 4.0 : # apt-get -y install apache2 Instalando Apache2 + PHP5: 1 Debian 4.0 : # apt-get -y install libapache2-mod-php5 php5-cli php5-common php5-cgi Iniciando Apache: 1 Debian 4.0 : # /etc/init.d/apache2 start Parando Apache: 1 Debian 4.0 : # /etc/init.d/apache2 stop Reiniciando Apache: 1 Debian 4.0 : # /etc/init.d/apache2 [...]
Não existem posts relacionados.]]></description>
			<content:encoded><![CDATA[<p><b>Instalando Apache2 no Debian:</b></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">Debian <span style="color: #000000;">4.0</span> : <span style="color: #666666; font-style: italic;"># apt-get -y install apache2</span></pre></td></tr></table></div>

<p><b>Instalando Apache2 + PHP5:</b></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">Debian <span style="color: #000000;">4.0</span> : <span style="color: #666666; font-style: italic;"># apt-get -y install libapache2-mod-php5 php5-cli php5-common php5-cgi</span></pre></td></tr></table></div>

<p><b>Iniciando Apache:</b></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">Debian <span style="color: #000000;">4.0</span> : <span style="color: #666666; font-style: italic;"># /etc/init.d/apache2 start</span></pre></td></tr></table></div>

<p><b>Parando Apache:</b></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">Debian <span style="color: #000000;">4.0</span> : <span style="color: #666666; font-style: italic;"># /etc/init.d/apache2 stop</span></pre></td></tr></table></div>

<p><b>Reiniciando Apache:</b></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">Debian <span style="color: #000000;">4.0</span> : <span style="color: #666666; font-style: italic;"># /etc/init.d/apache2 restart</span></pre></td></tr></table></div>

<p><b>Habilitando Módulos no Apache2:</b></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">Debian <span style="color: #000000;">4.0</span> : <span style="color: #666666; font-style: italic;"># a2enmod</span>
Which module would you like to <span style="color: #7a0874; font-weight: bold;">enable</span>?
Your choices are: actions <span style="color: #7a0874; font-weight: bold;">alias</span> asis auth_basic auth_digest authn_alias authn_anon authn_dbd authn_dbm authn_default authn_file authnz_ldap authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cern_meta cgid cgi charset_lite dav_fs dav dav_lock dbd deflate <span style="color: #c20cb9; font-weight: bold;">dir</span> disk_cache dump_io <span style="color: #c20cb9; font-weight: bold;">env</span> expires ext_filter file_cache filter headers ident imagemap include info ldap log_forensic mem_cache mime mime_magic negotiation php5 proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http proxy rewrite setenvif speling ssl status suexec unique_id userdir usertrack version vhost_alias
Module name?</pre></td></tr></table></div>

<p><i>** Após habilitar algum módulo é necessário reiniciar o apache **</i></p>
<p><b>Desabilitando Módulos no Apache2:</b></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">Debian <span style="color: #000000;">4.0</span> : <span style="color: #666666; font-style: italic;"># a2dismod</span>
Which module would you like to disable?
Your choices are: <span style="color: #7a0874; font-weight: bold;">alias</span> auth_basic authn_file authz_default authz_groupfile authz_host authz_user autoindex cgi <span style="color: #c20cb9; font-weight: bold;">dir</span> <span style="color: #c20cb9; font-weight: bold;">env</span> mime negotiation php5 setenvif status
Module name?</pre></td></tr></table></div>

<p><i>** Após desabilitar algum módulo é necessário reiniciar o apache **</i></p>
<p><b>Instalando MySQL5:</b></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">Debian <span style="color: #000000;">4.0</span> : <span style="color: #666666; font-style: italic;"># apt-get -y install mysql-common mysql-server mysql-server-5.0</span></pre></td></tr></table></div>

<p><b>Definindo senha de root para o MySQL:</b></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">Debian <span style="color: #000000;">4.0</span> : <span style="color: #666666; font-style: italic;"># mysqladmin -u root -p password 'definir_senha_para_root'</span></pre></td></tr></table></div>

<p><b>Criando Banco de dados:</b></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">Debian <span style="color: #000000;">4.0</span> : <span style="color: #666666; font-style: italic;"># mysqladmin -p create nome_do_banco_de_dados</span>
Enter password:</pre></td></tr></table></div>

<p><b>Definindo novo usuário e garantindo permissões:</b></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">mysql <span style="color: #660033;">-u</span> root <span style="color: #660033;">-p</span>
Enter Password: <span style="color: #000000; font-weight: bold;">*****</span>
mysql<span style="color: #000000; font-weight: bold;">&gt;</span> create user <span style="color: #ff0000;">'NovoUsuario'</span><span style="color: #000000; font-weight: bold;">@</span>localhost identified by <span style="color: #ff0000;">'Password'</span>;
mysql<span style="color: #000000; font-weight: bold;">&gt;</span> GRANT ALL PRIVILEGES ON <span style="color: #000000; font-weight: bold;">&lt;/</span>i<span style="color: #000000; font-weight: bold;">&gt;&lt;</span>i<span style="color: #000000; font-weight: bold;">&gt;</span>nome_do_banco_de_dados . <span style="color: #000000; font-weight: bold;">*</span> TO NovoUsuario<span style="color: #000000; font-weight: bold;">@</span><span style="color: #ff0000;">'localhost'</span>;
mysql<span style="color: #000000; font-weight: bold;">&gt;</span> FLUSH PRIVILEGES;
mysql<span style="color: #000000; font-weight: bold;">&gt;</span> quit</pre></td></tr></table></div>

<p><b>Instalando Adodb:</b></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">Debian <span style="color: #000000;">4.0</span> : <span style="color: #666666; font-style: italic;"># apt-get -y install libphp-adodb</span></pre></td></tr></table></div>

<p><b>Reiniciando Apache para que todas as mudanças entrem em vigor:</b></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">Debian <span style="color: #000000;">4.0</span> : <span style="color: #666666; font-style: italic;"># /etc/init.d/apache2 restart</span></pre></td></tr></table></div>

<p><b>Testando php:</b></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">Debian <span style="color: #000000;">4.0</span> : <span style="color: #666666; font-style: italic;"># echo &quot;&lt;?php phpinfo(); ?&gt;&quot; &gt;&gt; /var/www/teste.php</span>
agora é só escolher o seu navegador e abrir http:<span style="color: #000000; font-weight: bold;">//</span>localhost<span style="color: #000000; font-weight: bold;">/</span>teste.php ou ip_do_seu_servidor<span style="color: #000000; font-weight: bold;">/</span>teste.php</pre></td></tr></table></div>

<p>abraço,<br />
t++</p>
<p>Não existem posts relacionados.</p>]]></content:encoded>
			<wfw:commentRss>http://pseudonerd.com/linux/instalar-apache-php5-mysql5-adodb-no-debian-etch-2-143/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

