Version 3 (modified by 9 years ago) ( diff ) | ,
---|
Drupal HowTo Copy site to test server
Process
- Run the Full backup script to produce a file called something like
sitebackup-YYYY-MM-DD.tgz
scp
the tar file to the new servertar -zxvf sitebackup-YYYY-MM-DD.tgz
, which will produce 2 files calleddbcontent.sql
andfilecontent.tar
- Create a directory for the web folder
mkdir /local/www/scad
- Log into MySql
- Create the database using
CREATE DATABASE {databasename} CHARACTER SET utf8 COLLATE utf8_general_ci;
- Grant the user permissions to the database using
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES ON {databasename}.* TO '{username}'@'localhost' IDENTIFIED BY '{password}';
Note:
See TracWiki
for help on using the wiki.