The procedure consists of four steps:
Move the drupal directory
Import the database drupal on the new machine
Update your sites / nome_sito / settings.php
- Assuming you work with mysql and that the name of database is 'drupal', so we export:
- mysqldump - add-drop-table-u-p drupal mysqlusername> drupal.sql
-
is where the user you are using to access the DBMS.
After copying the files to the new machine, simply import the following command:mysqlusername mysql-u-p drupal If you work remotely, you must specify the host address using the parameter-h host
, in both cases.
Finally we open the settings.php file and change the parameters to connect to MySQL, so as to adapt to the new system.
< drupal.sql
0 comments:
Post a Comment