cravaus wrote on Sunday, July 13, 2014:
I was trying to migrate over from my Windows installation on my PC to a Linux installation on a Synology NAS running the DSM OS which is based on Linux but is not exactly like Umbuntu or Mint. It also uses MariaDB instead of MySQL. They are similar but not the same. So far I am finding ways to work with this.
I have tried using the Stephan’s method described above. When I used:
mysql -u root -p openemr < backup.sql
I was getting
Enter password: ERROR 1045 (28000): Access denied for user ‘root’@‘localhost’ (using password: YES)
I checked permissions in phpMyAdmin. I have temporarily checked all permissions for all users. This did not help. I tried several other command line solutions found on Google with no success either. I was frustrated.
My solution–use Bigdump
http://www.ozerov.de/bigdump/
I also made these changes in php.ini (in case size was an issue):
memory_limit = 512M
post_max_size = 512M
upload_max_filesize = 128M
I am not sure if this is optimal but it worked.
I dumped the file as fsgl recommends in phpMyAdmin however I also checked the “custom” radio button in the Export dialogue. I also checked “include column names in every INSERT statement” in the “Data creation options”. This is important for the import to go smoothly using Bigdump.
In phpMyAdmin in the new OpenEMR database I dropped all tables that exist. I then had the openemr database with no tables in it on the new system.
I loaded Bigdump in its own folder and edited the database configuration per the instructions:
$db_server = ‘localhost’;
$db_name = ‘openemr’;
$db_username = ‘root’;
$db_password = ‘my5ecurePA$5word’;
I put my dumped data from the old OpenEMR database in the Bigdump folder. I ran Bigdump. It slowly loaded the tables into the OpenEMR on my new server.
It worked. I deleted Bigdump from my system per the instructions. I copied over any custom source files from old htdocs/openemr as advised by Stephan. All is good. I think this will be my backup solution.
I hope this helps someone.
Craig