Hi, please help;
we use WIN7, OEMR 4.2.2 Xampp 3.2.1
everything was working fine, then we had an power outage; the powerbackup did not work at the same time so the whole server shut down; upon boot up i got this message:
Error: Duplicate entry ‘51610847’ for key ‘PRIMARY’
C:\xampp\htdocs\openemr\library\log.inc at 762:sqlInsertClean_audit
C:\xampp\htdocs\openemr\library\sql.inc at 206:auditSQLEvent(select distinct name from groups,1,)
C:\xampp\htdocs\openemr\interface\login\login.php at 72:sqlStatement(select distinct name from groups)
please help i am desperate and can not log in
sincerely
i tried again
c:\xampp\mysql\bin>mysqlcheck -u root - p pass databases
Enter password: (pass) and (secret)
and still Got error: 1045: Access denied to user ‘root’@‘localhost’ (using password: YES) when trying to connect
Hi yourdatabase
sorry i have never touch nor rename the databases
i tried:
mysqlcheck -c databases -u root -p secret
still ask me for Enter password: i then enter neither secret then again with pass
those are not function and gave this
mysqlcheck: Got error: 1049: Unknown databases ‘databases’ when selecting the databases
Error: Table ‘.\openemr\log’ is marked as crashed and should be repaired
C:\xampp\htdocs\openemr\library\log.inc at 762:sqlInsertClean_audit
C:\xampp\htdocs\openemr\library\sql.inc at 206:auditSQLEvent(select distinct name from groups,1,)
C:\xampp\htdocs\openemr\interface\login\login.php at 72:sqlStatement(select distinct name from groups)
thank you so much Wepp team;
after a long struggle we got it to check and work again
so this is what we did
mysqlcheck -u root -p (databases=which is openemr)
it asked for the password; which is the original (****)
then i enter that password
it ran for a while
then report many errors
we follow with
mysqlcheck -u root -p --auto-repair openemr
then it asked for password
it ran and corrected everything at the end…
sincerely thankful for all the helps and supports…
God bless