• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Transferring large database via ssh

G

greenchicken

Guest
Ok I have Plesk8

I have a Vbulletin forum

I have a large database I want to transfer via ssh

I am new to ssh very new

Say I upload a database to httpdocs on account example.com

and I wanted to move that database to my database list by ssh

what are the exact command lines to do this and is it possible?

TIA
Total newbie, wanting to learn
 
If you've got a mysql DB, I think that the easiest thing to do is to export/import it via PHPMyAdmin rather than moving the DB files from one server to the other...

Or the best way, not the easiest would be to use a mysql client like SQLyog, you connect to the old server and to your actual plesk web server (via VPN module of Plesk, OpenSSL). Then you select to "copy a database to a different Host/DB".

You might find this article usefull:
backup and restore a mysql database
 
The question is: what've you uploaded?

It can be *.sql, then just simply you enter directory with that file, and execute:
mysql -u username -p -D database < yourfile.sql

You can create user and database via PHPMyAdmin for example. Don't even think of uploading large db via PHPMyA - it won't work. ;)

If you have a hardcopy of *.MYD, *.MYI, *.frm files just upload them to mysql's data directory (it depends on what system you have). For example to /var/lib/mysql/database/ and you're done (just remember to create a user for that database).
 
Back
Top