Installing/importing database in mysql is usually done as following..

mysql -u[UserName]-p[Password] [DatabBaseName] < /[File_Name].sql

Now if you want to import database and want to monitor the progress while importing, you need to install pipe-viewer on you machine then you can use this command

db_query() is not recomended for INSERT, UPDATE, or DELETE queries. As per its documentation, Those should be handled via db_insert(), db_update() and db_delete() respectively.

Subscribe to RSS - MySql