This is part of the Basic Docs Project. It needs review, and screenshots need to be replaced by their English equivalents |
Select your database name, from the drop down list on the left column in the previous screen.
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).
|
Write a command like
mysql -uuser -ppass tiki19 < tiki19_backup_yymmdd.sql
In your case, change in the example above:
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:
mysql -uuser -ppass --default-character-set=utf8 tiki19 < tiki19_backup_yymmdd.sql
Both tools can import a sql file. See there homepages for details and examples.