18July/16

Import database mysql wamp server using command line

Well we have Many ways to restore back your backed up database but using command line is save because you might have a very large file to upload. So find below the step by to step to do this.

1. Open Command Prompt (CMD - DOS) get into the mysql folder, which in my case works like this C:\> cd C:\wamp\bin\mysql\mysql5.0.51b\bin
2. Then use this command to fire up MySQL This line basically connects you to the mysql database of your choice. (-p for password if you have one) C:\wamp\bin\mysql\mysql5.0.51b\bin> mysql.exe -use databasename -u username -p
3. To make things easier, copy the SQL file into the same folder as mysql.exe, and then run this mysql> source myfilename.sql;

turn-off-comment


Configure your php.ini to allow larger files

post_max_size = 750M
upload_max_filesize = 750M
max_execution_time = 5000
max_input_time = 5000
memory_limit = 1000M

turn-off-comment

Configure your my.ini to allow larger files

max_allowed_packet = 200M (in my.ini)

turn-off-comment


SET PASSWORD IN WAMP

STEP 1 (got my.MYSql Console)

turn-off-comment

SET PASSWORD IN WAMP

STEP 2 (do the following)

turn-off-comment


RUN WAMP SERVER PROJECT OVER YOUR NETWORK

STEP 1 (do the following)

turn-off-comment