who knows how to import a large database on VPS via SSH . please help

Status
Not open for further replies.

Ciul3x

Banned
Banned
87
2011
4
0
who knows how to import a large database on VPS via SSH
Hello
I bought vps. and I want to import a database large vps via SSH, I tried but I failed. who can help me. remain indebted. please
Thanks
 
11 comments
http://zugec.com/linux/import-sql-via-ssh just like here I did not go look that says yes
connect.jpg
 
So I downloaded the database from the host, and I put it on VPS. I tried a gram of tutorials but I failed. database is quite large 1.6 Gb
 
Where did you place the sql file? in /root/ ?

Then use this command:
"mysql -uYOURUSERNAME -pYOURPASSWORD -hlocalhost DATABASENAME < /root/database.sql"

Without ""
 
Better to not put the pass on the command line, otherwise it'll appear in bash history.

Code:
mysql -u username -p dbname < /root/database.sql
 
I was going to say that you could check your hosting provider and see if they offer some tutorials. Many good providers will offer flash tutorials for almost everything. I do see someone here has offered to do it for you. Tutorials don't work for everyone but they are a good option for learning new tricks and old basics.
 
Status
Not open for further replies.
Back
Top