Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /public_html/opencart/system/database/mysql.php on line 6
Utilisation de phpMyAdmin

Documentation - Utilisation de phpMyAdmin

Utilisation de phpMyAdmin

Backing Up Your Database

  1. First, navigate to your phpMyAdmin page via cPanel or whatever alternative administration system your host provides i.e. Plesk etc. and log in.
  2. From the dropdown box on the left (or the text link) click on your OpenCart database to show all the fields.
  3. In the main page, click on the 'Export' tab.
  4. Make sure the main 'Structure' 'select all' and 'Data' boxes are ticked.
  5. In the right box, make sure 'Add drop table', 'Add AUTO_INCREMENT value' and 'Enclose table and field names with backquotes' are ticked.
  6. select the SQL format in the 'export' column'.
  7. Tick 'Save as file'.
  8. If you want the backup file compressed, tick either 'zipped' or 'gzipped'.
  9. Click 'Go' to save your file - the preferred location would be your own PC - saving a backup on a host server could be problematic should the server hard drive fail. It's always better to have your own backup locally!

Restoring a backup

On the phpMyAdmin main page - Click on the 'SQL' tab at the top and browse to the location of your backup file. Then select 'Go' from the tab at the bottom right corner of the screen - you may need to empty your existing database before you can restore the backup however normally you don't as the backup will simply overwrite the existing database.

Emptying your database

On the PhpMyAdmin main page - Click on the 'Structure' tab at the top and browse to the botom of the page. Then select 'Check All' and from the drop-down choose 'Empty'. Select 'Yes' to empty the database.

Hébergé par Easy Hébergement