1 |
Hi... |
2 |
|
3 |
last month i had the same problem I was see a lot of posts in forums, this |
4 |
solution works for me: create a sym link yo mysqd.sock, it's something like |
5 |
this |
6 |
|
7 |
ln -vs /tmp/mysql.sock /var/run/mysql/mysql.sock |
8 |
|
9 |
|
10 |
for mysql 5.0.26-r2, that's work for me. |
11 |
|
12 |
It's important see the my.cnf at the line where mysql put the mysql.sock |
13 |
in my case : |
14 |
|
15 |
[client] |
16 |
password = ********************** |
17 |
port = 3306 |
18 |
socket = /var/run/mysqld/mysqld.sock |
19 |
|
20 |
$ls -l /tmp/mysql.sock |
21 |
/tmp/mysql.sock -> /var/run/mysqld/mysqld.sock |
22 |
|
23 |
I hope that's work for you too. |
24 |
|
25 |
NOTE : Please excuse me for my english it's no so good, but I need to help |
26 |
everyone that i can...that make a better world.. Peace..:D |
27 |
|
28 |
On 3/19/07, Richard Torres <rtorres827@×××××.com> wrote: |
29 |
> |
30 |
> OK. I Unmerged and re-emerged mysql. |
31 |
> |
32 |
> # /etc/init.d/mysql stop |
33 |
> # emerge -C mysql |
34 |
> # tar cjpvf ~/mysql.$(date +%F"T"%H-%M).tar.bz2 /etc/mysql/my.cnf |
35 |
> /var/lib/mysql/ |
36 |
> # ls -l ~/mysql.* |
37 |
> # rm -rf /var/lib/mysql/ /var/log/mysql |
38 |
> ======================================== |
39 |
> # emerge -av dev-db/mysql |
40 |
> |
41 |
> It completed installing/compiling then.. |
42 |
> |
43 |
> # emerge --config =dev-db/mysql-5.0.32 |
44 |
> |
45 |
> Configuring pkg... |
46 |
> |
47 |
> * MySQL DATADIR is /var/lib/mysql |
48 |
> * Previous datadir found, it's YOUR job to change |
49 |
> * ownership and take care of it |
50 |
> * Creating the mysql database and setting proper |
51 |
> * permissions on it ... |
52 |
> * Insert a password for the mysql 'root' user |
53 |
> * Avoid ["'\_%] characters in the password |
54 |
> > |
55 |
> * Retype the password |
56 |
> > |
57 |
> |
58 |
> !!! ERROR: dev-db/mysql-5.0.32 failed. |
59 |
> Call stack: |
60 |
> ebuild.sh, line 1527: Called pkg_config |
61 |
> ebuild.sh, line 1255: Called mysql_pkg_config |
62 |
> mysql.eclass, line 805: Called die |
63 |
> |
64 |
> !!! MySQL databases not installed |
65 |
> !!! If you need support, post the topmost build error, and the call stack |
66 |
> if |
67 |
> relevant. |
68 |
> |
69 |
> # /etc/init.d/mysql start |
70 |
> * Starting mysql... |
71 |
> * Starting mysql (/etc/mysql/my.cnf) |
72 |
> * MySQL NOT started (0) |
73 |
> |
74 |
> Any ideas? |
75 |
> |
76 |
> -----Original Message----- |
77 |
> From: Dan Farrell [mailto:dan@×××××××××.cx] |
78 |
> Sent: Sunday, March 18, 2007 9:08 AM |
79 |
> To: gentoo-user@l.g.o |
80 |
> Subject: Re: [gentoo-user] mysql start issues |
81 |
> |
82 |
> On Sat, 17 Mar 2007 13:11:54 -0500 |
83 |
> "Richard Torres" <rtorres827@×××××.com> wrote: |
84 |
> |
85 |
> > Hello, |
86 |
> > |
87 |
> > I'm having a trouble starting mysql since I emerged the newer version. |
88 |
> > 'mysqld.sock' doesn't exist and the logs aren't much help. Any help is |
89 |
> > greatly appreciated. |
90 |
> > |
91 |
> > |
92 |
> > |
93 |
> > -Richard |
94 |
> > |
95 |
> > |
96 |
> > |
97 |
> > # mysql |
98 |
> > |
99 |
> > ERROR 2002 (HY000): Can't connect to local MySQL server through socket |
100 |
> > '/var/run/mysqld/mysqld.sock' (2) |
101 |
> > |
102 |
> > |
103 |
> > |
104 |
> > # /etc/init.d/mysql start |
105 |
> > |
106 |
> > * Starting mysql... |
107 |
> > |
108 |
> > * Starting mysql (/etc/mysql/my.cnf) |
109 |
> > |
110 |
> > * MySQL NOT started (0) |
111 |
> > |
112 |
> I had the same problem and my solution was found at : |
113 |
> http://www.gentoo.org/doc/en/mysql-upgrading.xml |
114 |
> .....but I never did get my password-encoded columns back. |
115 |
> |
116 |
> good luck! |
117 |
> -- |
118 |
> gentoo-user@g.o mailing list |
119 |
> |
120 |
> -- |
121 |
> gentoo-user@g.o mailing list |
122 |
> |
123 |
> |
124 |
|
125 |
|
126 |
-- |
127 |
['Cause without love I won't survive, I love you]. I |
128 |
|
129 |
Francisco Rivas |
130 |
2.6.19-gentoo-r5 x86 |
131 |
udev v087 gnome 2.16.2 |
132 |
xorg-x11-7.1 hotplug v20040923-r2 |
133 |
e-mail : fjrivas@××××××.ve |
134 |
msn : taken2k4@×××××.com |
135 |
|
136 |
-----BEGIN GEEK CODE BLOCK----- |
137 |
Version: 3.1 |
138 |
GCS/E/IT/MU d-(+)@ s++: a-- C++++>++++ ULSC*()>+++ P+(++)>+++ L++(+++)>++++ |
139 |
!E--- W+>++ !N* !o-(--)>-- K--? !w--- !O !M !V PS@ !PE@ Y> PGP t 5 X R+>+ |
140 |
tv- b DI D G e++>+++ h-> r++>+++ y- |
141 |
------END GEEK CODE BLOCK------ |