Author Topic: An issue with Exporting DB  (Read 725 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
An issue with Exporting DB
« on: November 18, 2023, 04:00:53 PM »
Hi there,

OS: CentOS
Version: CWP7 Pro

I'm unable to export DB for a user using SSH and getting " Got error: 1045: "Access denied for user ".
Can someone please explain how to solve this issue?

Note: the DB was created by the same user and I'm using its' password to export it.

Offline
****
Re: An issue with Exporting DB
« Reply #1 on: November 18, 2023, 05:57:45 PM »
You're using mysqldump via an SSH session (using user credentials)? As a workaround, can you export as root? Or have you tried phpMyAdmin?

Offline
*
Re: An issue with Exporting DB
« Reply #2 on: November 18, 2023, 08:18:33 PM »
You're using mysqldump via an SSH session (using user credentials)? 
Yes

Quote
As a workaround, can you export as root?
yes, but How can a client do it without root access.

Quote
Or have you tried phpMyAdmin?
No, because I think this should work.

Offline
****
Re: An issue with Exporting DB
« Reply #3 on: November 20, 2023, 03:27:21 AM »
Are you able to connect to mysql via the user/password?

If yes, add "   --single-transaction  " to mysqldump, as the user doesn't have lock table privileges
Google Hangouts:  rcschaff82@gmail.com