Hello all,
I have just signed up to the forum and have a VERY frustrating problem that I have spent probably 40-50 hours trying to solve! I've search myth/ubuntu/mysql forums for some cause but to no avail. I am quite new to mythtv and linux but I am starting to get a good handle on how it all fits together. I will try to be as concise as possible.
I just wish that there was some more information on this problem as it seems to be very common out there on all distros.
Oh yeah and I am running front/backend on the same machine.
1) this is the 3rd Dist. of linux I have tried (Knoppmyth, Debian Sarge being the previous) and all have resulted in basically the same error:
root@mythbox:/home/mythtv# mythbackend
2005-11-22 01:08:14.154 New DB connection, total: 1
2005-11-22 01:08:14.199 Unable to connect to database!
2005-11-22 01:08:14.200 Driver error was [1/1045]:
QMYSQL3: Unable to connect
Database error was:
Access denied for user 'mythtv'@'192.168.0.101' (using password: YES)
2005-11-22 01:08:14.201 Failed to init MythContext, exiting.[/b]
2) Lastly I followed this FAQ:
http://www.cs.rit.edu/~css8044/?q=mythinstall#
3) My mysql user table (whatever it's called looks like this:
+---------------+------------------+------------------+
| Host | User | Password |
+---------------+------------------+------------------+
| localhost | root | |
| localhost | debian-sys-maint | 1963f6ef4ff1e7ec |
| localhost | mythtv | 0476fc026afffe24 |
| 192.168.0.101 | mythtv | 0476fc026afffe24 |
| 192.168.0.101 | root | |
| 127.0.0.1 | root | |
+---------------+------------------+------------------+
status - mysql:
Connection id: 14
Current database: mysql
Current user: root@localhost
SSL: Not in use
Current pager: stdout
Using outfile: ''
Using delimiter: ;
Server version: 4.1.12-Debian_1ubuntu3-log
Protocol version: 10
Connection: Localhost via UNIX socket
Server characterset: latin1
Db characterset: latin1
Client characterset: latin1
Conn. characterset: latin1
UNIX socket: /var/run/mysqld/mysqld.sock
Uptime: 50 min 29 sec
and I have used the command similar to this to set the permissions:
mysql> grant all on mythconverg.* to root@"192.168.0.101" identified by "";
my mysql.txt file
root@mythbox:/etc/mythtv# more mysql.txt
DBHostName=192.168.0.101
DBUserName=mythtv
DBName=mythconverg
DBPassword=pgnbbydb
root@mythbox:/etc/mythtv#
Now, from all the reading I have done I cam across a little thread somewhere on the mysql forums that mentions a possible problem with user permissions to the /var/run/mysqld/mysqld.sock file however my attempts to change permissions for this file revealed my serious lack of knowledge of Linux.....
Well I can't think of what more I can say, other than PLEASE HELP ME!!!!
I am utterly frustrated! Oh and also I did try to remove Mythtv and Mysql but got the following error (and this happens also when trying to install/upgrade any package.....:
root@mythbox:/var/run/mysqld# apt-get remove mythtv
Reading package lists... Done
Building dependency tree... Done
Package mythtv is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Setting up mythtv-database (0.18.1-5) ...
Failed to connect to database: Access denied for user 'root'@'localhost' (using password: YES) at -e line 5, <> line 1.
Failed to create database (incorrect admin username/password?)
If you supplied incorrect information, try:
dpkg-reconfigure --force mythtv-database
dpkg: error processing mythtv-database (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
mythtv-database
E: Sub-process /usr/bin/dpkg returned an error code (1)
----------
Any help would be extremely well received!
Best Regards,
Lach/
one more cut/paste:
root@mythbox:/var/run/mysqld# netstat -ap | grep mysql
tcp 0 0 192.168.0.101:mysql *:* LISTEN 8636/mysqld
unix 2 [ ACC ] STREAM LISTENING 11674 8636/mysqld /var/run/mysqld/mysqld.sock