Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Longview can't auto-create MariaDB creds on Debian 9 #40

Open
displague opened this issue Jul 26, 2017 · 1 comment
Open

Longview can't auto-create MariaDB creds on Debian 9 #40

displague opened this issue Jul 26, 2017 · 1 comment

Comments

@displague
Copy link

displague commented Jul 26, 2017

mysql_password=$(egrep '^\s*password\s*=\s*' /etc/mysql/debian.cnf | head -n1 | sed 's/^\s*password\s*=\s*//')
should be adjusted to fetch the username associated with the "Upgrades" account. In Debian9 with MariaDB (which is a silent replacement for mysql-server) this account is now "root" rather than "debian-sys-maint".


Seen during Longview Client install:

Unable to automatically configure MySQL plugin:

Longview has detected MySQL running on this server but was unable to automatically configure the connection. To allow Longview to access your MySQL instance please run the following queries:


root@debian:~# cat /etc/mysql/debian.cnf
# Automatically generated for Debian scripts. DO NOT TOUCH!
[client]
host     = localhost
user     = root
password =
socket   = /var/run/mysqld/mysqld.sock
[mysql_upgrade]
host     = localhost
user     = root
password =
socket   = /var/run/mysqld/mysqld.sock
basedir  = /usr
@displague displague changed the title Longview can't create MariaDB creds on Debian 9 Longview can't auto-create MariaDB creds on Debian 9 Jul 26, 2017
@displague
Copy link
Author

The socket file should also be parsed from the config rather than assuming the default, as reported in #17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant