I've just been cloning a Joomla site for testing and I have found a possible improvement to the documentation (
https://docs.joomla.org/Copying_a_Joomla_website)
In the final section
Copying the database with MySQL command line method it shows how to use mysqldump to make a copy of your existing database, but I would recommend adding the
--databases switch so it reads:
Code: Select all
mysqldump -u user -p --databases db-name > db-name.out
The reason I suggest this is that when you copy the db-name.out file to the destination it will not automatically create the database if it does not exist. Adding that switch means it checks to see if the database exists and creates it if it doesn't.
Otherwise that section of the document is very useful.
Regards,
Steve