Export data from the database

  • Posts: 311
  • Thank you received: 8
  • Hikashop Business
2 years 2 months ago #344855

Hi Nicolas.
As I have told you in other queries, I am preparing the migration of my domain to Joomla 4.
I already have it quite advanced, but I have a problem.
How can I copy all the data from Hika to the new database?
It's a lot of data (more than 2 Gb) and I don't know how to do it.
Also, both databases have different prefixes.
Can you help me?

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 2 months ago #344857

Hi,

You can use the export button of your PHPMyAdmin on the hikashop tables.
That will give you a txt file with MySQL queries in it.
Then, you can use notepad++ to open the file on your local computer and search and replace the old table prefix to the new one.
Then, if you already have the hikashop tables in your new website database, rename them, and import the file with the prefixes updated.
It should be able to handle big files provided the max_execution_time and memory_limit of your php.ini are high enough.
Otherwise, if you're on your own server and you have a SSH access, you can use putty to connect to the ssh and run mysqldump / mysqlimport :
dev.mysql.com/doc/refman/8.0/en/mysqldump.html
dev.mysql.com/doc/refman/8.0/en/mysqlimport.html
The PHPMyAdmin interface actually use these in the background but it is limited by PHP while if you run these directly in the command line, you don't have these restrictions.

Please Log in or Create an account to join the conversation.

Time to create page: 0.053 seconds
Powered by Kunena Forum