Tuấn Sữa

Lỗi Export mysql “ERROR 1045 (28000): Access denied for user”

If you’re able to connect to the database using mysql, but you get an error for mysqldump, then the problem may be that you lack privileges to lock the table. (Nếu bạn có thể kết nối với cơ sở dữ liệu bằng mysql, nhưng bạn gặp lỗi với mysqldump, thì vấn đề có thể là do bạn thiếu đặc quyền để khóa bảng.)

Try the –single-transaction option in that case. (Hãy thử tùy chọn –single-transaction trong trường hợp đó.)

mysqldump -h database.example.com -u mydbuser -p mydatabase --single-transaction  > /home/mylinuxuser/mydatabase.sql


Exit mobile version