~/.my.cnf not read in Ubuntu 20.04 and MariaDB 10.3.22
Ken D'Ambrosio
ken at jots.org
Tue Sep 8 18:58:25 UTC 2020
On 2020-09-08 11:02, Lentes, Bernd wrote:
> ----- Am 8. Sep 2020 um 15:18 schrieb Ken D'Ambrosio ken at jots.org:
>
>
>> File permissions, maybe? I see it should be set to 600, and the file,
>> itself, would not need to be accessed to check the metadata on it.
>>
>
> root at nc-mcd:/root# ll .my.cnf
> -rw------- 1 root root 42 Sep 8 14:50 .my.cnf
Just tried it out myself, and it worked great. My file:
# cat .my.cnf
[client]
user=root
password="mypassword"
Do note that, while reading up, I bumped into this, which might be
relevant:
-
Note
A MySQL program started with the --no-defaults option reads no option
files other than .mylogin.cnf.
More information about the ubuntu-users
mailing list