Hi,
The file in play here is:
mythtv-database.postinst
The SECURITY_INFO, hidden for obvious reasons, is either from
the defaults file /etc/mysql/debian.cnf or entered manually via
prompts. It's the
SQL root user which is automatically generated
and stored in the file in /etcmysql or (if that doesn't exist) one which
you picked during setup. The file in /etc/mysql should never be
changed, as it's used by the system. The SQL root password has nothing
to do with the linux root user's login, although nothing says they couldn't
be the same.
If the defaults file exists, cat it and try to login using the credentials in
it:
Code: Select all
$ sudo cat /etc/mysql/debian.cnf
[sudo] password for bill:
# Automatically generated for Debian scripts. DO NOT TOUCH!
[client]
host = localhost
user = debian-sys-maint
password = someVeryLongString
...
$ mysql --user=debian-sys-maint --password=someVeryLongString mysql
Code: Select all
if [ "$admin_username" = "debian-sys-maint" ]; then
SECURITY_INFO="--defaults-file=/etc/mysql/debian.cnf"
else
db_get mythtv/mysql_host
hostname="$RET"
db_get mythtv/mysql_admin_password
admin_password="$RET"
if [ "$admin_password" != "" ]; then
admin_password="-p$admin_password"
fi
SECURITY_INFO="--host=$hostname --user=$admin_username $admin_password"
fi