Archive for the tag 'Importing'

Problem importing one of the Python modules required to run yum

Error: There was a problem importing one of the Python modules required to run yum. … Cannot allocate memory.

Solution: Python frequently runs into the memory limits set inside WHM and cPanel. You may be able to resolve this issue by increasing the per process memory limit in the WHM Tweak Settings feature, or by running EasyApache from the command line to minimize its memory footprint.

Reference: http://cpanel.net

Exporting and Importing mysql databases

Exporting the Database.

In this example, we will export the ‘mydb’ database into a file called ‘mydb.sql’:

mysqldump -u root -p mydb > mydb.sql

Importing the data is just as easy but involves two steps.

The first step is to create a blank database ready to receive the data.

mysqladmin -u root -p create mydb1

Once done, all that is left is to actually import the data:

mysql -u root -p mydb1 < mydb.sql

Plesk Panel Importing Data From Linux/Unix-based Servers

To transfer your data using the data import function:

1. Locate the following folders on your Parallels Plesk Panel 9 server, and copy all files from them to a single directory on the server, from which you want to transfer data.

On Linux/Unix platforms, you need to copy all files from the following folders:

[parallels_plesk_panel_installation_directory]/PMM/Agents/PleskX/ and [parallels_plesk_panel_installation_directory]/PMM/Agents/shared.

2. On the source server, run the PleskX.pl utility with the appropriate command line options:

To make a copy of all data, issue the command

PleskX.pl –dump-all

Once all the required files are created, open the file content-list.xml to see what files were created. Move all these files, including dump.xml, to the destination server.
In a Web browser, log in as administrator to your Parallels Plesk Panel, go to Home > Migration Manager (in the Help & Support group), and then click Start Migration.
Select the option Transfer data already processed by the migration agent and located on the local host.
In the Migration data file location box, type the path to the directory where you saved the data. Click Next >>.