No Mysql Backup mysqldump: Got error: 1045: Access denied for user 'root'@'localhost' (using password: YES) when trying to connect

flejur a year ago

Hello,

i have installed traccar with https://www.traccar.org/install-digitalocean/

When i try a backup mysq: root@gps02:~# mysqldump -u root -h localhost -p traccar > traccar.sql
Enter password:

i receive this error:
mysqldump: Got error: 1045: Access denied for user 'root'@'localhost' (using password: YES) when trying to connect

i can login on the virtual server with root, the login on mysql is not working

How can I backup the Traccar Database?

Thank You?

Anton Tananaev a year ago

Are you sure you're using the right password?

odhiambo a year ago

If, when you installed MySQL, you did not secure it, then the root password is possibly blank!
If you secured it, then use the correct password.

flejur a year ago

I have found the error. The password is root. Many thanks for your help!

Anton Tananaev a year ago

What did you use?

flejur a year ago

User root Password root

Anton Tananaev a year ago

No, I meant before.

flejur a year ago

the root password for the vm