[mythtv-users] Problems with new setup???

Per Jørgensen myth at pbj-design.dk
Thu Oct 16 09:13:16 UTC 2008


Hey guys.

I'm reinstalling my whole setup after getting some new Tunercards - but 
running into a problem.
I have a seperate Backend server running in my Garage and that one is 
the problem. beyonfd that I got 3 frontends in the house
After installing mythtv ( Running ArchLinux) I'll inserting the mc.sql 
to the DB - looks like this:

# cat /usr/share/mythtv/mc.sql
CREATE DATABASE if not exists mythconverg;
GRANT ALL ON mythconverg.* TO mythtv@'%' IDENTIFIED BY "mythtv";
FLUSH PRIVILEGES;
GRANT CREATE TEMPORARY TABLES ON mythconverg.* TO mythtv@'%' IDENTIFIED 
BY "mythtv";
FLUSH PRIVILEGES;
ALTER DATABASE mythconverg DEFAULT CHARACTER SET latin1;

(In my believe should this allow each host to connect to the DB ??? )

Gives me this in DB table:
+------+-------------+--------+-------------+-------------+-------------+-------------+-------------+-----------+------------+-----------------+------------+------------+-----------------------+------------------+------------------+----------------+---------------------+--------------------+--------------+
| Host | Db          | User   | Select_priv | Insert_priv | Update_priv 
| Delete_priv | Create_priv | Drop_priv | Grant_priv | References_priv | 
Index_priv | Alter_priv | Create_tmp_table_priv | Lock_tables_priv | 
Create_view_priv | Show_view_priv | Create_routine_priv | 
Alter_routine_priv | Execute_priv |
+------+-------------+--------+-------------+-------------+-------------+-------------+-------------+-----------+------------+-----------------+------------+------------+-----------------------+------------------+------------------+----------------+---------------------+--------------------+--------------+
| %    | test        |        | Y           | Y           | Y           
| Y           | Y           | Y         | N          | Y               | 
Y          | Y          | Y                     | Y                | 
Y                | Y              | Y                   | 
N                  | N            |
| %    | test\_%     |        | Y           | Y           | Y           
| Y           | Y           | Y         | N          | Y               | 
Y          | Y          | Y                     | Y                | 
Y                | Y              | Y                   | 
N                  | N            |
| %    | mythconverg | mythtv | Y           | Y           | Y           
| Y           | Y           | Y         | N          | Y               | 
Y          | Y          | Y                     | Y                | 
Y                | Y              | Y                   | 
Y                  | Y            |
+------+-------------+--------+-------------+-------------+-------------+-------------+-------------+-----------+------------+-----------------+------------+------------+-----------------------+------------------+------------------+----------------+---------------------+--------------------+--------------+

And this in users:
+-----------+--------+-------------------------------------------+-------------+-------------+-------------+-------------+-------------+-----------+-------------+---------------+--------------+-----------+------------+-----------------+------------+------------+--------------+------------+-----------------------+------------------+--------------+-----------------+------------------+------------------+----------------+---------------------+--------------------+------------------+----------+------------+-------------+--------------+---------------+-------------+-----------------+----------------------+
| Host      | User   | Password                                  | 
Select_priv | Insert_priv | Update_priv | Delete_priv | Create_priv | 
Drop_priv | Reload_priv | Shutdown_priv | Process_priv | File_priv | 
Grant_priv | References_priv | Index_priv | Alter_priv | Show_db_priv | 
Super_priv | Create_tmp_table_priv | Lock_tables_priv | Execute_priv | 
Repl_slave_priv | Repl_client_priv | Create_view_priv | Show_view_priv | 
Create_routine_priv | Alter_routine_priv | Create_user_priv | ssl_type | 
ssl_cipher | x509_issuer | x509_subject | max_questions | max_updates | 
max_connections | max_user_connections |
+-----------+--------+-------------------------------------------+-------------+-------------+-------------+-------------+-------------+-----------+-------------+---------------+--------------+-----------+------------+-----------------+------------+------------+--------------+------------+-----------------------+------------------+--------------+-----------------+------------------+------------------+----------------+---------------------+--------------------+------------------+----------+------------+-------------+--------------+---------------+-------------+-----------------+----------------------+
| localhost | root   | *021E1914F51F2699FC3B2A9308E56EDA95EC8DA0 | 
Y           | Y           | Y           | Y           | Y           | 
Y         | Y           | Y             | Y            | Y         | 
Y          | Y               | Y          | Y          | Y            | 
Y          | Y                     | Y                | Y            | 
Y               | Y                | Y                | Y              | 
Y                   | Y                  | Y                |          
|            |             |              |             0 |           0 
|               0 |                    0 |
| core      | root   |                                           | 
Y           | Y           | Y           | Y           | Y           | 
Y         | Y           | Y             | Y            | Y         | 
Y          | Y               | Y          | Y          | Y            | 
Y          | Y                     | Y                | Y            | 
Y               | Y                | Y                | Y              | 
Y                   | Y                  | Y                |          
|            |             |              |             0 |           0 
|               0 |                    0 |
| 127.0.0.1 | root   |                                           | 
Y           | Y           | Y           | Y           | Y           | 
Y         | Y           | Y             | Y            | Y         | 
Y          | Y               | Y          | Y          | Y            | 
Y          | Y                     | Y                | Y            | 
Y               | Y                | Y                | Y              | 
Y                   | Y                  | Y                |          
|            |             |              |             0 |           0 
|               0 |                    0 |
| localhost |        |                                           | 
N           | N           | N           | N           | N           | 
N         | N           | N             | N            | N         | 
N          | N               | N          | N          | N            | 
N          | N                     | N                | N            | 
N               | N                | N                | N              | 
N                   | N                  | N                |          
|            |             |              |             0 |           0 
|               0 |                    0 |
| core      |        |                                           | 
N           | N           | N           | N           | N           | 
N         | N           | N             | N            | N         | 
N          | N               | N          | N          | N            | 
N          | N                     | N                | N            | 
N               | N                | N                | N              | 
N                   | N                  | N                |          
|            |             |              |             0 |           0 
|               0 |                    0 |
| %         | mythtv | *CC8F35F587CA5A556B4132C2407E556D92172FFC | 
N           | N           | N           | N           | N           | 
N         | N           | N             | N            | N         | 
N          | N               | N          | N          | N            | 
N          | N                     | N                | N            | 
N               | N                | N                | N              | 
N                   | N                  | N                |          
|            |             |              |             0 |           0 
|               0 |                    0 |
+-----------+--------+-------------------------------------------+-------------+-------------+-------------+-------------+-------------+-----------+-------------+---------------+--------------+-----------+------------+-----------------+------------+------------+--------------+------------+-----------------------+------------------+--------------+-----------------+------------------+------------------+----------------+---------------------+--------------------+------------------+----------+------------+-------------+--------------+---------------+-------------+-----------------+----------------------+

