[MDEV-23015] mariadb-setpermission seems incompatible with DBI:MariaDB Created: 2020-06-25 Updated: 2023-11-20 Resolved: 2021-04-13 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Scripts & Clients |
| Affects Version/s: | 10.5.4 |
| Fix Version/s: | 10.5.10 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Anders Karlsson | Assignee: | Anel Husakovic |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Linux CentOS 7.7 |
||
| Issue Links: |
|
||||||||||||||||
| Description |
|
When running mariadb-setpermission it fails to connect to MariaDB. On line 89 (in MariaDB 10.5.4) it tries to connect using port/host and mariadb_socket, and all three of these cannot be used together. You get the error: |
| Comments |
| Comment by Elena Stepanova [ 2020-08-04 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
It seems to be a problem specific to DBD::MariaDB. In previous versions, which use DBD::mysql, it works fine. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2020-08-04 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Since we cannot control DBD::MariaDB, I guess it has to be worked around in the script itself. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Anel Husakovic [ 2021-03-11 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hi sanja can you please review 9e5202f6f96?
or
The patch is also related to Also there was a question on KB https://mariadb.com/kb/en/mysql_setpermission-depracated/ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Anel Husakovic [ 2021-04-07 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hi sanja here is the patch for compatibility with DBD::mysql : patch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2021-04-13 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
OK to push (afterall it is internal scripts) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Anel Husakovic [ 2021-04-13 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Pushed with 18a829012 |