[GH-ISSUE #74] Obsolete defaults-extra-file #72

Closed
opened 2026-02-26 17:44:16 +03:00 by kerem · 1 comment
Owner

Originally created by @printplaatreparatie on GitHub (Mar 29, 2023).
Original GitHub issue: https://github.com/Corsinvest/cv4pve-autosnap/issues/74

I'm looking into using autosnap, and found a deprecation note while researching the advice for snapshot consistency in /etc/mysql/debian.cnf:

# THIS FILE IS OBSOLETE. STOP USING IT IF POSSIBLE.
# This file exists only for backwards compatibility for
# tools that run '--defaults-file=/etc/mysql/debian.cnf'
# and have root level access to the local filesystem.
# With those permissions one can run 'mariadb' directly
# anyway thanks to unix socket authentication and hence
# this file is useless. See package README for more info.
[client]
host     = localhost
user     = root
[mysql_upgrade]
host     = localhost
user     = root
# THIS FILE WILL BE REMOVED IN A FUTURE DEBIAN RELEASE.

Wouldn't it be better to use MYSQL_OPTS="-uroot" #"-prootpassword" ?

Originally created by @printplaatreparatie on GitHub (Mar 29, 2023). Original GitHub issue: https://github.com/Corsinvest/cv4pve-autosnap/issues/74 I'm looking into using autosnap, and found a deprecation note while researching the advice for snapshot consistency in /etc/mysql/debian.cnf: # THIS FILE IS OBSOLETE. STOP USING IT IF POSSIBLE. # This file exists only for backwards compatibility for # tools that run '--defaults-file=/etc/mysql/debian.cnf' # and have root level access to the local filesystem. # With those permissions one can run 'mariadb' directly # anyway thanks to unix socket authentication and hence # this file is useless. See package README for more info. [client] host = localhost user = root [mysql_upgrade] host = localhost user = root # THIS FILE WILL BE REMOVED IN A FUTURE DEBIAN RELEASE. Wouldn't it be better to use MYSQL_OPTS="-uroot" #"-prootpassword" ?
kerem closed this issue 2026-02-26 17:44:16 +03:00
Author
Owner

@printplaatreparatie commented on GitHub (Mar 30, 2023):

I changed the link to the file to this, which works for me:

MYSQL_OPTS="-uroot"
MYSQL_PWD="mypassword"
<!-- gh-comment-id:1490757364 --> @printplaatreparatie commented on GitHub (Mar 30, 2023): I changed the link to the file to this, which works for me: MYSQL_OPTS="-uroot" MYSQL_PWD="mypassword"
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cv4pve-autosnap#72
No description provided.