<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="es">
	<id>http://wiki.cabal.mx/index.php?action=history&amp;feed=atom&amp;title=Curso_de_Programaci%C3%B3n_en_Python%2FMySQL-2</id>
	<title>Curso de Programación en Python/MySQL-2 - Historial de revisiones</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.cabal.mx/index.php?action=history&amp;feed=atom&amp;title=Curso_de_Programaci%C3%B3n_en_Python%2FMySQL-2"/>
	<link rel="alternate" type="text/html" href="http://wiki.cabal.mx/index.php?title=Curso_de_Programaci%C3%B3n_en_Python/MySQL-2&amp;action=history"/>
	<updated>2026-05-18T14:04:57Z</updated>
	<subtitle>Historial de revisiones para esta página en el wiki</subtitle>
	<generator>MediaWiki 1.32.1</generator>
	<entry>
		<id>http://wiki.cabal.mx/index.php?title=Curso_de_Programaci%C3%B3n_en_Python/MySQL-2&amp;diff=7014&amp;oldid=prev</id>
		<title>Rrc: Página creada con &#039;__NOTOC__ *  MySQL-2.py  == MySQL-2.py ==  &lt;syntaxhighlight lang=&quot;python&quot; line=&quot;GESHI_FANCY_LINE_NUMBERS&quot;&gt;  #!/usr/bin/python #-*-coding: utf-8 -*-  import mysql....&#039;</title>
		<link rel="alternate" type="text/html" href="http://wiki.cabal.mx/index.php?title=Curso_de_Programaci%C3%B3n_en_Python/MySQL-2&amp;diff=7014&amp;oldid=prev"/>
		<updated>2015-01-08T23:52:46Z</updated>

		<summary type="html">&lt;p&gt;Página creada con &amp;#039;__NOTOC__ * &lt;a href=&quot;#MySQL-2&quot;&gt; MySQL-2.py&lt;/a&gt;  == MySQL-2.py ==  &amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot; line=&amp;quot;GESHI_FANCY_LINE_NUMBERS&amp;quot;&amp;gt;  #!/usr/bin/python #-*-coding: utf-8 -*-  import mysql....&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Página nueva&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
* [[:#MySQL-2 | MySQL-2.py]]&lt;br /&gt;
&lt;br /&gt;
== MySQL-2.py ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot; line=&amp;quot;GESHI_FANCY_LINE_NUMBERS&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
#!/usr/bin/python&lt;br /&gt;
#-*-coding: utf-8 -*-&lt;br /&gt;
&lt;br /&gt;
import mysql.connector&lt;br /&gt;
from mysql.connector import errorcode&lt;br /&gt;
&lt;br /&gt;
config = {&lt;br /&gt;
  &amp;#039;user&amp;#039;: &amp;#039;PythonClase&amp;#039;,&lt;br /&gt;
  &amp;#039;password&amp;#039;: &amp;#039;Py800se&amp;#039;,&lt;br /&gt;
  &amp;#039;host&amp;#039;: &amp;#039;127.0.0.1&amp;#039;,&lt;br /&gt;
  &amp;#039;database&amp;#039;: &amp;#039;PythonClase&amp;#039;,&lt;br /&gt;
  &amp;#039;raise_on_warnings&amp;#039;: True,&lt;br /&gt;
  &amp;#039;unix_socket&amp;#039;: &amp;#039;/var/lib/mysql/mysql.sock&amp;#039;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
try:&lt;br /&gt;
  Conn = mysql.connector.connect(**config)&lt;br /&gt;
except mysql.connector.Error as err:&lt;br /&gt;
  if err.errno == errorcode.ER_ACCESS_DENIED_ERROR:&lt;br /&gt;
    print( &amp;quot;UsuarioNombre o Contraseña incorrecto&amp;quot; )&lt;br /&gt;
  elif err.errno == errorcode.ER_BAD_DB_ERROR:&lt;br /&gt;
    print( &amp;quot;Base de Datos no existe&amp;quot; )&lt;br /&gt;
  else:&lt;br /&gt;
    print( err )&lt;br /&gt;
else:&lt;br /&gt;
  Conn.close()&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Programación en Python]]&lt;br /&gt;
[[Category:PythonCabal]]&lt;br /&gt;
[[Category:CursoPython]]&lt;/div&gt;</summary>
		<author><name>Rrc</name></author>
		
	</entry>
</feed>