Afterwards I'm testing the DB - with this command:
# mysql -p -u mythtv
Enter password:
ERROR 1045 (28000): Access denied for user 'mythtv'@'localhost' (using 
password: YES)


But each time I run mythtv-setup - It says It cannot connect to Mysqldb. 
I check that skip-networking in my.cnf is outcomment!
A netstat -tang shows:
$ netstat -tang
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         
State     
tcp        0      0 0.0.0.0:2049            0.0.0.0:*               
LISTEN     
tcp        0      0 0.0.0.0:33320           0.0.0.0:*               
LISTEN     
tcp        0      0 0.0.0.0:3306            0.0.0.0:*               
LISTEN     
tcp        0      0 0.0.0.0:35501           0.0.0.0:*               
LISTEN     
tcp        0      0 0.0.0.0:111             0.0.0.0:*               
LISTEN     
tcp        0      0 0.0.0.0:80              0.0.0.0:*               
LISTEN     
tcp        0      0 0.0.0.0:6549            0.0.0.0:*               
LISTEN     
tcp        0      0 0.0.0.0:22              0.0.0.0:*               
LISTEN     
tcp        0      0 0.0.0.0:54934           0.0.0.0:*               
LISTEN     
tcp        0      0 172.16.20.10:22         87.50.193.217:49973     
ESTABLISHED
IPv6/IPv4 Group Memberships
Interface       RefCnt Group
--------------- ------ ---------------------
lo              1      224.0.0.1
eth0            1      239.255.255.250
eth0            1      224.0.0.1
lo              1      ff02::1
eth0            1      ff02::1:ff49:e9a3
eth0            1      ff02::1
[mythtv at core root]$

So my Database listens also to the network - so it should be something 
inside the DB - that does this problem???
Then why cannot I not connect to the database ???

Where is the problem?? ?I cannot see it ?
A tail in the Mythbackend.log gives constantly this error:
Cannot login to database?

Would you like to configure the database connection now? [yes] 
[console is not interactive, using default 'yes']
Database host name: [localhost] 
[console is not interactive, using default 'localhost']
Should I test connectivity to this host using the ping command? [yes] 
[console is not interactive, using default 'yes']
Database non-default port: [0] 
[console is not interactive, using default '0']
Database name: [mythconverg] 
[console is not interactive, using default 'mythconverg']
Database user name: [mythtv] 
[console is not interactive, using default 'mythtv']
Database password: [mythtv] 
[console is not interactive, using default 'mythtv']
Unique identifier for this machine (if empty, the local host name will 
be used): [my-unique-identifier-goes-here] 
[console is not interactive, using default 'my-unique-identifier-goes-here']
Would you like to use Wake-On-LAN to retry database connections? [no] 
[console is not interactive, using default 'no']
2008-10-16 11:12:37.809 Unable to connect to database!
2008-10-16 11:12:37.815 Driver error was [1/1045]:
QMYSQL3: Unable to connect
Database error was:
Access denied for user 'mythtv'@'localhost' (using password: YES)




More information about the mythtv-users mailing list