CMD for php web developing

Hi,

I am sharing some useful cmd comment for windows. Might helps some one which specially help me. If anyone know more please share with me which will be a great news for me. 😛


//create database 
> mysql -uuser -ppassword -e "create database databasename"


//import database from mysql admin 
> mysql -uuser -p database_name < filename_with_path_of_sql

//export database to a table
> mysqldump -uuser -ppassword database_name > import_file_name_with_extention


Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: