Now, updating for Tiki 9! Get Smart...
Now accepting new user registrations! Become a contributor.
| More
Join Print Print multiple pages Convert to PDF

Backing up the Database

The MySQL database used by Tiki contains all of the "data" for your site, including:
  • All Tiki feature items (such as wiki pages, articles, polls, and so on)
  • Menus and menu options
  • Site preferences and settings

TipTip:
Check with your webhost provider for specific backup instructions.



Using phpMyAdmin

If you use phpMyAdmin, the easiest way to back up your database is to use the Export feature in phpMyAdmin.
phpMyAdmin Export tab
Exporting the database.

The resulting .sql file (or archived format, if you selected zip or gzip format) contains the complete database. With it, you can restore the database.... and your entire Tiki.
TipTip:
For detailed information on using phpMyAdmin, refer to http://www.phpmyadmin.net(external link).



Using the Command Line

You can also back up your database from a command line by creating. Use the following command to create a dump of the database:

mysqldump DATABSE_NAME > DUMP_FILE

TipTip:
For detailed information on using mySQL, refer to http://www.mysql.com(external link).



Restoring from a Backup

To restore a backup, you simply import the dump file into your database. The dump file contains the necessary SQL commands to create the database and populate it.
NoteNote:
Depending on the size of your database, the SQL transaction may exceed your host's maximum allowed value. You may need to increase the max_execution_time and max_input_time variables in your php.ini file.

TipTip:
If your host has imposed a runtime limit, you may not be able to import your dump file successfully. You can use BigDump(external link) to perform a staggered import in order to restore your database


Using phpMyAdmin

With phpMyAdmin, you can easily restore a database by using the Import feature to import the dump file.
phpMyAdmin Import tab
Importing a previously created backup file.


Simply select the backup dump file that you create previously.


From the Command Line

To restore a database from a dump file from the command line, use the following command:

mysql.exe -u DATABASE_USERNAME -p DATABASE_NAME < SQL_BACKUP_FILE




Contributors to this page: Rick Sapir .
Page last modified on Friday, October 14, 2011 07:37:38am EDT by Rick Sapir.
The content on this page is licensed under the terms of the Copyright Information.

Buy the Books

Tiki Essentials & Tiki for Smarties -- Buy the Books.
Available from Amazon, LuLu, and more as paperback or ebook...

What do you think?

What do you think of this project?



Anti-Bot verification code image Try another code



View Results
(Votes: 20)

"..This is the only Tiki site that explained things enough that I could follow and understand. Thank you!"

Is Essentials helpful?

Essential Readers



Advertising



Powered by Tiki Wiki CMS Groupware
Creative Commons Copyright. Some rights reserved.
Tiki Essentials (this site) is © 2011-2012 by Rick Sapir, published by KeyContent.org, and is licensed
under a Creative Commons Attribution-Share Alike 3.0 United States License. Some rights reserved. Privacy Policy.
Permissions beyond the scope of this license may be available at http://twessentials.tikiforsmarties.com/Copyright Information.
Questions, comments, or concerns about this site or the guide? Let me know.
New to Tiki? Try Tiki for Dummies Smarties: A beginner's guide to using Tiki Wiki CMS Groupware.


Feedback Form
Feedback Analytics