question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

mysqldump - /etc/mysql/ 'password' is more important than all DBeaver settings

See original GitHub issue

System information:

  • Linux Mint 19.1 (Ubuntu 18.04 based)
  • DBeaver 5.3.5, 5.1.6
  • openjdk 10.0.2
  • local database MariaDB 10.1.38

Connection specification:

  • MySQL 5.5 and MariaDB 10.1.37
  • MySQL and MariaDB
  • tried with tunnel and without

Describe the problem you’re observing:

I can connect to remote servers as I always could, but when I try to dump database using DBeaver, it shows that access is denied by database. I tried same mysqldump parameters by command line with added ‘-p’ and it worked. Setting special Authentication for mysqldump in DBeaver did not help. I tried with ‘save password locally’ and without.

-- Connecting to 149.202.xx.xx...
mysqldump: Got error: 1045: "Access denied for user 'root'@'212.91.xx.xx' (using password: YES)" when trying to connect

Steps to reproduce:

  1. Edit MariaDB config and set there password, to make it possible to connect to database by command line from any user without password: /etc/mysql/conf.d/mysqldump.cnf or /etc/mysql/mariadb.conf.d/50-client.cnf
[mysqldump]
user=root
password=MySecretPassword

or:

[client]
user=root
password=MySecretPassword
  1. Try to dump database of any remote host. No matter what password and where you set in DBeaver, it will send your password from MariaDB config to remote server.

It should use password configured in DBeaver!

I know that security experts will post that I should not store root password in file. It’s development machine - there is nothing important in database.

Include any warning/errors/backtraces from the logs

Nothing special in logs.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
uslsscommented, Jul 22, 2020

@fluxsauce thanks for testing and information. Ticket is reopened

0reactions
cccaballerocommented, Nov 3, 2021

I am getting this exact same issue with mariadb 10.3.31 and DBeaver 21.2.3 the DB dump fais with error:

mysqldump: Got error: 1045: "Access denied for user 'xxxx'@'xxxxxx' (using password: NO)" when trying to connect

Is not using password to connect to DB.

Read more comments on GitHub >

github_iconTop Results From Across the Web

dbeaver mysql access denied - Stack Overflow
So I needed to set the "SSH" section so that it would log me in to ... In main configuration username="root" password="YOUR_PASSWORD" As...
Read more >
Cannot export MySQL Database with SSH Tunnel
Is there necessary any kind of extra configuration? I've only started dbeaver executable and downloaded the MySQL driver automatically.
Read more >
mysqldump throws: Unknown table 'COLUMN_STATISTICS' in ...
For anyone using DataGrip, you can right-click on the schema in the Database window, go to "Dump with 'mysqldump'", and add the --column- ......
Read more >
Managing connections - DBeaver Documentation
Secure connections from editing. It is possible to set the connection settings as read-only (protected by password). Generate MD5 hash of your password....
Read more >
unknown variable 'bind-address=ip' - mysql - Ask Ubuntu
There is no bind-address option for mysql in MariaDB. This option is related to the daemon part mysqld . So remove the bind-address...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found