How to edit windows hosts file(C:\Windows\System32\drivers\etc\hosts)

  1. Click Start
     Start button click All Programs, click Accessories, right-click Notepad, and then click Run as administrator.
     User Account Control permission If you are prompted for an administrator password or for a confirmation, type the password, or click Allow or Yes.
  2. Open the Hosts file or the Lmhosts file, make the necessary changes, and then click Save on the Edit menu. If using Windows 7, you will need to click Save on the File menu.
Advertisements

mysqldump —Database Backup Program

Windows command promt:

To go a drive, just need to write the drive name such as > D:
To access directory D:\>cd directory_name such as  D:\>cd test_directory
To access file D:\>cd directory_name\file_name such as D:\>cd test_directory\test.php

To access upper directory [D:\users\devel2\test>cd..] the output will be  [D:\users\devel2>]

To dump mysql db table: F:\xampp\mysql\bin\mysqldump -h localhost -u root -p dxlogin users > users.sql

F =  is the drive name where xampp is installed,
-h localhost = mysql host name
-u root = mysql user name
-p = mysql password
dxlogin = database name
users = table name
users.sql = the sql file that will be dumpped.

reference site url for mysql dump http://dev.mysql.com/doc/refman/5.1/en/mysqldump.html