Breaking News

Editors Picks

Wednesday, October 31, 2012

MySQL Database Backup using mysqldump command



MySQL Database Backup using mysqldump command.
·          
MySQL provide a great command line utility to take backup of your MySQL database and restore it. mysqldump command line utility is available with MySQL installation (bin directory) that can be used to achieve this.
1. Getting backup of a MySQL database using mysqldump.
Use following command line for taking backup of your MySQL database using mysqldump utility.

mysqldump –u[user name] –h[hostname] –p[password] [database name] > [dump file]
Example:

   mysqldump –uroot –hlocalhost –prootpassword test > D:/test.sql


2. Restoring MySQL database.
The mysqldump utility is used only to take the MySQL dump. To restore the database from the dump file that you created in previous step, use mysql command.
mysql -u[username] –h[hostname] –p[Password] [database name] < [dump file]
Example:
mysql -uroot –hlocalhost -prootpassword test < D:/test.sql

Do you know the other uses of mysqldump utility?

Read more ...

Tuesday, October 9, 2012

ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

While you are trying to read a CSV file and trying to get the data in a Dataset using Microsoft Text Driver in your 64 bit machine, you will be shown an error message as:

ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

Try the solution as I do. It worked for me:
1. Go to IIS and Application Pools in the left menu.
2. Click the project name in the listing.
3. Click the Set Application Pool Defaults.
4. In General Tab, make the Enable 32 Bit Application entry to "True"


Now it works.
Read more ...

Contact Us

Name

Email *

Message *