1 |
Paul Stear posted on Tue, 04 Jan 2011 13:23:27 +0000 as excerpted: |
2 |
|
3 |
> Hi all, |
4 |
> I get the following errors when starting kmail / akonadi / mysql :- |
5 |
> |
6 |
> 110104 13:15:30 InnoDB: Started; log sequence number 0 1429535 |
7 |
> 110104 13:15:30 [Warning] Can't open and lock time zone table: Table |
8 |
> 'mysql.time_zone_leap_second' doesn't exist trying to live without them |
9 |
> 110104 13:15:30 [ERROR] Can't open and lock privilege tables: Table |
10 |
> 'mysql.servers' doesn't exist |
11 |
> 110104 13:15:30 [Note] /usr/sbin/mysqld: ready for connections. |
12 |
> |
13 |
> How do I obtain/create time zone table and privlege tables? |
14 |
> |
15 |
> Thanks for any help |
16 |
|
17 |
One way to cure the issue is to switch to an akonadi backend other than |
18 |
MySQL. |
19 |
|
20 |
If you take a look at the ebuilds for akonadi-server-1.3.1 and 1.4.1, |
21 |
you'll note that Gentoo switched the backend preference order from mysql |
22 |
preferred to sqlite preferred (it's based on the sqlite/postgres/mysql USE |
23 |
flags, but the test favors mysql in 1.3.1 if that flag is on, sqlite in |
24 |
1.4.1 if that flag is on). The reason for that is that the akonadi sqlite |
25 |
driver took some time to mature, particularly the multi-threading aspects, |
26 |
and with 1.3.1, the mysql driver was the best available. By 1.4.1 |
27 |
however, the sqlite driver had matured and is now preferred as it's a |
28 |
lighter install with less technical issues like the ones above, especially |
29 |
for users not running mysql on their systems for other reasons. Do note |
30 |
the warning in the 1.4.1 ebuild, however, about switching the driver in |
31 |
your home dir config, ~/.config/akonadi/akonadiserverrc , as well, since |
32 |
portage doesn't touch users' home dirs, only system dirs, and for existing |
33 |
users the default will have been set in the user dir when akonadi was run. |
34 |
|
35 |
Of course, akonadi-server-1.4.1 is ~arch, and you may want sqlite and qt- |
36 |
sql (which means all qt4 packages installed, since they're version-locked |
37 |
together), at least, as ~arch as well. FWIW, I'm running ~arch here, plus |
38 |
the kde overlay since I use its sets (with portage-2.2.0_alphas) and often |
39 |
install kde updates before they make it to the tree. I'm thus running |
40 |
akonadi-server-1.4.1 and kde 4.5.4 (4.5.5 should be out about now but I've |
41 |
not synced this week yet), except that the kdepim packages including kmail |
42 |
are still 4.4.8, since kdepim 4.5 never came out of beta, upstream. IIRC |
43 |
I upgraded to the sqlite backend drivers about the same time 4.5 came out, |
44 |
and I've been MUCH happier with them than with the mysql backend, as mysql |
45 |
may be great indeed as a high power database, but was apparently never |
46 |
really designed to be run by ordinary users who don't particularly care |
47 |
about its config, they just want it to work, thus, not designed for the |
48 |
usage to which kde had been putting it. |
49 |
|
50 |
If you prefer to stay with the mysql backend, perhaps because you don't |
51 |
want to run ~arch... Google is your friend. =:^) Seriously, googling the |
52 |
warning and error you posted gave me good results. Here's an article on |
53 |
the timezone one I think I remember reading back when it first came out: |
54 |
|
55 |
http://lxer.com/module/newswire/view/144863/ |
56 |
|
57 |
... And this thread on the arch forums looks useful for the other one (and |
58 |
maybe both): |
59 |
|
60 |
https://bbs.archlinux.org/viewtopic.php?id=78358 |
61 |
|
62 |
-- |
63 |
Duncan - List replies preferred. No HTML msgs. |
64 |
"Every nonfree program has a lord, a master -- |
65 |
and if you use the program, he is your master." Richard Stallman |