<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comentarios en: 1005 &#8211; Can&#8217;t create table &#8216;xxx&#8217; (errno: 150)</title>
	<atom:link href="http://www.neleste.com/1005-cant-create-table-xxx-errno-150/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.neleste.com/1005-cant-create-table-xxx-errno-150/</link>
	<description>Información sobre Desarrollo Web</description>
	<lastBuildDate>Tue, 07 Feb 2012 15:57:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Por: Fivezon3</title>
		<link>http://www.neleste.com/1005-cant-create-table-xxx-errno-150/comment-page-1/#comment-3569</link>
		<dc:creator>Fivezon3</dc:creator>
		<pubDate>Wed, 01 Feb 2012 04:23:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.neleste.com/1005-cant-create-table-xxx-errno-150/#comment-3569</guid>
		<description>&lt;strong&gt;Skyz3...&lt;/strong&gt;

Wonderful blog post, saw on...</description>
		<content:encoded><![CDATA[<p><strong>Skyz3&#8230;</strong></p>
<p>Wonderful blog post, saw on&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: Jabbertyp3</title>
		<link>http://www.neleste.com/1005-cant-create-table-xxx-errno-150/comment-page-1/#comment-3566</link>
		<dc:creator>Jabbertyp3</dc:creator>
		<pubDate>Tue, 31 Jan 2012 18:38:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.neleste.com/1005-cant-create-table-xxx-errno-150/#comment-3566</guid>
		<description>&lt;strong&gt;Gabste3...&lt;/strong&gt;

Great blog post, saw on...</description>
		<content:encoded><![CDATA[<p><strong>Gabste3&#8230;</strong></p>
<p>Great blog post, saw on&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: Jaime</title>
		<link>http://www.neleste.com/1005-cant-create-table-xxx-errno-150/comment-page-1/#comment-3355</link>
		<dc:creator>Jaime</dc:creator>
		<pubDate>Fri, 30 Sep 2011 21:01:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.neleste.com/1005-cant-create-table-xxx-errno-150/#comment-3355</guid>
		<description>Falta una causa más. Las tablas involucradas deben ser InnoDB.... si alguna de ellas es MyISAM, devolverá el error.

Salu2</description>
		<content:encoded><![CDATA[<p>Falta una causa más. Las tablas involucradas deben ser InnoDB&#8230;. si alguna de ellas es MyISAM, devolverá el error.</p>
<p>Salu2</p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: ariel</title>
		<link>http://www.neleste.com/1005-cant-create-table-xxx-errno-150/comment-page-1/#comment-3351</link>
		<dc:creator>ariel</dc:creator>
		<pubDate>Thu, 15 Sep 2011 14:39:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.neleste.com/1005-cant-create-table-xxx-errno-150/#comment-3351</guid>
		<description>Quería comentarles, que a mi me acaba de suceder ese error y no era ninguna de esas dos opciones, sino una tercera:

* cuando ya existe en otra tabla el nombre de la clave foranea que estas creando tira este susodicho error.

saludos</description>
		<content:encoded><![CDATA[<p>Quería comentarles, que a mi me acaba de suceder ese error y no era ninguna de esas dos opciones, sino una tercera:</p>
<p>* cuando ya existe en otra tabla el nombre de la clave foranea que estas creando tira este susodicho error.</p>
<p>saludos</p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: atapuerkas</title>
		<link>http://www.neleste.com/1005-cant-create-table-xxx-errno-150/comment-page-1/#comment-3281</link>
		<dc:creator>atapuerkas</dc:creator>
		<pubDate>Tue, 23 Aug 2011 10:43:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.neleste.com/1005-cant-create-table-xxx-errno-150/#comment-3281</guid>
		<description>Que alguien me ayude, he comprobado la codificacion de las tablas, codificacion de los campos, que sean exactamente del mismo tipo y que admitan exactamente lo mismo y sigue sin dejarme.

Esto me dice:

ERROR 1005: Can&#039;t create table &#039;shooterbd.#sql-430_af&#039; (errno: 150)

SQL Statement:

ALTER TABLE `shooterbd`.`bot` 

  ADD CONSTRAINT `USUARIOSFK`

  FOREIGN KEY (`propietario` )

  REFERENCES `shooterbd`.`usuario` (`nombre` )

  ON DELETE CASCADE

  ON UPDATE CASCADE

, ADD INDEX `USUARIOSFK` (`propietario` ASC)



ERROR: Error when running failback script. Details follow.



ERROR 1046: No database selected

SQL Statement:

CREATE TABLE `bot` (

  `idBot` int(11) NOT NULL AUTO_INCREMENT,

  `propietario` varchar(20) NOT NULL,

  `posicion_lat` bigint(20) NOT NULL DEFAULT &#039;0&#039;,

  `posicion_lon` bigint(20) NOT NULL DEFAULT &#039;0&#039;,

  `destino_lat` bigint(20) NOT NULL DEFAULT &#039;0&#039;,

  `destino_lon` bigint(20) NOT NULL DEFAULT &#039;0&#039;,

  PRIMARY KEY (`idBot`,`propietario`)

) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8</description>
		<content:encoded><![CDATA[<p>Que alguien me ayude, he comprobado la codificacion de las tablas, codificacion de los campos, que sean exactamente del mismo tipo y que admitan exactamente lo mismo y sigue sin dejarme.</p>
<p>Esto me dice:</p>
<p>ERROR 1005: Can&#8217;t create table &#8217;shooterbd.#sql-430_af&#8217; (errno: 150)</p>
<p>SQL Statement:</p>
<p>ALTER TABLE `shooterbd`.`bot` </p>
<p>  ADD CONSTRAINT `USUARIOSFK`</p>
<p>  FOREIGN KEY (`propietario` )</p>
<p>  REFERENCES `shooterbd`.`usuario` (`nombre` )</p>
<p>  ON DELETE CASCADE</p>
<p>  ON UPDATE CASCADE</p>
<p>, ADD INDEX `USUARIOSFK` (`propietario` ASC)</p>
<p>ERROR: Error when running failback script. Details follow.</p>
<p>ERROR 1046: No database selected</p>
<p>SQL Statement:</p>
<p>CREATE TABLE `bot` (</p>
<p>  `idBot` int(11) NOT NULL AUTO_INCREMENT,</p>
<p>  `propietario` varchar(20) NOT NULL,</p>
<p>  `posicion_lat` bigint(20) NOT NULL DEFAULT &#8216;0&#8242;,</p>
<p>  `posicion_lon` bigint(20) NOT NULL DEFAULT &#8216;0&#8242;,</p>
<p>  `destino_lat` bigint(20) NOT NULL DEFAULT &#8216;0&#8242;,</p>
<p>  `destino_lon` bigint(20) NOT NULL DEFAULT &#8216;0&#8242;,</p>
<p>  PRIMARY KEY (`idBot`,`propietario`)</p>
<p>) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8</p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: Pablo</title>
		<link>http://www.neleste.com/1005-cant-create-table-xxx-errno-150/comment-page-1/#comment-3279</link>
		<dc:creator>Pablo</dc:creator>
		<pubDate>Mon, 18 Jul 2011 15:11:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.neleste.com/1005-cant-create-table-xxx-errno-150/#comment-3279</guid>
		<description>A mi me salta el error aún cuando no tengo esos defectos estructurales. Pero estaba creando una FK por cada campo cuando en realidad hacia referencia a una llave compuesta, entonces hice una sola FK que hiciera referencia a todos los campos de la llave compuesta y dejó de molestar el error.

Saludos</description>
		<content:encoded><![CDATA[<p>A mi me salta el error aún cuando no tengo esos defectos estructurales. Pero estaba creando una FK por cada campo cuando en realidad hacia referencia a una llave compuesta, entonces hice una sola FK que hiciera referencia a todos los campos de la llave compuesta y dejó de molestar el error.</p>
<p>Saludos</p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: carlos d torres</title>
		<link>http://www.neleste.com/1005-cant-create-table-xxx-errno-150/comment-page-1/#comment-3273</link>
		<dc:creator>carlos d torres</dc:creator>
		<pubDate>Wed, 15 Jun 2011 20:19:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.neleste.com/1005-cant-create-table-xxx-errno-150/#comment-3273</guid>
		<description>muchas gracias amigo que buena ayuda brindaste con eso</description>
		<content:encoded><![CDATA[<p>muchas gracias amigo que buena ayuda brindaste con eso</p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: Marcos</title>
		<link>http://www.neleste.com/1005-cant-create-table-xxx-errno-150/comment-page-1/#comment-3262</link>
		<dc:creator>Marcos</dc:creator>
		<pubDate>Thu, 17 Mar 2011 15:19:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.neleste.com/1005-cant-create-table-xxx-errno-150/#comment-3262</guid>
		<description>Pues efectivamente, a mi no es la primera vez que me pasa. Y como siempre pasa tiempo entre que hago una base de datos y otra siempre se me olvida xD.

Muchas gracias!!!!!!!!!</description>
		<content:encoded><![CDATA[<p>Pues efectivamente, a mi no es la primera vez que me pasa. Y como siempre pasa tiempo entre que hago una base de datos y otra siempre se me olvida xD.</p>
<p>Muchas gracias!!!!!!!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: hectorvivas</title>
		<link>http://www.neleste.com/1005-cant-create-table-xxx-errno-150/comment-page-1/#comment-3258</link>
		<dc:creator>hectorvivas</dc:creator>
		<pubDate>Sun, 13 Feb 2011 23:34:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.neleste.com/1005-cant-create-table-xxx-errno-150/#comment-3258</guid>
		<description>AL FINNNNNNNNNNNN.
El problema mio era que tenia en las FK el nombre de las tablas con algunas letras mayusculas, y como el servidor donde esta la BD es linux  las tablas de referencia estaban creadas en minusculas.

muchas gracias porque tratando de buscar las soluciones puestas encontre este tonto error.

saludos</description>
		<content:encoded><![CDATA[<p>AL FINNNNNNNNNNNN.<br />
El problema mio era que tenia en las FK el nombre de las tablas con algunas letras mayusculas, y como el servidor donde esta la BD es linux  las tablas de referencia estaban creadas en minusculas.</p>
<p>muchas gracias porque tratando de buscar las soluciones puestas encontre este tonto error.</p>
<p>saludos</p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: nahiko</title>
		<link>http://www.neleste.com/1005-cant-create-table-xxx-errno-150/comment-page-1/#comment-3254</link>
		<dc:creator>nahiko</dc:creator>
		<pubDate>Tue, 25 Jan 2011 12:37:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.neleste.com/1005-cant-create-table-xxx-errno-150/#comment-3254</guid>
		<description>God bless you!!

Me has ahorrado con este &quot;truco&quot; o esta chivada un buen rato :D

Gracias!!</description>
		<content:encoded><![CDATA[<p>God bless you!!</p>
<p>Me has ahorrado con este &#8220;truco&#8221; o esta chivada un buen rato <img src='http://www.neleste.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>Gracias!!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

