Loading...
 

Import database

This is part of the Basic Docs Project. It needs review, and screenshots need to be replaced by their English equivalents
.


There are two easy ways to proceed:

  1. Through web interface (Phpmyadmin), o
  2. Through command at a terminal screen (command mysql)

A. Through web interface (Phpmyadmin)

Go to your Phpmyadmin installation.

Image


Select your database name, from the drop down list on the left column in the previous screen.

Image


You have to go to the phpmyadmin tab which says "SQL", (versions 2.6.x of Phpmyadmin, like the one in the TikiLiveCD, or tab "Import", included in version 2.8.x of Phpmyadmin, for instance).

Export tab, in Phpmyadmin version 2.8.x
Export tab, in Phpmyadmin version 2.8.x

B. Through command at a terminal screen (command mysql)

Image

Image


Write a command like

Copy to clipboard
mysql -uuser -ppass tiki19 < tiki19_backup_yymmdd.sql


In your case, change in the example above:

  • user for your username at the mysql server
  • pass for the password for that username at the mysql server
  • tiki19 for your database name, and
  • yymmdd for the two digits of year, month and day, respectively, for instance, to have your backups easily sorted by name and date of creation also.


If you had exported your database without the option to delete the tables (Drop tables, from the Backup instructions through Phpmyadmin) before attempting to restore them from the database backup, then you will have to empty the database tables first. (through phpmyadmin, for instance).

And in case that you have troubles with the character set used to import the database to mysql, you can specify the character set in which your sql database backup is encoded. In order to do so, you can add the parameter --default-character-set=code (and as code, you can set for instance utf8 or iso-8859-1)

As an example, in order to set the character set to utf8, you would have to write something like:

Copy to clipboard
mysql -uuser -ppass --default-character-set=utf8 tiki19 < tiki19_backup_yymmdd.sql


C. Using MySqlDumper or HeidiSql

Both tools can import a sql file. See there homepages for details and examples.

  • http://www.mysqldumper.net/
  • http://www.heidisql.com/
  • BigDump (Staggered import of large and very large MySQL Dumps even through the web-servers with hard runtime limit and those in safe mode)
  • Adminer (formerly phpMinAdmin) is a full-featured MySQL management tool written in PHP. Conversely to phpMyAdmin, it consist of a single file ready to deploy to the target server.

Related pages

Alias

Restore Database


Created by system. Last Modification: Wednesday 31 July, 2019 07:45:24 GMT-0000 by Yves Kipondo.

doc.tiki.org

Get Started

Admin Guide User Guide

Keywords

Keywords serve as "hubs" for navigation within the Tiki documentation. They correspond to development keywords (bug reports and feature requests):

Accessibility (WAI and 508)
Accounting
Articles and Submissions
Backlinks
Banners
Batch
BigBlueButton audio/video/chat/screensharing
Blog
Bookmark
Browser Compatibility
Link Cache
Calendar
Category
Chat
Clean URLs
Comments
Communication Center
Compression (gzip)
Contacts (Address Book)
Contact us
Content Templates
Contribution
Cookie
Copyright
Credit
Custom Home and Group Home Page
Date and Time
Debugger Console
Directory of hyperlinks
Documentation link from Tiki to doc.tiki.org (Help System)
Docs
Draw
Dynamic Content
Dynamic Variable
External Authentication
FAQ
Featured links
File Gallery
Forum
Friendship Network (Community)
Gmap Google maps
Groups
Hotword
HTML Page
i18n (Multilingual, l10n)
Image Gallery
Import-Export
Install
Integrator
Interoperability
Inter-User Messages
InterTiki
Kaltura video management
Karma
Live Support
Login
Logs (system & action)
Look and Feel
Mail-in
Map with Mapserver
Menu
Meta Elements
Mobile Tiki and Voice Tiki
Module
MultiTiki
MyTiki
Newsletter
Notepad
Payment
Performance Speed / Load
Permissions
Platform independence (Linux-Apache, Windows/IIS, Mac, BSD)
Polls
Profiles
Profile Manager
Report
Toolbar
Quiz
Rating
Feeds
Score
Search engine optimization
Search
Search and Replace
Security
Semantic links
Shadowbox
Shadow Layers
Share
Shopping cart
Shoutbox
Slideshow
Smiley
Social Networks
Spam protection (Anti-bot CATPCHA)
Spellcheck
Spreadsheet
Stats
Surveys
Tags
Task
Tell a Friend, alert + Social Bookmarking
TikiTests
Theme CSS & Smarty
Tiki Manager
Trackers
Transitions
User Administration including registration and banning
User Files
User Menu
Watch
WebDAV
Webmail
Web Services
Wiki History, page rename, etc
Wiki Syntax
Wiki structure (book and table of content)
Workspace
WSOD
WYSIWYCA
WYSIWYG
XMLRPC

Tiki Newsletter

Delivered fresh to your email inbox!
Newsletter subscribe icon
Don't miss major announcements and other news!
Contribute to Tiki