<?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>MySQL &#8211; Techawaken</title>
	<atom:link href="https://www.techawaken.com/category/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.techawaken.com</link>
	<description>Techawaken shares articles and experience in PHP, MySql, Magento,Joomla, Wordpress, JQuery, Javascript etc.</description>
	<lastBuildDate>Thu, 06 Dec 2018 06:42:54 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>How to enable the MySQL slow query log</title>
		<link>https://www.techawaken.com/enable-mysql-slow-query-log/</link>
				<comments>https://www.techawaken.com/enable-mysql-slow-query-log/#respond</comments>
				<pubDate>Thu, 15 Nov 2018 06:38:18 +0000</pubDate>
		<dc:creator><![CDATA[Pawan]]></dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[MySQL Performance]]></category>
		<category><![CDATA[Optimize MySQL queries]]></category>
		<category><![CDATA[Slow query log]]></category>

		<guid isPermaLink="false">http://www.techawaken.com/?p=751</guid>
				<description><![CDATA[<p>MySQL slow query log can be to used to determine queries that take a longer time to execute in order to optimize them. The slow query log consists of SQL statements that took more than `long_query_time` seconds to execute, required at least `min_examined_row_limit` rows to be examined and fulfilled other criteria specified by the slow query log settings.</p>
<p>Before enabling the MySQL slow query log, we must decide criteria for SQL statements that will be logged and also select the location where they will be logged.</p><div class='yarpp-related-rss'>
<div id="related">
You Might Also Like<ol>
<li><a href="https://www.techawaken.com/enable-binary-logging-mysql/" rel="bookmark" title="How to enable binary logging in MySql?">How to enable binary logging in MySql? </a></li>
<li><a href="https://www.techawaken.com/connecting-mysql-server-mysql-client-program/" rel="bookmark" title="Connecting to the MySQL Server using MySQL client program">Connecting to the MySQL Server using MySQL client program </a></li>
<li><a href="https://www.techawaken.com/creating-user-accounts-mysql/" rel="bookmark" title="Creating user accounts in MySQL">Creating user accounts in MySQL </a></li>
</ol></div>
</div>
]]></description>
						<wfw:commentRss>https://www.techawaken.com/enable-mysql-slow-query-log/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
							</item>
		<item>
		<title>How to drop all tables in MySQL database</title>
		<link>https://www.techawaken.com/drop-tables-mysql-database/</link>
				<comments>https://www.techawaken.com/drop-tables-mysql-database/#respond</comments>
				<pubDate>Sat, 11 Feb 2017 18:40:25 +0000</pubDate>
		<dc:creator><![CDATA[Pawan]]></dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[mysqldump]]></category>
		<category><![CDATA[Table]]></category>

		<guid isPermaLink="false">http://www.techawaken.com/?p=775</guid>
				<description><![CDATA[<p>Once I faced a situation wherein I had no option to delete the database and was limited to use only the MySQL command line. I wasted a lot of time find and trying different ways to delete all tables in the database. So, I thought it will be worth sharing things that ultimately worked for me.</p>

<pre>
$ mysqldump -hHOSTNAME -uUSERNAME -pPASSWORD --add-drop-table --no-data DB_NAME &#124; grep -e '^DROP \&#124; FOREIGN_KEY_CHECKS' &#124; mysql -hHOSTNAME -uUSERNAME -pPASSWORD DB_NAME;
</pre>

<div class='yarpp-related-rss'>
<div id="related">
You Might Also Like<ol>
<li><a href="https://www.techawaken.com/backup-mysql-database-command-line/" rel="bookmark" title="How to backup mysql database from command line">How to backup mysql database from command line </a></li>
<li><a href="https://www.techawaken.com/restore-mysql-database-command-line/" rel="bookmark" title="How to restore mysql database from command line">How to restore mysql database from command line </a></li>
<li><a href="https://www.techawaken.com/duplicating-a-database-in-mysql/" rel="bookmark" title="Duplicating a database in MySql">Duplicating a database in MySql </a></li>
</ol></div>
</div>
]]></description>
						<wfw:commentRss>https://www.techawaken.com/drop-tables-mysql-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
							</item>
		<item>
		<title>How to temporarily disable Foreign Key Checks or Constraints in MySQL</title>
		<link>https://www.techawaken.com/temporarily-disable-foreign-key-checks-constraints-mysql/</link>
				<comments>https://www.techawaken.com/temporarily-disable-foreign-key-checks-constraints-mysql/#respond</comments>
				<pubDate>Thu, 20 Oct 2016 16:36:53 +0000</pubDate>
		<dc:creator><![CDATA[Pawan]]></dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Foreign Key]]></category>
		<category><![CDATA[foreign key checks]]></category>
		<category><![CDATA[foreign key constraint]]></category>
		<category><![CDATA[Keys]]></category>

		<guid isPermaLink="false">http://www.techawaken.com/?p=776</guid>
				<description><![CDATA[<p>While importing a database that has tables with foreign keys defined we get to see error "<span style="color: #ff0000;"><em>#1452 - Cannot add or update a child row: a foreign key constraint fails</em></span>".</p>
<p>Even while trying to delete some tables from such a database, we come across situation where we face foreign key constraint error: "<span style="color: #ff0000;"><em>#1217 - Cannot delete or update a parent row: a foreign key constraint fails</em></span>"</p>
<p>To avoid such errors first disable the <em>foreign key checks</em>, then do your job of importing the database or deleting the table and finally enable the foreign key checks.</p><div class='yarpp-related-rss'>
<div id="related">
You Might Also Like<ol>
<li><a href="https://www.techawaken.com/1452-add-update-child-row-foreign-key-constraint-fails/" rel="bookmark" title="#1452 – Cannot add or update a child row: a foreign key constraint fails…">#1452 – Cannot add or update a child row: a foreign key constraint fails… </a></li>
<li><a href="https://www.techawaken.com/understanding-mysql-indexes-types/" rel="bookmark" title="Understanding MySql Indexes and their types">Understanding MySql Indexes and their types </a></li>
<li><a href="https://www.techawaken.com/working-mysql-indexes/" rel="bookmark" title="Working with MySql Indexes">Working with MySql Indexes </a></li>
</ol></div>
</div>
]]></description>
						<wfw:commentRss>https://www.techawaken.com/temporarily-disable-foreign-key-checks-constraints-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
							</item>
		<item>
		<title>How to restore mysql database from command line</title>
		<link>https://www.techawaken.com/restore-mysql-database-command-line/</link>
				<comments>https://www.techawaken.com/restore-mysql-database-command-line/#respond</comments>
				<pubDate>Fri, 19 Aug 2016 20:27:39 +0000</pubDate>
		<dc:creator><![CDATA[Pawan]]></dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[restore mysql database command line]]></category>

		<guid isPermaLink="false">http://www.techawaken.com/?p=766</guid>
				<description><![CDATA[<p>We need to import database on local machine when setting up a live website locally or when we are transferring hosting from one service provider to another. Let's see how we can import MySQL database dump from command line</p>
<p>Assuming that we have created the database say 'mynewdb' in which we have to import.</p>
<p>Run the following command</p>
<pre>
$ mysql -u username -ppassword mynewdb &#60; dbbackupfile.sql
</pre>


<div class='yarpp-related-rss'>
<div id="related">
You Might Also Like<ol>
<li><a href="https://www.techawaken.com/backup-mysql-database-command-line/" rel="bookmark" title="How to backup mysql database from command line">How to backup mysql database from command line </a></li>
<li><a href="https://www.techawaken.com/connecting-mysql-server-mysql-client-program/" rel="bookmark" title="Connecting to the MySQL Server using MySQL client program">Connecting to the MySQL Server using MySQL client program </a></li>
<li><a href="https://www.techawaken.com/duplicating-a-database-in-mysql/" rel="bookmark" title="Duplicating a database in MySql">Duplicating a database in MySql </a></li>
</ol></div>
</div>
]]></description>
						<wfw:commentRss>https://www.techawaken.com/restore-mysql-database-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
							</item>
		<item>
		<title>How to backup mysql database from command line</title>
		<link>https://www.techawaken.com/backup-mysql-database-command-line/</link>
				<comments>https://www.techawaken.com/backup-mysql-database-command-line/#respond</comments>
				<pubDate>Thu, 14 Jul 2016 20:24:16 +0000</pubDate>
		<dc:creator><![CDATA[Pawan]]></dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[backup mysql database command line]]></category>
		<category><![CDATA[mysqldump]]></category>

		<guid isPermaLink="false">http://www.techawaken.com/?p=765</guid>
				<description><![CDATA[<p>It is necessary to take database backups at regular intervals to prevent loss of data. In this article we will see how we can backup mysql database using command line.</p>
<p><strong><em>'mysqldump'</em></strong> command can be used to create backup of MySQL database as follows:</p>
<pre>
$ mysqldump -u username -ppassword dbname > dbname.sql
</pre>


<p>The above command assumes that you are running the <em>'mysqldump'</em> command on the same server on which MySQL is installed.</p><div class='yarpp-related-rss'>
<div id="related">
You Might Also Like<ol>
<li><a href="https://www.techawaken.com/connecting-mysql-server-mysql-client-program/" rel="bookmark" title="Connecting to the MySQL Server using MySQL client program">Connecting to the MySQL Server using MySQL client program </a></li>
<li><a href="https://www.techawaken.com/duplicating-a-database-in-mysql/" rel="bookmark" title="Duplicating a database in MySql">Duplicating a database in MySql </a></li>
<li><a href="https://www.techawaken.com/setting-user-account-passwords-mysql/" rel="bookmark" title="Setting user account passwords in MySQL">Setting user account passwords in MySQL </a></li>
</ol></div>
</div>
]]></description>
						<wfw:commentRss>https://www.techawaken.com/backup-mysql-database-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
							</item>
		<item>
		<title>Working with MySql Indexes</title>
		<link>https://www.techawaken.com/working-mysql-indexes/</link>
				<comments>https://www.techawaken.com/working-mysql-indexes/#respond</comments>
				<pubDate>Wed, 11 May 2016 19:10:36 +0000</pubDate>
		<dc:creator><![CDATA[Pawan]]></dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Alter Table]]></category>
		<category><![CDATA[Create Index]]></category>
		<category><![CDATA[Create Table]]></category>
		<category><![CDATA[Drop Index]]></category>
		<category><![CDATA[Foreign Key]]></category>
		<category><![CDATA[Fulltext]]></category>
		<category><![CDATA[Primary Index]]></category>
		<category><![CDATA[Primary Key]]></category>
		<category><![CDATA[Spatial]]></category>
		<category><![CDATA[Unique]]></category>

		<guid isPermaLink="false">http://www.techawaken.com/?p=749</guid>
				<description><![CDATA[<p>Indexes are needed to improve the performance of SELECT queries. They can be defined with table creation and also created after table creation with CREATE INDEX and ALTER TABLE statements. If during optimization you find that an index is not useful then you can DROP them using DROP INDEX or ALTER TABLE statements.</p><div class='yarpp-related-rss'>
<div id="related">
You Might Also Like<ol>
<li><a href="https://www.techawaken.com/understanding-mysql-indexes-types/" rel="bookmark" title="Understanding MySql Indexes and their types">Understanding MySql Indexes and their types </a></li>
<li><a href="https://www.techawaken.com/1452-add-update-child-row-foreign-key-constraint-fails/" rel="bookmark" title="#1452 – Cannot add or update a child row: a foreign key constraint fails…">#1452 – Cannot add or update a child row: a foreign key constraint fails… </a></li>
<li><a href="https://www.techawaken.com/deleting-customer-data-magento/" rel="bookmark" title="Deleting customer data in Magento">Deleting customer data in Magento </a></li>
</ol></div>
</div>
]]></description>
						<wfw:commentRss>https://www.techawaken.com/working-mysql-indexes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
							</item>
		<item>
		<title>Understanding MySql Indexes and their types</title>
		<link>https://www.techawaken.com/understanding-mysql-indexes-types/</link>
				<comments>https://www.techawaken.com/understanding-mysql-indexes-types/#respond</comments>
				<pubDate>Thu, 14 Apr 2016 19:43:38 +0000</pubDate>
		<dc:creator><![CDATA[Pawan]]></dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Composite Index]]></category>
		<category><![CDATA[Foreign Key]]></category>
		<category><![CDATA[Fulltext]]></category>
		<category><![CDATA[Index]]></category>
		<category><![CDATA[Key]]></category>
		<category><![CDATA[Primary Index]]></category>
		<category><![CDATA[Primary Key]]></category>
		<category><![CDATA[Simple Index]]></category>
		<category><![CDATA[Spatial]]></category>
		<category><![CDATA[Unique]]></category>

		<guid isPermaLink="false">http://www.techawaken.com/?p=730</guid>
				<description><![CDATA[<p>Indexes are needed to improve the performance of SELECT queries. Indexes in Mysql are just like the indexes available in books. Without indexes if we have to look for a topic in a book then we will have to go through each page content but luckily we have an index, we find the page number from the index and then open that page directly. Similarly in MySql if we have to find row(s) have a particular column value then without index on that column MySql will have to scan each row of the table to find the matching rows.</p>
<p>It is highly recommended that you create indices on columns of a table from which you often query the data.</p><div class='yarpp-related-rss'>
<div id="related">
You Might Also Like<ol>
<li><a href="https://www.techawaken.com/optimize-mysql-database-phpmyadmin/" rel="bookmark" title="How to Optimize a MySQL Database using phpMyAdmin?">How to Optimize a MySQL Database using phpMyAdmin? </a></li>
<li><a href="https://www.techawaken.com/creating-user-accounts-mysql/" rel="bookmark" title="Creating user accounts in MySQL">Creating user accounts in MySQL </a></li>
<li><a href="https://www.techawaken.com/1452-add-update-child-row-foreign-key-constraint-fails/" rel="bookmark" title="#1452 – Cannot add or update a child row: a foreign key constraint fails…">#1452 – Cannot add or update a child row: a foreign key constraint fails… </a></li>
</ol></div>
</div>
]]></description>
						<wfw:commentRss>https://www.techawaken.com/understanding-mysql-indexes-types/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
							</item>
		<item>
		<title>#1452 – Cannot add or update a child row: a foreign key constraint fails…</title>
		<link>https://www.techawaken.com/1452-add-update-child-row-foreign-key-constraint-fails/</link>
				<comments>https://www.techawaken.com/1452-add-update-child-row-foreign-key-constraint-fails/#respond</comments>
				<pubDate>Sat, 12 Mar 2016 07:15:25 +0000</pubDate>
		<dc:creator><![CDATA[Pawan]]></dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Constraint]]></category>
		<category><![CDATA[Foreign Key]]></category>
		<category><![CDATA[Import]]></category>
		<category><![CDATA[MySql Client]]></category>

		<guid isPermaLink="false">http://www.techawaken.com/?p=748</guid>
				<description><![CDATA[<p>
Are you trying to import a MySql dump file and getting the following error: "#1452 – Cannot add or update a child row: a foreign key constraint fails"? Its because of the foreign key validation checks.</p><p>You can run the following statement to get detailed error information:
</p>

<pre>
SHOW ENGINE INNODB STATUS;
</pre>

<div class='yarpp-related-rss'>
<div id="related">
You Might Also Like<ol>
<li><a href="https://www.techawaken.com/connecting-mysql-server-mysql-client-program/" rel="bookmark" title="Connecting to the MySQL Server using MySQL client program">Connecting to the MySQL Server using MySQL client program </a></li>
<li><a href="https://www.techawaken.com/mysql-data-directory-size-large-fix/" rel="bookmark" title="MySql data directory size is very large, how to fix?">MySql data directory size is very large, how to fix? </a></li>
<li><a href="https://www.techawaken.com/enable-binary-logging-mysql/" rel="bookmark" title="How to enable binary logging in MySql?">How to enable binary logging in MySql? </a></li>
</ol></div>
</div>
]]></description>
						<wfw:commentRss>https://www.techawaken.com/1452-add-update-child-row-foreign-key-constraint-fails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
							</item>
		<item>
		<title>Connecting to the MySQL Server using MySQL client program</title>
		<link>https://www.techawaken.com/connecting-mysql-server-mysql-client-program/</link>
				<comments>https://www.techawaken.com/connecting-mysql-server-mysql-client-program/#respond</comments>
				<pubDate>Wed, 07 Jan 2015 18:47:42 +0000</pubDate>
		<dc:creator><![CDATA[Pawan]]></dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Connect MySql]]></category>
		<category><![CDATA[MySql Client]]></category>
		<category><![CDATA[Mysql Server]]></category>

		<guid isPermaLink="false">http://www.techawaken.com/?p=638</guid>
				<description><![CDATA[For connecting to the MySQL server you need to use MySQL client program. It needs to be provided parameters such as the hostname, username, password etc. to connect to the MySQL Server; if no parameters are specified the default values are assumed. Any of the connection parameters can be specified to override the default values.

<strong>Connecting to a local server specifying username and password</strong>

<pre>
# mysql --user=username --password=mypassword databasename;
# mysql -u username -pmypassword databasename;
</pre>

<div class='yarpp-related-rss'>
<div id="related">
You Might Also Like<ol>
<li><a href="https://www.techawaken.com/setting-user-account-passwords-mysql/" rel="bookmark" title="Setting user account passwords in MySQL">Setting user account passwords in MySQL </a></li>
<li><a href="https://www.techawaken.com/creating-user-accounts-mysql/" rel="bookmark" title="Creating user accounts in MySQL">Creating user accounts in MySQL </a></li>
<li><a href="https://www.techawaken.com/13-linux-wget-command-examples/" rel="bookmark" title="13 Linux wget command usage examples">13 Linux wget command usage examples </a></li>
</ol></div>
</div>
]]></description>
						<wfw:commentRss>https://www.techawaken.com/connecting-mysql-server-mysql-client-program/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
							</item>
		<item>
		<title>Setting user account passwords in MySQL</title>
		<link>https://www.techawaken.com/setting-user-account-passwords-mysql/</link>
				<comments>https://www.techawaken.com/setting-user-account-passwords-mysql/#respond</comments>
				<pubDate>Tue, 09 Dec 2014 19:28:38 +0000</pubDate>
		<dc:creator><![CDATA[Pawan]]></dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Password]]></category>
		<category><![CDATA[User Account]]></category>

		<guid isPermaLink="false">http://www.techawaken.com/?p=643</guid>
				<description><![CDATA[It is important to have passwords for all MySQL user accounts for securing the database. If anyone knows the username of an account with no password then he can successfully connect to the database server.

<strong>To assign or change a password for an existing account</strong>

<pre>

mysql> SET PASSWORD FOR 'newuser'@'localhost' = PASSWORD('mypass');

</pre>



<strong>NOTE:</strong> <em>Only users such as root that have update access to the mysql database can change the password for other users.</em><div class='yarpp-related-rss'>
<div id="related">
You Might Also Like<ol>
<li><a href="https://www.techawaken.com/creating-user-accounts-mysql/" rel="bookmark" title="Creating user accounts in MySQL">Creating user accounts in MySQL </a></li>
<li><a href="https://www.techawaken.com/deleting-user-accounts-mysql/" rel="bookmark" title="Deleting user accounts in MySQL">Deleting user accounts in MySQL </a></li>
<li><a href="https://www.techawaken.com/magento-admin-this-account-locked-unlock-it/" rel="bookmark" title="Magento Admin &#8211; &#8220;This account is locked.&#8221;, how to unlock it?">Magento Admin &#8211; &#8220;This account is locked.&#8221;, how to unlock it? </a></li>
</ol></div>
</div>
]]></description>
						<wfw:commentRss>https://www.techawaken.com/setting-user-account-passwords-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
							</item>
	</channel>
</rss>
