1 |
It seems that you have problems with mysql's privilege table. |
2 |
Try these: |
3 |
|
4 |
mysqld --skip-grant-tables --user=root & (or try with --user=mysql) |
5 |
mysql_fix_privilege_tables |
6 |
pkill mysqld (kill all mysqld process until all of them killed) |
7 |
/etc/init.d/mysql_restart |
8 |
|
9 |
|
10 |
If still mysql cannot start l, please provide the related log lines again. |
11 |
Richard Torres wrote: |
12 |
> |
13 |
> This log doesn't change when I try to start mysql. |
14 |
> |
15 |
> # tail -f mysql.err |
16 |
> |
17 |
> 060411 14:23:42 mysqld started |
18 |
> |
19 |
> 060411 16:47:54 mysqld ended |
20 |
> |
21 |
> |
22 |
> |
23 |
> 060629 18:10:25 mysqld started |
24 |
> |
25 |
> 060703 16:58:17 mysqld ended |
26 |
> |
27 |
> |
28 |
> |
29 |
> 060806 08:30:54 mysqld started |
30 |
> |
31 |
> 060806 08:38:40 mysqld ended |
32 |
> |
33 |
> |
34 |
> |
35 |
> 061222 17:52:51 mysqld started |
36 |
> |
37 |
> |
38 |
> |
39 |
> |
40 |
> |
41 |
> # tail -f mysqld.err |
42 |
> |
43 |
> 070319 9:35:12 [Warning] './mysql/host' had no or invalid character |
44 |
> set, and default character set is multi-byte, so character column |
45 |
> sizes may have changed |
46 |
> |
47 |
> 070319 9:35:12 [Warning] './mysql/user' had no or invalid character |
48 |
> set, and default character set is multi-byte, so character column |
49 |
> sizes may have changed |
50 |
> |
51 |
> 070319 9:35:12 [Warning] './mysql/db' had no or invalid character |
52 |
> set, and default character set is multi-byte, so character column |
53 |
> sizes may have changed |
54 |
> |
55 |
> 070319 9:35:12 [ERROR] Fatal error: mysql.user table is damaged or in |
56 |
> unsupported 3.20 format. |
57 |
> |
58 |
> |
59 |
> |
60 |
> ------------------------------------------------------------------------ |
61 |
> |
62 |
> *From:* Levent Duymuş [mailto:levent@××××××××××.tr] |
63 |
> *Sent:* Saturday, March 17, 2007 3:11 PM |
64 |
> *To:* gentoo-user@l.g.o |
65 |
> *Subject:* Re: [gentoo-user] mysql start issues |
66 |
> |
67 |
> |
68 |
> |
69 |
> What related log files show about the error? (/var/log/mysql/*) |
70 |
> They should give some info about the source of the error. |
71 |
> Configuration error may exist in my.cnf . |
72 |
> Richard Torres wrote: |
73 |
> |
74 |
> Hello, |
75 |
> |
76 |
> I'm having a trouble starting mysql since I emerged the newer version. |
77 |
> 'mysqld.sock' doesn't exist and the logs aren't much help. Any help is |
78 |
> greatly appreciated. |
79 |
> |
80 |
> |
81 |
> |
82 |
> -Richard |
83 |
> |
84 |
> |
85 |
> |
86 |
> # mysql |
87 |
> |
88 |
> ERROR 2002 (HY000): Can't connect to local MySQL server through socket |
89 |
> '/var/run/mysqld/mysqld.sock' (2) |
90 |
> |
91 |
> |
92 |
> |
93 |
> # /etc/init.d/mysql start |
94 |
> |
95 |
> * Starting mysql... |
96 |
> |
97 |
> * Starting mysql (/etc/mysql/my.cnf) |
98 |
> |
99 |
> * MySQL NOT started (0) |
100 |
> |
101 |
> |
102 |
> |