Before I waffle on,.. I love the Control-panel interface,.. this makes installation so much easier, my thanks to all contributors..even if I am having a problem,
Using the control-panel, I have installed a clean mythtv combined FE/BE. based on a 34 install.. and setup as best I can...
The default config.xml uses the wrong passwd,. ( fortunately I kept the original system generated one, and my original ), so I was able to use the default created passwd,.. login to SQL,.. then modify the passwd to match my config.xml.
In the process I have followed a few setup things grant privs etc.. the standard ones.
I have then tried to restore my database as follows:-
this returns the following output:-/usr/share/mythtv/mythconverg_restore.pl --verbose --drop_database --create_database --filename /mnt/Backups/DBaseFiles/Daily/mythconverg-1361-20231127163245.sql.gz
Looking further:-Configuring environment:
- username: mark
- HOME: /home/mark
- MYTHCONFDIR: /home/mark/.mythtv
Parsing configuration files:
- checking: /home/mark/.mythtv/config.xml
parsing: /home/mark/.mythtv/config.xml
- checking: /home/mark/.mythtv/backuprc
parsing: /home/mark/.mythtv/backuprc
Applying command-line arguments.
Checking configuration.
Database Information:
DBHostName: mythtv0
DBPort: 3306
DBUserName: mythtv
DBPassword: XXX
DBName: mythconverg
DBSchemaVer:
DBBackupDirectory: /mnt/Backups/DBaseFiles/Daily
DBBackupFilename: mythconverg-1361-20231127163245.sql.gz
drop_database: yes
create_database: yes
Executables:
mysql_client: mysql
uncompress: gzip -d
Miscellaneous:
partial_restore: no
restore_xmltvids: no
change_hostname: no
Checking database.
DBI connect('host=mythtv0:database=mythconverg','mythtv',...) failed: Can't connect to MySQL server on 'mythtv0:3306' (111) at /usr/share/mythtv/mythconverg_restore.pl line 933.
Preparing initial database.
DBI connect('host=mythtv0','mythtv',...) failed: Can't connect to MySQL server on 'mythtv0:3306' (111) at /usr/share/mythtv/mythconverg_restore.pl line 933.
Unable to connect to database.
database: mythconverg
host: mythtv0
username: mythtv
password: lCxsunfHc
Please check your configuration files to verify the database connection
information is correct. The files that are used to retrieve connection
information are prefixed with "parsing" in the "Parsing configuration files"
section of the --verbose output.
mysql is running, and I can use the credentials to log into mysql....● mysql.service - MySQL Community Server
Loaded: loaded (/usr/lib/systemd/system/mysql.service; enabled; preset: enabled)
Active: active (running) since Sun 2024-06-16 13:20:44 BST; 4h 26min ago
However,.. I do not know what the 'root' passwd is for mysql,.. and I am not sure what the correct setting for the database are as I found references to mysql setup,.. with a caveat being pre 34,.. but I cannot find what is the current setting for 34,.. and I cannot see in the control-panel a means of creating a new clean database from a template for myth to use..
I have also tried to run the backend from the command line,.. that to fails, not being able to connect to the database.
I have a config.xml in my /home/mark/.mythtv,.. and the etc/mythtv/config.xml as linked to it as well,.. as is the mythtv user,..
Code: Select all
mark@mythtv0:/etc/mythtv$ ls -l
total 8.0K
0 lrwxrwxrwx 1 root root 29 Jun 16 13:13 config.xml -> /home/mark/.mythtv/config.xml
4.0K -rw-r----- 1 root root 452 Jun 16 13:10 old_config.xml
4.0K -rw-r--r-- 1 root root 1.1K May 30 12:13 session-settings
Is anyone able to shed some light on my errors and what I may have done wrong...