mysqldump - /etc/mysql/ 'password' is more important than all DBeaver settings
See original GitHub issueSystem 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:
- 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
- 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:
- Created 5 years ago
- Comments:7 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@fluxsauce thanks for testing and information. Ticket is reopened
I am getting this exact same issue with mariadb 10.3.31 and DBeaver 21.2.3 the DB dump fais with error:
Is not using password to connect to DB.