Database Import Problem

Status
Not open for further replies.

Praveer

Active Member
1,616
2010
135
0
Hello all,

I am trying to import DB. But after few minutes it says :

No activity within 1440 seconds; please log in again.

I tried 2-3 times but with no luck.

I am using Kloxo.

Can anyone please suggest me some way how to stop this message and import the database successfully?

Thank you
 
16 comments
Never used that. Me using phpmyadmin. Actually I am on a new server and backup on my computer not on any server.

just download mysqldump, then place it in your public_html folder, install it, add your database logins, upload the db backup you got through ftp, and dump it to a new database or exisiting one. ;)
 
Easiest method for you mate ...

Login to ssh and do this ...

mysql -uUSERNAME -pPASSWORD DATABASENAME < MYDATABASE.sql

instead of USERNAME put your username
instead of PASSWORD put your pass ofc
instead of DATABASENAME put your empty database that you created to import your data into
instead of MYDATABASE.sql put your .sql file name.

Good luck,
Ryan
 
Easiest method for you mate ...

Login to ssh and do this ...

mysql -uUSERNAME -pPASSWORD DATABASENAME < MYDATABASE.sql

instead of USERNAME put your username
instead of PASSWORD put your pass ofc
instead of DATABASENAME put your empty database that you created to import your data into
instead of MYDATABASE.sql put your .sql file name.

Good luck,
Ryan

But the file is stored locally on my computer. Its not on the VPS. Will the method stil work?

Thanks
 
@praveer
use ftp to upload database to ur server first,then login to ssh & use this command

mysql -u dbusername -p databasename < /path/to/backupname.sql

You will be prompted for the database password. Enter it and the database will restored.
 
Mate here uploading speed sucks

then just go in ssh and type

nano file.sql

it will open up text editor, just copy the text from your own computer and paste it in the terminal.

then save the file and run the command

mysql -u dbusername -p databasename < file.sql

:)

If you still need help, let us know :D

Cheers,
Ryan
 
Status
Not open for further replies.
Back
Top