Situation
I have an Open Emr database, emr_backup.tar from a Linux system. I am trying to restore this database to a Windows 10 based system. I have Open EMR 5.0.1 successfully running on this Windows system. I found two ways to try to restore this database and can get neither of them to successfully work.
I was able to import the database (never asked for a password) using these instructions, but it seems to corrupt the entire software. I cannot even start the login page of Open EMR.
Thanks, ViSolve-121. So when I create a username and password with phpmyadmin, should I check “create database with same name and grant all privileges”? If I do so, then I can’t see that new database in the list of databases. But if I don’t check it, it creates a new account but I can’t see how I can connect it to the current openemr database.
In phpmyadmin, go to privileges, click ‘add a new user’.
Provide the login information area(username, password).
Click on the radio button for create database with the same name(restored database name) and grant all privileges.
There you can find import option and using that, you can import your sql file.
After successful import, you can check whether all the tables have been restored.
Make sure that your username and password match the same as in sql.conf file.
Thanks again so much for the advice. So I tried all of the steps that you suggested. It seemed to import the sql file but after about 10 minutes, it gave an error message-
phpMyAdmin- ERROR
Incorrect format parameter
Does this mean that I did not put in the correct login/password for the database? Or does it mean that I did not create the database with the same name? Is the name of the database the same as the name of the backup file- openemr.tar.gz? I just used ‘openemr’ as the database name. When I tried to start OpenEMR, it says- Check that mysqld is running, and it is running fine.
I was able to get to the restore but when it asked for OpenEMR database password
Do I use the password from the new computer (fresh install) or password from the backup.tar? I tried both and it worked for both. I just don’t want any future errors.