I do not believe I set a password. When I execute the mysqldump with -p the result is “Access is denied”.
When I looked in xampp > security, there is no file C:\xampp\security\mysqlrootpassword.txt
only webdav.htpasswd which contains:“xampp-dav-unsecure:$apr1$6O9scpDQ$JGw2Tjz0jkrqfKh5hhiqD1”
Now what?
I tried by creating the file with password set to a null string ‘’
I followed the instructions, but there is no command mysqld-nt, so I tried putting a space before the -nt. Results as follows - no change:
C:>C:\xampp\mysql\bin\mysqld-nt --init-file=C:\MSQLpasswordreset.txt
‘C:\xampp\mysql\bin\mysqld-nt’ is not recognized as an internal or external comm
and,
operable program or batch file.
C:>C:\xampp\mysql\bin\mysqld -nt --init-file=C:\MSQLpasswordreset.txt
150329 23:05:27 [Warning] option ‘new’: boolean value ‘t’ wasn’t recognized. Set
to OFF.
C:>C:\xampp\mysql\bin\mysqldump -u root -p openemr > dumpfile.sql
Access is denied.
So I searched and found the file you mentioned, but I have no idea what to do with it:
SIMPLE SOLUTION:
Using Powershell I found out the reason for the error is that the output file cannot be created in the C: directory, so I created a new directory and put it in there, that ran ok using username openemr. I can’t do it with root, I guess my password has been messed up from all this, but I guess with a reinstall it won’t matter. Thanks
I presume that you logged into Windows with Administrator’s privileges, not with a secondary account, when you got the last access denial.
If that is the case, try resetting root password as follows:
Stop MySQL from Xampp Control (C-drive\xampp\xampp control) & exit.
Open Notepad. UPDATE statement gets one line. FLUSH gets one line. See link. Paste:
UPDATE mysql.user SET Password=PASSWORD(‘MyNewPass’) WHERE User=‘root’;
FLUSH PRIVILEGES;
Name file as: C:\mysql-init.txt. Save the file. I think that this file will appear as the last item in C-drive tree in Windows Explorer.
Run in Command Prompt:
C:> C:\mysql\bin\mysqld-nt --init-file=C:\mysql-init.txt
Start MySQL from Xampp Control & exit.
Run mysqldump via user, root, with reset (new) password.
SIMPLE SOLUTION:
Using Powershell I found out the reason for the error is that the output file cannot be created in the C: directory, so I created a new directory and put it in there, that ran ok using username openemr. I can’t do it with root, I guess my password has been messed up from all this, but I guess with a reinstall it won’t matter. Thanks
Maybe someone could update the ‘upgrade’ page to reflect that win 8.1 will not allow the file to be placed in C:, so the instructions as given will not work.