<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<title>Prepare 4 interview - Recent questions and answers in MySQL Interview Questions and Answers</title>
<link>http://prepare4interview.com/qa/mysql-interview-questions-and-answers</link>
<description>Powered by Question2Answer</description>
<item>
<title>Answered: If you specify the data type as DECIMAL (5,2), what’s the range of values that can go in this table?</title>
<link>http://prepare4interview.com/1402/specify-data-type-decimal-what-range-values-that-this-table#a1787</link>
<description>Do you know http://it-how.com ?</description>
<category>MySQL Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/1402/specify-data-type-decimal-what-range-values-that-this-table#a1787</guid>
<pubDate>Sun, 27 Nov 2011 14:59:55 +0000</pubDate>
</item>
<item>
<title>Answered: If I created a column with data type VARCHAR(3), what would I expect to see in MySQL table?</title>
<link>http://prepare4interview.com/1414/created-column-with-type-varchar-what-would-expect-mysql-table#a1415</link>
<description>CHAR(3), since MySQL automatically adjusted the data type.</description>
<category>MySQL Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/1414/created-column-with-type-varchar-what-would-expect-mysql-table#a1415</guid>
<pubDate>Mon, 27 Sep 2010 13:42:37 +0000</pubDate>
</item>
<item>
<title>Answered: Explain TIMESTAMP DEFAULT ‘2006:09:02 17:38:44′ ON UPDATE CURRENT_TIMESTAMP.</title>
<link>http://prepare4interview.com/1412/explain-timestamp-default-2006-update-current_timestamp#a1413</link>
<description>A default value is used on initialization, a current timestamp is inserted on update of the row.</description>
<category>MySQL Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/1412/explain-timestamp-default-2006-update-current_timestamp#a1413</guid>
<pubDate>Mon, 27 Sep 2010 13:37:06 +0000</pubDate>
</item>
<item>
<title>Answered: What does TIMESTAMP ON UPDATE CURRENT_TIMESTAMP data type do?</title>
<link>http://prepare4interview.com/1410/what-does-timestamp-update-current_timestamp-data-type-do#a1411</link>
<description>On initialization places a zero in that column, on future updates puts the current value of the timestamp in.</description>
<category>MySQL Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/1410/what-does-timestamp-update-current_timestamp-data-type-do#a1411</guid>
<pubDate>Mon, 27 Sep 2010 13:36:09 +0000</pubDate>
</item>
<item>
<title>Answered: Explain data type TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP</title>
<link>http://prepare4interview.com/1408/explain-timestamp-current_timestamp-current_timestamp#a1409</link>
<description>The column exhibits the same behavior as a single timestamp column in a table with no other timestamp columns.</description>
<category>MySQL Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/1408/explain-timestamp-current_timestamp-current_timestamp#a1409</guid>
<pubDate>Mon, 27 Sep 2010 13:35:25 +0000</pubDate>
</item>
<item>
<title>Answered: What if you really want to store the timestamp data, such as the publication date of the article?</title>
<link>http://prepare4interview.com/1406/what-really-store-timestamp-such-publication-date-article#a1407</link>
<description>Create two columns of type TIMESTAMP and use the second one for your real data.</description>
<category>MySQL Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/1406/what-really-store-timestamp-such-publication-date-article#a1407</guid>
<pubDate>Mon, 27 Sep 2010 13:34:08 +0000</pubDate>
</item>
<item>
<title>Answered: What happens if a table has one column defined as TIMESTAMP?</title>
<link>http://prepare4interview.com/1404/what-happens-if-a-table-has-one-column-defined-as-timestamp#a1405</link>
<description>That field gets the current timestamp whenever the row gets altered.</description>
<category>MySQL Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/1404/what-happens-if-a-table-has-one-column-defined-as-timestamp#a1405</guid>
<pubDate>Mon, 27 Sep 2010 13:31:55 +0000</pubDate>
</item>
<item>
<title>Answered: Explain the difference between FLOAT, DOUBLE and REAL.</title>
<link>http://prepare4interview.com/1400/explain-the-difference-between-float-double-and-real#a1401</link>
<description>FLOATs store floating point numbers with 8 place accuracy and take up 4 bytes. DOUBLEs store floating point numbers with 16 place accuracy and take up 8 bytes. REAL is a synonym of FLOAT for now.</description>
<category>MySQL Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/1400/explain-the-difference-between-float-double-and-real#a1401</guid>
<pubDate>Mon, 27 Sep 2010 13:13:50 +0000</pubDate>
</item>
<item>
<title>Answered: Explain the difference between BOOL, TINYINT and BIT.</title>
<link>http://prepare4interview.com/1398/explain-the-difference-between-bool-tinyint-and-bit#a1399</link>
<description>Prior to MySQL 5.0.3: those are all synonyms. After MySQL 5.0.3: BIT data type can store 8 bytes of data and should be used for binary data.</description>
<category>MySQL Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/1398/explain-the-difference-between-bool-tinyint-and-bit#a1399</guid>
<pubDate>Mon, 27 Sep 2010 13:13:05 +0000</pubDate>
</item>
<item>
<title>Answered: What happens when the column is set to AUTO INCREMENT and you reach the maximum value for that table?</title>
<link>http://prepare4interview.com/1396/what-happens-column-increment-reach-maximum-value-that-table#a1397</link>
<description>It stops incrementing. It does not overflow to 0 to prevent data losses, but further inserts are going to produce an error, since the key has been used already.</description>
<category>MySQL Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/1396/what-happens-column-increment-reach-maximum-value-that-table#a1397</guid>
<pubDate>Mon, 27 Sep 2010 13:12:17 +0000</pubDate>
</item>
<item>
<title>Answered: What is SERIAL data type in MySQL?</title>
<link>http://prepare4interview.com/1394/what-is-serial-data-type-in-mysql#a1395</link>
<description>BIGINT NOT NULL PRIMARY KEY AUTO_INCREMENT</description>
<category>MySQL Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/1394/what-is-serial-data-type-in-mysql#a1395</guid>
<pubDate>Mon, 27 Sep 2010 13:11:04 +0000</pubDate>
</item>
<item>
<title>Answered: Explain federated tables.</title>
<link>http://prepare4interview.com/1392/explain-federated-tables#a1393</link>
<description>Introduced in MySQL 5.0, federated tables allow access to the tables located on other databases on other servers.</description>
<category>MySQL Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/1392/explain-federated-tables#a1393</guid>
<pubDate>Mon, 27 Sep 2010 13:10:21 +0000</pubDate>
</item>
<item>
<title>Answered: What are CSV tables?</title>
<link>http://prepare4interview.com/1390/what-are-csv-tables#a1391</link>
<description>Those are the special tables, data for which is saved into comma-separated values files. They cannot be indexed.</description>
<category>MySQL Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/1390/what-are-csv-tables#a1391</guid>
<pubDate>Mon, 27 Sep 2010 13:09:16 +0000</pubDate>
</item>
<item>
<title>Answered: How do you control the max size of a HEAP table?</title>
<link>http://prepare4interview.com/1388/how-do-you-control-the-max-size-of-a-heap-table#a1389</link>
<description>MySQL config variable max_heap_table_size.</description>
<category>MySQL Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/1388/how-do-you-control-the-max-size-of-a-heap-table#a1389</guid>
<pubDate>Mon, 27 Sep 2010 13:08:21 +0000</pubDate>
</item>
<item>
<title>Answered: What are HEAP tables in MySQL?</title>
<link>http://prepare4interview.com/1386/what-are-heap-tables-in-mysql#a1387</link>
<description>HEAP tables are in-memory. They are usually used for high-speed temporary storage. No TEXT or BLOB fields are allowed within HEAP tables. You can only use the comparison operators = and &amp;lt;=&amp;gt;. HEAP tables do not support AUTO_INCREMENT. Indexes must be NOT NULL.</description>
<category>MySQL Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/1386/what-are-heap-tables-in-mysql#a1387</guid>
<pubDate>Mon, 27 Sep 2010 13:07:20 +0000</pubDate>
</item>
<item>
<title>Answered: Explain advantages of MyISAM over InnoDB?</title>
<link>http://prepare4interview.com/1384/explain-advantages-of-myisam-over-innodb#a1385</link>
<description>Much more conservative approach to disk space management - each MyISAM table is stored in a separate file, which could be compressed then with myisamchk if needed. With InnoDB the tables are stored in tablespace, and not much further optimization is possible. All data except for TEXT and BLOB can occupy 8,000 bytes at most. No full text indexing is available for InnoDB. TRhe COUNT(*)s execute slower than in MyISAM due to tablespace complexity.</description>
<category>MySQL Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/1384/explain-advantages-of-myisam-over-innodb#a1385</guid>
<pubDate>Mon, 27 Sep 2010 13:05:13 +0000</pubDate>
</item>
<item>
<title>Answered: Explain advantages of InnoDB over MyISAM?</title>
<link>http://prepare4interview.com/1382/explain-advantages-of-innodb-over-myisam#a1383</link>
<description>Row-level locking, transactions, foreign key constraints and crash recovery.</description>
<category>MySQL Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/1382/explain-advantages-of-innodb-over-myisam#a1383</guid>
<pubDate>Mon, 27 Sep 2010 13:04:34 +0000</pubDate>
</item>
<item>
<title>Answered: What does myisamchk do?</title>
<link>http://prepare4interview.com/1380/what-does-myisamchk-do#a1381</link>
<description>It compressed the MyISAM tables, which reduces their disk usage.</description>
<category>MySQL Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/1380/what-does-myisamchk-do#a1381</guid>
<pubDate>Mon, 27 Sep 2010 13:03:59 +0000</pubDate>
</item>
<item>
<title>Answered: Explain the difference between MyISAM Static and MyISAM Dynamic.</title>
<link>http://prepare4interview.com/1378/explain-the-difference-between-myisam-static-myisam-dynamic#a1379</link>
<description>In MyISAM static all the fields have fixed width. The Dynamic MyISAM table would include fields such as TEXT, BLOB, etc. to accommodate the data types with various lengths. MyISAM Static would be easier to restore in case of corruption, since even though you might lose some data, you know exactly where to look for the beginning of the next record.</description>
<category>MySQL Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/1378/explain-the-difference-between-myisam-static-myisam-dynamic#a1379</guid>
<pubDate>Mon, 27 Sep 2010 13:03:21 +0000</pubDate>
</item>
<item>
<title>Answered: What are some good ideas regarding user security in MySQL?</title>
<link>http://prepare4interview.com/1376/what-are-some-good-ideas-regarding-user-security-in-mysql#a1377</link>
<description>There is no user without a password. There is no user without a user name. There is no user whose Host column contains % (which here indicates that the user can log in from anywhere in the network or the Internet). There are as few users as possible (in the ideal case only root) who have unrestricted access.</description>
<category>MySQL Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/1376/what-are-some-good-ideas-regarding-user-security-in-mysql#a1377</guid>
<pubDate>Mon, 27 Sep 2010 13:02:30 +0000</pubDate>
</item>
<item>
<title>Have you ever used MySQL Administrator and MySQL Query Browser?</title>
<link>http://prepare4interview.com/1375/have-you-ever-used-mysql-administrator-mysql-query-browser</link>
<description></description>
<category>MySQL Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/1375/have-you-ever-used-mysql-administrator-mysql-query-browser</guid>
<pubDate>Mon, 27 Sep 2010 13:01:53 +0000</pubDate>
</item>
<item>
<title>Answered: Use mysqldump to create a copy of the database?</title>
<link>http://prepare4interview.com/1373/use-mysqldump-to-create-a-copy-of-the-database#a1374</link>
<description>mysqldump -h mysqlhost -u username -p mydatabasename &amp;gt; dbdump.sql</description>
<category>MySQL Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/1373/use-mysqldump-to-create-a-copy-of-the-database#a1374</guid>
<pubDate>Mon, 27 Sep 2010 13:01:21 +0000</pubDate>
</item>
<item>
<title>Answered: How do you change a password for an existing user via mysqladmin?</title>
<link>http://prepare4interview.com/1371/how-do-you-change-password-for-existing-user-via-mysqladmin#a1372</link>
<description>mysqladmin -u root -p password &amp;quot;newpassword&amp;quot;</description>
<category>MySQL Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/1371/how-do-you-change-password-for-existing-user-via-mysqladmin#a1372</guid>
<pubDate>Mon, 27 Sep 2010 13:00:38 +0000</pubDate>
</item>
<item>
<title>Answered: Can you save your connection settings to a conf file?</title>
<link>http://prepare4interview.com/1369/can-you-save-your-connection-settings-to-a-conf-file#a1370</link>
<description>Yes, and name it ~/.my.conf. You might want to change the permissions on the file to 600, so that it’s not readable by others.</description>
<category>MySQL Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/1369/can-you-save-your-connection-settings-to-a-conf-file#a1370</guid>
<pubDate>Mon, 27 Sep 2010 12:59:48 +0000</pubDate>
</item>
<item>
<title>Answered: What does tee command do in MySQL?</title>
<link>http://prepare4interview.com/1367/what-does-tee-command-do-in-mysql#a1368</link>
<description>tee followed by a filename turns on MySQL logging to a specified file. It can be stopped by command notee.</description>
<category>MySQL Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/1367/what-does-tee-command-do-in-mysql#a1368</guid>
<pubDate>Mon, 27 Sep 2010 12:58:56 +0000</pubDate>
</item>
<item>
<title>Answered: What’s the default port for MySQL Server?</title>
<link>http://prepare4interview.com/1365/what-s-the-default-port-for-mysql-server#a1366</link>
<description>What’s the default port for MySQL Server?&lt;br /&gt;
3306</description>
<category>MySQL Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/1365/what-s-the-default-port-for-mysql-server#a1366</guid>
<pubDate>Mon, 27 Sep 2010 12:58:14 +0000</pubDate>
</item>
<item>
<title>Answered: Explain the difference between mysql and mysqli interfaces in PHP?</title>
<link>http://prepare4interview.com/1363/explain-the-difference-between-mysql-mysqli-interfaces-php#a1364</link>
<description>mysqli is the object-oriented version of mysql library functions.</description>
<category>MySQL Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/1363/explain-the-difference-between-mysql-mysqli-interfaces-php#a1364</guid>
<pubDate>Mon, 27 Sep 2010 12:57:00 +0000</pubDate>
</item>
<item>
<title>Answered: How do you start MySQL on Linux?</title>
<link>http://prepare4interview.com/1361/how-do-you-start-mysql-on-linux#a1362</link>
<description>/etc/init.d/mysql start</description>
<category>MySQL Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/1361/how-do-you-start-mysql-on-linux#a1362</guid>
<pubDate>Mon, 27 Sep 2010 12:56:00 +0000</pubDate>
</item>
<item>
<title>Answered: How do you start and stop MySQL on Windows?</title>
<link>http://prepare4interview.com/1359/how-do-you-start-and-stop-mysql-on-windows#a1360</link>
<description>net start MySQL, net stop MySQL</description>
<category>MySQL Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/1359/how-do-you-start-and-stop-mysql-on-windows#a1360</guid>
<pubDate>Mon, 27 Sep 2010 12:54:42 +0000</pubDate>
</item>
<item>
<title>Tell something about MySQL</title>
<link>http://prepare4interview.com/12/tell-something-about-mysql</link>
<description>MySQL&lt;br /&gt;
&lt;br /&gt;
MySQL is open source SQL database, which is developed by Swedish company MySQL AB. MySQL is pronounced &amp;quot;my ess-que-ell,&amp;quot; in contrast with SQL, pronounced &amp;quot;sequel.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
MySQL is supporting many different platforms including Microsoft Windows, the major Linux distributions, UNIX, and Mac OS X.&lt;br /&gt;
&lt;br /&gt;
MySQL has free and paid versions, depending on its usage (non-commercial/commercial) and features. MySQL comes with a very fast, multi-threaded, multi-user, and robust SQL database server.&lt;br /&gt;
&lt;br /&gt;
History:&lt;br /&gt;
&lt;br /&gt;
Development of MySQL by Michael Widenius &amp;amp; David Axmark beginning in 1994.&lt;br /&gt;
&lt;br /&gt;
First internal release on 23 May 1995.&lt;br /&gt;
&lt;br /&gt;
Windows version was released on 8 January 1998 for Windows 95 and NT.&lt;br /&gt;
&lt;br /&gt;
Version 3.23: beta from June 2000, production release January 2001.&lt;br /&gt;
&lt;br /&gt;
Version 4.0: beta from August 2002, production release March 2003 (unions).&lt;br /&gt;
&lt;br /&gt;
Version 4.01: beta from August 2003, Jyoti adopts MySQL for database tracking.&lt;br /&gt;
&lt;br /&gt;
Version 4.1: beta from June 2004, production release October 2004.&lt;br /&gt;
&lt;br /&gt;
Version 5.0: beta from March 2005, production release October 2005.&lt;br /&gt;
&lt;br /&gt;
Sun Microsystems acquired MySQL AB on 26 February 2008.&lt;br /&gt;
&lt;br /&gt;
Version 5.1: production release 27 November 2008.&lt;br /&gt;
&lt;br /&gt;
Features:&lt;br /&gt;
&lt;br /&gt;
High Performance.&lt;br /&gt;
&lt;br /&gt;
High Availability.&lt;br /&gt;
&lt;br /&gt;
Scalability and Flexibility Run anything.&lt;br /&gt;
&lt;br /&gt;
Robust Transactional Support.&lt;br /&gt;
&lt;br /&gt;
Web and Data Warehouse Strengths.&lt;br /&gt;
&lt;br /&gt;
Strong Data Protection.&lt;br /&gt;
&lt;br /&gt;
Comprehensive Application Development.&lt;br /&gt;
&lt;br /&gt;
Management Ease.&lt;br /&gt;
&lt;br /&gt;
Open Source Freedom and 24 x 7 Support.&lt;br /&gt;
&lt;br /&gt;
Lowest Total Cost of Ownership.</description>
<category>MySQL Interview Questions and Answers</category>
<guid isPermaLink="true">http://prepare4interview.com/12/tell-something-about-mysql</guid>
<pubDate>Sat, 19 Jun 2010 20:42:33 +0000</pubDate>
</item>
</channel>
</rss>
