<?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>ASP.NET MSSQL Webhosting Blog &#187; MySQL Hosting</title>
	<atom:link href="http://www.mywebhostingblog.net/category/mysql-features-and-queries/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mywebhostingblog.net</link>
	<description>ASP.NET, MSSQL and Windows dedicated server articles</description>
	<lastBuildDate>Tue, 10 Nov 2009 19:53:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Backup MySQL using VBS scripts</title>
		<link>http://www.mywebhostingblog.net/aspnet-web-hosting/backup-mysql-using-vbs-scripts/</link>
		<comments>http://www.mywebhostingblog.net/aspnet-web-hosting/backup-mysql-using-vbs-scripts/#comments</comments>
		<pubDate>Mon, 12 Jan 2009 16:13:26 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[ASP.NET Web Hosting]]></category>
		<category><![CDATA[MySQL Hosting]]></category>
		<category><![CDATA[Window Hosting]]></category>
		<category><![CDATA[asp]]></category>
		<category><![CDATA[ASP .NET]]></category>
		<category><![CDATA[Backup]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.mywebhostingblog.net/?p=441</guid>
		<description><![CDATA[I have seen so many people searching ASP or ASP .NET scripts to backup their MySQL databases. Not only this but my Blog has been getting to many hits for the search term &#8220;backup mysql asp&#8221;. After seeing the need of so many people for the script I decided to write a VBS script to [...]]]></description>
			<content:encoded><![CDATA[<p>I have seen so many people searching <strong>ASP </strong>or <strong>ASP .NET</strong> scripts to backup their <strong>MySQL databases</strong>. Not only this but my <strong>Blog </strong>has been getting to many hits for the search term <em><strong>&#8220;backup mysql asp&#8221;</strong></em>. After seeing the need of so many people for the script I decided to write a VBS script to backup all or single <strong>MySQL database</strong> on <strong>Windows</strong> <strong>server</strong>. I am not very good at <strong>ASP </strong>so I didn&#8217;t write the script in ASP or<strong> ASP .NET</strong> but one can convert this script in either <strong>ASP </strong>or <strong>ASP .NET</strong>, it should not be a huge problem I suppose.</p>
<p style="text-align: center;"><img class="size-full wp-image-443 aligncenter" title="backup mysql VBS" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/03/backup-mysql-asp.jpg" alt="backup mysql asp Backup MySQL using VBS scripts" width="259" height="92" /><span id="more-441"></span></p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-442" title="backup-mysql-asp-1" src="http://www.mywebhostingblog.net/wp-content/uploads/2009/03/backup-mysql-asp-1.jpg" alt="backup mysql asp 1 Backup MySQL using VBS scripts" width="278" height="121" /></p>
<p>Please make sure of the following before you configure the script:</p>
<ul>
<li>The user that is running the script must have execute permissions on <code>cscript</code> in system32</li>
<li>The user that is running the script must have write permissions folder that is going to store the backup file.</li>
<li>The user that is running the script must have execute permissions on <code>mysqldump.exe</code> in Mysqlbin</li>
<li>If you running this script in browser then your web user will need the above permissions.</li>
</ul>
<p>So here is the script:</p>
<p><em><strong>backup-mysql-database.vbs</strong></em></p>
<p><code>Option Explicit<br />
Dim backup_dir, num_days, user, password, database, arguments, backup_file<br />
Dim oShell, oFS, oDrive, nResults, sqldump</code></p>
<p><code>backup_dir = "C:MysqlBackups"<br />
user = "xxxxxxxx"<br />
password = "yyyyyyyy"<br />
database = "zzzzzzzz"<br />
sqldump = "C:Mysqlbinmysqldump.exe"</code></p>
<p><code>backup_file = backup_dir &amp; database &amp; ".sql"<br />
arguments = "--user=" &amp; user &amp; " --password=" &amp; password &amp; " " &amp; database &amp; " &gt; " &amp; backup_file<br />
arguments = sqldump &amp; " " &amp; arguments<br />
WScript.Echo(arguments1)<br />
</code><br />
<code>Set oShell = CreateObject("WScript.Shell")</code></p>
<p><code>WScript.Echo("Creating backup file " &amp; backup_file)<br />
nResults = oShell.Run ("cmd /C" &amp; arguments, 1, TRUE)<br />
WScript.Echo(nResults)</code></p>
<p><code>Set oShell = Nothing</code></p>
<p>The following variable will be needed to be defined as per your need:</p>
<p><em><strong>backup_dir </strong></em>= Should have the path to the directory that you want to save you backup file in.<br />
<em><strong>user</strong></em> = Database user name that has full privileges over the <strong>database </strong>you want to backup.<br />
<em><strong>password</strong></em> = <strong>Password </strong>of the database user.<br />
<em><strong>database</strong></em> = Name of the database that you want to backup<br />
<em><strong>sqldump </strong></em>= Path to mysqldump.exe, normally this is stored in <strong>MySQLbin</strong> directory.</p>
<p>To backup all database you can ignore the database variable and replace the first argument command with:<br />
<code><br />
arguments = "--user=" &amp; user &amp; " --password=" &amp; password &amp; " --all-databases --quick<br />
--result-file=" &amp; backup_file</code></p>
<p>Now you can run the command below to execute the script on Windows server:</p>
<p><code>cscript c:myscriptsbackup-mysql-database.vbs</code></p>
<p>You can also <strong>schedule </strong>the above command to run on sceduled timining to backup the <strong>MySQL databases.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mywebhostingblog.net/aspnet-web-hosting/backup-mysql-using-vbs-scripts/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How to install phpMyAdmin on Windows</title>
		<link>http://www.mywebhostingblog.net/aspnet-web-hosting/how-to-install-phpmyadmin-on-windows/</link>
		<comments>http://www.mywebhostingblog.net/aspnet-web-hosting/how-to-install-phpmyadmin-on-windows/#comments</comments>
		<pubDate>Sat, 15 Nov 2008 01:19:44 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[ASP.NET Web Hosting]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[MySQL Hosting]]></category>
		<category><![CDATA[Window Hosting]]></category>
		<category><![CDATA[PHP5]]></category>
		<category><![CDATA[phpmyadmin]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Windows 2003]]></category>
		<category><![CDATA[Windows NT]]></category>
		<category><![CDATA[Windows XP]]></category>

		<guid isPermaLink="false">http://www.mywebhostingblog.net/?p=210</guid>
		<description><![CDATA[These steps can be followed on Windows 2000, Windows NT servers, Windows 2003, Windows 2008 and Windows XP. For steps on Linux refer the link below: How to install PHPMyAdmin on Linux How to install phpMyAdmin 2.11 on Windows Desktop and Server Here are steps that will help you installed PHPMyAdmin on a Windows server. [...]]]></description>
			<content:encoded><![CDATA[<p>These steps can be followed on Windows 2000, Windows NT servers, Windows 2003, Windows 2008 and Windows XP.</p>
<p>For steps on Linux refer the link below:</p>
<p><strong><a title="Install PHPMyAdmin on Linux" href="http://www.eukhost.com/forums/f15/how-install-phpmyadmin-pma-linux-vps-dedicated-server-4234/" target="_blank">How to install PHPMyAdmin on Linux</a></strong></p>
<p><strong>How to install phpMyAdmin 2.11 on Windows Desktop and Server</strong></p>
<p>Here are steps that will help you installed <strong>PHPMyAdmin</strong> on a Windows server.</p>
<p><strong>REQUIREMENTS:</strong></p>
<p>&gt;&gt; PHP <strong>4.3/4.4/5.1</strong><br />
&gt;&gt; MySQL <strong>4.0/4.1/5.0</strong></p>
<p><strong>DOWNLOAD</strong>:</p>
<p>This installation was tested on phpMyAdmin-2.11.1<br />
You can select the file from <a title="PHPMyAdmin Downloads" href="http://www.phpmyadmin.net/home_page/downloads.php" target="_blank">PHPMyAdmin Downloads</a></p>
<p><span id="more-210"></span></p>
<p><strong>CONFIGURATION</strong>:</p>
<p>Configuration that needs to be noted, the one below are the one we have chozen. They might be different on your server:</p>
<p>Installation path: C:\www\<strong>phpMyAdmin </strong>(If you have Apache on your server then place out side of webroot of Apache)<br />
Apache webroot : C:\www\webroot<br />
My-SQL path : C:\www\mysql\bin<br />
Access phpMyAdmin as : http://192.168.1.52/<strong>phpMyAdmin</strong>/</p>
<p><strong>INSTALLING PHPMyAdmin:</strong></p>
<p>1. Unpack the downloaded file <strong>phpMyAdmin</strong>-2.11.1.zip under the directory C:\www<br />
2. Rename directory C:\www\<strong>phpMyAdmin</strong>-2.11.1 to C:\www\phpMyAdmin<br />
3. Make a copy of C:\www\<strong>phpMyAdmin</strong>\libraries\config.default.php<br />
4. Open the default configuration file of <strong>PHPMyAdmin </strong>C:\www\<strong>phpMyAdmin</strong>\libraries\config.default.php and make following changes:</p>
<p>a. Find:</p>
<p><code>$cfg['PmaAbsoluteUri'] = '';</code></p>
<p>Put the full URL of PHPMyAdmin in the quotes, you can replace the IP address with the IP address of your server or your domain name:</p>
<p><code>$cfg['PmaAbsoluteUri'] = 'http://192.168.1.52/phpMyAdmin/';</code></p>
<p>b. PHPMyAdmin can also try to auto-detect the proper value for the above directive if it is left as it is [BLANK] and the below line is changed to &#8216;TRUE&#8217;:</p>
<p><code>$cfg['PmaAbsoluteUri_DisableWarning'] = FALSE;</code></p>
<p>c. Authentication Method:</p>
<p>&#8211; For single-user (root or trusted) environment:</p>
<p>&#8211; Method 1 would be to prompt client for MySQL user/password, this option will only work if your database is not accessed by other users:</p>
<p><code>$cfg['Servers'][$i]['auth_type'] = 'http';</code></p>
<p>&#8211; Method 2 is to store MySQL user/password under config.ini.php file.</p>
<p><code>$cfg['Servers'][$i]['auth_type'] = 'config';</code><br />
<code>$cfg['Servers'][$i]['user'] = 'root';</code><br />
<code>$cfg['Servers'][$i]['password'] = 'root-password';</code></p>
<p>Please replace the user and password with the <strong>administrator </strong>user and password of your<strong> MySQL server</strong>.</p>
<p>d. Authentication Method &#8212; for multi-user (untrusted) environment, this will allow to give access to your developers or clients if it is a shared server in hosting environment.<br />
This step is also required to for enabling phpMyAdmin&#8217;s relational features</p>
<p><code>$cfg['Servers'][$i]['auth_type'] = 'http';</code><br />
<code>$cfg['Servers'][$i]['user'] = '';</code><br />
<code>$cfg['Servers'][$i]['password'] = '';</code><br />
<code>$cfg['Servers'][$i]['controluser'] = 'pma';</code><br />
<code>$cfg['Servers'][$i]['controlpass'] = 'pmapass';</code></p>
<p>Save the password: pmapass</p>
<p>e. Now we will have tp create MySQL controluser user &#8216;pma@localhost&#8217; with password &#8216;pmapass&#8217;, and with the proper permissions to the user:</p>
<p><code>C:\www\mysql\bin&gt; mysql -u root -p</code><br />
<code>mysql&gt; GRANT USAGE ON mysql.* TO 'pma'@'localhost' IDENTIFIED BY 'pmapass';</code><br />
Note the SQL password</p>
<p><code>mysql&gt; GRANT SELECT (Host, User, Select_priv, Insert_priv, Update_priv, Delete_priv, Create_priv, Drop_priv, Reload_priv, Shutdown_priv, Process_priv, File_priv, Grant_priv, References_priv, Index_priv, Alter_priv, Show_db_priv, Super_priv, Create_tmp_table_priv, Lock_tables_priv, Execute_priv, Repl_slave_priv, Repl_client_priv) ON mysql.user TO 'pma'@'localhost';</code><br />
<code>mysql&gt; GRANT SELECT ON mysql.db TO 'pma'@'localhost';</code><br />
<code>mysql&gt; GRANT SELECT ON mysql.host TO 'pma'@'localhost';</code><br />
<code>mysql&gt; GRANT SELECT (Host, Db, User, Table_name, Table_priv, Column_priv) ON mysql.tables_priv TO 'pma'@'localhost';</code><br />
<code>mysql&gt; quit</code></p>
<p><strong>CONFIGURING APACHE 2.0</strong></p>
<p>a. If you run Apache as the webserver then you will follow the steps below:</p>
<p>Open file C:\www\Apache2\conf\httpd.conf to edit it and uncomment line (remove the beginning character &#8216;#&#8217;)<br />
I would suggest you to backup the http.conf file incase you have messed it up.</p>
<p><code>LoadModule alias_module modules/mod_alias.so</code></p>
<p>b. Make sure directive &#8216;DirectoryIndex&#8217; contains &#8216;index.php&#8217; http.conf</p>
<p><code>DirectoryIndex index.html index.html.var index.php</code></p>
<p>c. Then add the following lines:</p>
<p><code><br />
Alias /phpMyAdmin "C:/www/phpMyAdmin"<br />
</code></p>
<p><code><br />
Options None<br />
AllowOverride None<br />
order deny,allow<br />
deny from all<br />
allow from 127.0.0.1<br />
</code></p>
<p>Do not forget to restart Apache once you have made the above changes and have saved the http.conf file.</p>
<p><strong>CONFIGURING IIS6.0</strong></p>
<p>a. Open IIS Webserver from START &gt;&gt; RUN: inetmgr<br />
b. In IIS manager expand SERVER_NAME &gt;&gt; Web Sites and select Default WebSite.<br />
c. In the Right pane right click in white soace and select New &gt;&gt; Virtual Directory.<br />
d. In the Virtual Directory creation Wizard, click Next.<br />
e. Give directory Alias (Name) as PHPMyadmin and click Next.<br />
f. Click on Browse button and navigate to &#8220;C:\www\phpMyAdmin&#8221;<br />
e. Select &#8220;Read&#8221;, &#8220;Run Script&#8221; &amp; &#8220;Execute&#8221; and click Next.<br />
g. Now Right click on the PHPMyAdmin Virtual directory and select permissions.<br />
h. Give &#8220;Read &amp; Execute&#8221; permissions to IUSR_ and inherit the permissions.<br />
i. Right click on the PHPMyAdmin Virtual directory &gt;&gt; Properties &gt;&gt; Virtual Directory &gt;&gt; Configuration and map .php extention to PHP executable.</p>
<p><strong>OPTIONAL CONFIGURATIONS:</strong></p>
<p>Configuration for PHP v5:</p>
<p>These steps are only required if you want to use PHP5 for PHPMyAdmin, in PHP4 PHP extension php_mysql.dll is build in and extension php_mysqli is not supported.:</p>
<p>a. Edit file %SYSTEMROOT%\php.ini, under the &#8216;Dynamic Extensions&#8217; Section:</p>
<p>Uncomment line:<br />
<code>;extension=php_mbstring.dll</code></p>
<p>If using MySQL v4.0 : Uncomment line<br />
<code>;extension=php_mysql.dll</code></p>
<p>If using MySQL v4.1 : Insert line<br />
<code>extension=php_mysqli.dll</code></p>
<p>Edit config.inc.php and update server extension line:<br />
<code>$cfg['Servers'][$i]['extension'] = 'mysqli';</code></p>
<p>Enable phpMyAdmin&#8217;s Relational Features:</p>
<p>Please make a note that these steps are required for &#8220;Authentication Method &#8212; for multi-user (untrusted) environment&#8221;</p>
<p>Edit phpMyAdmin&#8217;s configuration file C:\www\phpMyAdmin\config.inc.php:</p>
<p><code>$cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';</code><br />
<code>$cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark';</code><br />
<code>$cfg['Servers'][$i]['relation'] = 'pma_relation';</code><br />
<code>$cfg['Servers'][$i]['table_info'] = 'pma_table_info';</code><br />
<code>$cfg['Servers'][$i]['table_coords'] = 'pma_table_coords';</code><br />
<code>$cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages';</code><br />
<code>$cfg['Servers'][$i]['column_info'] = 'pma_column_info';</code><br />
<code>$cfg['Servers'][$i]['history'] = 'pma_history';</code><br />
<code>$cfg['Servers'][$i]['designer_coords'] = 'pma_designer_coords';</code></p>
<p>Now Run phpMyAdmin&#8217;s sql script file &#8216;create_tables.sql&#8217;:</p>
<p><code>C:\www\mysql\bin&gt; mysql -u root -p</code><br />
<code>mysql&gt; source C:\www\phpMyAdmin\scripts\create_tables.sql</code><br />
<code>mysql&gt; quit</code></p>
<p>That is it, you should be done with PHPMyAdmin installation on Windows.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mywebhostingblog.net/aspnet-web-hosting/how-to-install-phpmyadmin-on-windows/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Backup and Restore MySQL database using phpmyadmin</title>
		<link>http://www.mywebhostingblog.net/hosting-linux/backup-and-restore-mysql-database-using-phpmyadmin/</link>
		<comments>http://www.mywebhostingblog.net/hosting-linux/backup-and-restore-mysql-database-using-phpmyadmin/#comments</comments>
		<pubDate>Mon, 13 Oct 2008 14:02:58 +0000</pubDate>
		<dc:creator>Stephen</dc:creator>
				<category><![CDATA[Linux Server Hosting]]></category>
		<category><![CDATA[MySQL Hosting]]></category>
		<category><![CDATA[Window Hosting]]></category>
		<category><![CDATA[Backup]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[phpmyadmin]]></category>
		<category><![CDATA[Restore]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://www.mywebhostingblog.net/?p=102</guid>
		<description><![CDATA[Log into Plesk Control Panel and  steer yourself to &#8220;phpMyAdmin&#8221; For Backup of MySQL database click on Export. 1) Make sure that entire database is selected for Export, and not just one table. All the Tables under Database list should be added in Export List. 2) Now, follow the steps given select &#8220;SQL&#8221; for output [...]]]></description>
			<content:encoded><![CDATA[<p>Log into<strong> Plesk Control Panel</strong> and  steer yourself to &#8220;<strong>phpMyAdmin</strong>&#8221;</p>
<p>For Backup of <strong>MySQL database</strong> click on Export.</p>
<p>1) Make sure that entire database is selected for Export, and not just one table.<br />
All the <strong>Tables </strong>under <strong>Database </strong>list should be added in Export List.</p>
<p>2) Now, follow the steps given<br />
select &#8220;<strong>SQL</strong>&#8221; for output format<br />
Check &#8220;Structure&#8221;<br />
and &#8220;Add <strong>AUTO_INCREMENT</strong>&#8221; value<br />
Check &#8220;Enclose table and field name with back quotes&#8221;<br />
Check &#8220;<strong>DATA</strong>&#8221;<br />
check use &#8220;hexadecimal for binary field&#8221;<br />
Export type set to &#8220;<strong>INSERT</strong>&#8221;</p>
<p>3) Check &#8220;Save as file&#8221;, it is not necessary to change the file name.<br />
Click &#8220;GO&#8221; to download the <strong>backup </strong>file.</p>
<p><strong>Backup </strong>of your <strong>MySQL</strong> <strong>database </strong>is created !</p>
<p>Now, for Restoring backup of<strong> MySql database</strong></p>
<p>1) Click on <strong>SQL </strong>tab, to start restoration of your backup file.</p>
<p>2) Un-Check &#8220;Show this <strong>query </strong>here again&#8221;.</p>
<p>3) Browse to your <strong>database </strong>backup file.</p>
<p>4) Click &#8211; &#8220;GO&#8221;</p>
<p><strong>Backup is Restored !</strong></p>
<p><strong>Large MySQL Backups:</strong></p>
<p>Error: MySQL has gone away</p>
<p>To restore large SQL backups there are 2 setting that you will need to take of:</p>
<p>1. Make sure that you PHP upload size is great than your <strong>MySQL backup</strong> file, this setting will be needed to be changed in php.ini file. Only those who has server administrator access would be able to make changes in <em><strong>PHP.INI</strong></em> file. Hence you will have to contact your <strong>Hosting </strong>provider if you are hosted on a <strong>Shared server</strong>. But if you have a <strong>Dedicated Server</strong> then this file is normally stored in <strong>C:\Windows\php.ini</strong> or you can esily get the path from <em><strong>phpinfo()</strong></em> page. The option that you need to change is <em><strong>upload_max_filesize</strong></em>. It is also suggested that you increase the following parameters as per the size of your MySQL backup file:</p>
<p><em><strong>max_execution_time = 30     ; Maximum execution time of each script, in seconds<br />
max_input_time = 60    ; Maximum amount of time each script may spend parsing request data<br />
memory_limit = 8M      ; Maximum amount of memory a script may consume (8MB)</strong></em></p>
<p>2. You will need to increase the MySQL buffer size in MySQL configuration size, the file is <em><strong>my.cnf</strong></em> in Linux server and <em><strong>my.ini</strong></em> on Windows Server. The parameter that you need to change is:</p>
<p><em><strong>read_buffer_size</strong></em></p>
<p>By default it is set to 1MB, if the entry is not present then add it under [MYSQLD] section.</p>
<p>Please Make sure that you <strong>restart IIS webserver</strong> after making change to <em><strong>php.ini</strong></em> and <strong>restart MySQL</strong> after making changes in <em><strong>my.ini</strong></em> file.</p>
<p>If you<strong> </strong>looking backup MySQL using VBS or ASP script then refer the link below:</p>
<p><a title="MySQL backup with VBS or ASP" href="http://www.mywebhostingblog.net/aspnet-web-hosting/backup-mysql-using-vbs-scripts/" target="_self"><em><strong>How to backup MySQL using VBS or ASP script.</strong></em></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mywebhostingblog.net/hosting-linux/backup-and-restore-mysql-database-using-phpmyadmin/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>MySQL Database Indexing</title>
		<link>http://www.mywebhostingblog.net/mysql-features-and-queries/mysql-database-indexing/</link>
		<comments>http://www.mywebhostingblog.net/mysql-features-and-queries/mysql-database-indexing/#comments</comments>
		<pubDate>Sun, 28 Sep 2008 20:35:49 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[MySQL Hosting]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[disadvantages]]></category>
		<category><![CDATA[indexing]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.mywebhostingblog.net/?p=15</guid>
		<description><![CDATA[What is Database Indexing? Database index is like data structure that improves the performance of a database. Index on table can be created one or more column on databse table, which improves random access of any records and efficient access of ordered records. Types of Indexes in MySql 1. Normal Indexes :- Normal Index have [...]]]></description>
			<content:encoded><![CDATA[<p><strong>What is Database Indexing?</strong><br />
Database index is like data structure that improves the performance of a database.<br />
Index on table can be created one or more column on databse table, which improves random access of any records and efficient access of ordered records.</p>
<p><strong>Types of Indexes in MySql</strong></p>
<p>1. Normal Indexes :-<br />
Normal Index have not restriction like Uniqueness,it is a basic index.</p>
<p>2. Unique Indexes :–<br />
It is like a Normal index but only one difference, all values of the indexed columns must only occur once.</p>
<p>3.Primary Keys :-<br />
Primary keys are basically unique index and must be add &#8220;PRIMARY KEY&#8221; in specific column.</p>
<p>How to Create Index in Mysql at time of table creation.</p>
<p>CREATE TABLE student (<br />
fname VARCHAR(30),<br />
lname VARCHAR(30),<br />
studID INT, INDEX (studID)<br />
)</p>
<p>You can create index on existing table, used following MySQL Statement</p>
<p>CREATE INDEX index_studID ON student(studID)</p>
<p><strong>Advantages of database index</strong><br />
1. Database indexes speed up the database selection operation.</p>
<p><strong>Advantages of database index</strong><br />
1. Database indexes slow down the database insert,update,delete operations.<br />
2. Database Index takes more space.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mywebhostingblog.net/mysql-features-and-queries/mysql-database-indexing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
