• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

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