<?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>HowToBSD &#187; mysql</title>
	<atom:link href="http://howtobsd.com/tag/mysql/feed" rel="self" type="application/rss+xml" />
	<link>http://howtobsd.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Tue, 11 Feb 2014 11:21:33 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>1030 &#8211; Got error -1 from storage engine</title>
		<link>http://howtobsd.com/development/1030-got-error-1-from-storage-engine.html</link>
		<comments>http://howtobsd.com/development/1030-got-error-1-from-storage-engine.html#comments</comments>
		<pubDate>Sun, 13 Nov 2011 23:39:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[problems & solutions]]></category>

		<guid isPermaLink="false">http://howtobsd.com/?p=524</guid>
		<description><![CDATA[I am using on one project InnoDB type of tables. There is very important have actual data. So I am actively using foreign keys for tables linking. And once I came across problem when tried to delete from table (`group`) which linked by foreign key with another table (`subgroup`) which linked by foreign key with [...]]]></description>
				<content:encoded><![CDATA[<p>I am using on one project InnoDB type of tables. There is very important have actual data. So I am actively using foreign keys for tables linking. And once I came across problem when tried to delete from table (`group`) which linked by foreign key with another table (`subgroup`) which linked by foreign key with another table (`item`).<br />
This is error shown by phpmyadmin:<br />
<code>Error<br />
SQL query:<br />
DELETE FROM `fancypets`.`groups` WHERE `groups`.`group_id` =1<br />
MySQL said: Documentation<br />
#1030 - Got error -1 from storage engine </code></p>
<p>this error a got through mysql command line:</p>
<p><code>mysql> delete from groups where `group_id`=4;<br />
ERROR 1030 (HY000): Got error -1 from storage engine</code></p>
<p>It is mysql&#8217;s error log:</p>
<p><code>Cannot delete/update rows with cascading foreign key constraints that exceed max depth of 250</code><br />
If you use 5.1.51- Just update your mysql-server version.<br />
This is bug of mysql-server-5.1.51 &#8211; after:<br />
<code>#portupgrade mysql-server</code></p>
<p>problem disappeared.</p>
]]></content:encoded>
			<wfw:commentRss>http://howtobsd.com/development/1030-got-error-1-from-storage-engine.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mysqldump on FreeBSD</title>
		<link>http://howtobsd.com/software/mysqldump-on-freebsd.html</link>
		<comments>http://howtobsd.com/software/mysqldump-on-freebsd.html#comments</comments>
		<pubDate>Tue, 05 Jul 2011 16:32:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://howtobsd.com/?p=400</guid>
		<description><![CDATA[Just a few notes about mysqldump. Create dump of mysql base: # mysqldump -uDBUSER -pPASSWORD DBNAME > filename.sql or # mysqldump --user=username --password=password DBNAME > filename.sql if you need to make dump of a few databases you can use parametr -B (or –databases): mysqldump -uDBUSER -pPASSWORD -B DBNAME1 DBNAME2 > filename.sql Make dump of the [...]]]></description>
				<content:encoded><![CDATA[<p>Just a few notes about mysqldump. </p>
<p>Create dump of mysql base:</p>
<p><code># mysqldump -uDBUSER -pPASSWORD DBNAME > filename.sql</code></p>
<p>or<br />
<code># mysqldump --user=username --password=password DBNAME > filename.sql</code> </p>
<p>if you need to make dump of a few databases you can use parametr -B (or –databases):</p>
<p><code>mysqldump -uDBUSER -pPASSWORD -B DBNAME1 DBNAME2  > filename.sql</code></p>
<p>Make dump of the all Databases on host:<br />
<code>mysqldump -uDBUSER -pPASSWORD -A  > filename.sql</code></p>
<p>If you need only dump structure of database (without data):</p>
<p><code>mysqldump -uDBUSER -pPASSWORD --no-data DBNAME > filename.sql</code></p>
<p>If you want to make limited by records mysqldump, next command especially for you (It was really cool command when I need dump and then move test copy of project with enormous mysql database):</p>
<p><code> mysqldump -uDBUSER  -pPASSWORD --where="true limit 100" DBNAME > filename.sql  </code></p>
<p>this command will dump your database with defined amount records in each table. </p>
]]></content:encoded>
			<wfw:commentRss>http://howtobsd.com/software/mysqldump-on-freebsd.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mysql log queries FreeBSD</title>
		<link>http://howtobsd.com/tips/mysql-log-queries-freebsd.html</link>
		<comments>http://howtobsd.com/tips/mysql-log-queries-freebsd.html#comments</comments>
		<pubDate>Thu, 10 Mar 2011 09:06:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://howtobsd.com/?p=329</guid>
		<description><![CDATA[If you want to activate logging of mysql queries, add in your my.cnf (by default it is /var/db/mysql/my.cnf) in [mysqld] section: log=/var/log/mysql.log create log file: #touch /var/log/mysql.log #chmod 666 /var/log/mysql.log and restart mysql-server: #/usr/local/etc/rc.d/mysql-server restart (it can be different on you server) That is all. PS: I don&#8217;t recommend you use it on hight loaded [...]]]></description>
				<content:encoded><![CDATA[<p>If you want to activate logging of mysql queries, add in your my.cnf (by default it is /var/db/mysql/my.cnf)<br />
in [mysqld] section:</p>
<p><code>log=/var/log/mysql.log</code></p>
<p>create log file:</p>
<p><code>#touch /var/log/mysql.log<br />
#chmod 666 /var/log/mysql.log</code></p>
<p>and restart mysql-server:</p>
<p><code>#/usr/local/etc/rc.d/mysql-server restart</code> (it can be different on you server)</p>
<p>That is all.</p>
<p>PS: I don&#8217;t recommend you use it on hight loaded servers permanently. Use it only for debugging. </p>
]]></content:encoded>
			<wfw:commentRss>http://howtobsd.com/tips/mysql-log-queries-freebsd.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
