1 |
On Sun, 2006-01-08 at 13:58 -0800, Mark Knecht wrote: |
2 |
> > > What instructions? Are you referring to the GRANT line? I did that |
3 |
> > > yesterday. As for the mythbackend server IP, I set that two or three |
4 |
> > > days ago. It's in the database correctly: |
5 |
> > > |
6 |
> > > mysql> select * from settings WHERE value = 'BackendServerIP'; |
7 |
> > > +-----------------+-------------+----------+ |
8 |
> > > | value | data | hostname | |
9 |
> > > +-----------------+-------------+----------+ |
10 |
> > > | BackendServerIP | 192.168.1.3 | camille | |
11 |
> > > +-----------------+-------------+----------+ |
12 |
> > > 1 row in set (0.00 sec) |
13 |
> > > |
14 |
> > > What else do I need to do? |
15 |
> > |
16 |
> > Again, I'm not that good on this stuff but it's this basic command: |
17 |
> > |
18 |
> > The specific grant command is this one, or something like it: |
19 |
> > |
20 |
> > % mysql -u root -p |
21 |
> > mysql> GRANT ALL PRIVILEGES ON mythconverg.* TO 'mythtv'@'remotehost' |
22 |
> > IDENTIFIED BY 'password' |
23 |
> > |
24 |
> > Before you do that make sure you have camille's address in /etc/mysql/my.cnf: |
25 |
> > |
26 |
> > # keep secure by default! |
27 |
> > bind-address = 192.168.1.3 |
28 |
> > port = 3306 |
29 |
> > # this can make it even more secure: |
30 |
> > |
31 |
> > Make sure you have 192.168.1.3 in the mythsetup stuff for the server. |
32 |
> > |
33 |
> > At this point you should try logging into the mysql server from a |
34 |
> > terminal on both the server and your wife's machine. If you cannot log |
35 |
> > in then neither can Myth. From my terminal on a frontend only PC: |
36 |
> > (default password was mythtv on my system) |
37 |
> > |
38 |
> > dragonfly ~ # mysql -u mythtv -h 192.168.1.55 -p mythconverg |
39 |
> > Enter password: |
40 |
> > Reading table information for completion of table and column names |
41 |
> > You can turn off this feature to get a quicker startup with -A |
42 |
> > |
43 |
> > Welcome to the MySQL monitor. Commands end with ; or \g. |
44 |
> > Your MySQL connection id is 123 to server version: 4.0.25 |
45 |
> > |
46 |
> > Type 'help;' or '\h' for help. Type '\c' to clear the buffer. |
47 |
> > |
48 |
> > mysql> exit |
49 |
> > Bye |
50 |
> > dragonfly ~ # |
51 |
> > |
52 |
> > Hope this helps, |
53 |
> > Mark |
54 |
> > |
55 |
> |
56 |
> Note that you can also check that mysql is even listening on the |
57 |
> correct port by running netstat on the backend machine: |
58 |
> |
59 |
> dragonfly ~ # netstat -apn | grep mysql |
60 |
> tcp 0 0 192.168.1.55:3306 0.0.0.0:* |
61 |
> LISTEN 6493/mysqld |
62 |
> tcp 0 0 192.168.1.55:3306 192.168.1.14:1343 |
63 |
> ESTABLISHED 6493/mysqld |
64 |
> tcp 0 0 192.168.1.55:3306 192.168.1.14:1401 |
65 |
> ESTABLISHED 6493/mysqld |
66 |
> tcp 0 0 192.168.1.55:3306 192.168.1.14:1400 |
67 |
> ESTABLISHED 6493/mysqld |
68 |
> unix 2 [ ACC ] STREAM LISTENING 9281 6493/mysqld |
69 |
> /var/run/mysqld/mysqld.sock |
70 |
> unix 3 [ ] STREAM CONNECTED 106522 6493/mysqld |
71 |
> /var/run/mysqld/mysqld.sock |
72 |
> unix 3 [ ] STREAM CONNECTED 106520 6493/mysqld |
73 |
> /var/run/mysqld/mysqld.sock |
74 |
> unix 3 [ ] STREAM CONNECTED 104027 6493/mysqld |
75 |
> /var/run/mysqld/mysqld.sock |
76 |
> unix 3 [ ] STREAM CONNECTED 9913 6493/mysqld |
77 |
> /var/run/mysqld/mysqld.sock |
78 |
> unix 3 [ ] STREAM CONNECTED 9725 6493/mysqld |
79 |
> /var/run/mysqld/mysqld.sock |
80 |
> unix 3 [ ] STREAM CONNECTED 9652 6493/mysqld |
81 |
> /var/run/mysqld/mysqld.sock |
82 |
> unix 3 [ ] STREAM CONNECTED 9577 6493/mysqld |
83 |
> /var/run/mysqld/mysqld.sock |
84 |
> dragonfly ~ # |
85 |
> |
86 |
> Cheers, |
87 |
> Mark |
88 |
> |
89 |
|
90 |
All this looks right to me: |
91 |
|
92 |
camille mysql # netstat -apn | grep mysql |
93 |
tcp 0 0 192.168.1.3:3306 0.0.0.0:* |
94 |
LISTEN 2102/mysqld |
95 |
unix 2 [ ACC ] STREAM LISTENING 193048 |
96 |
2102/mysqld /var/run/mysqld/mysqld.sock |
97 |
unix 3 [ ] STREAM CONNECTED 193087 |
98 |
2102/mysqld /var/run/mysqld/mysqld.sock |
99 |
unix 3 [ ] STREAM CONNECTED 193085 |
100 |
2102/mysqld /var/run/mysqld/mysqld.sock |
101 |
|
102 |
|
103 |
-- |
104 |
gentoo-user@g.o mailing list |