Gentoo Archives: gentoo-user

From: Gregory Fontenele <gregoryfontenele@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] putting mysql databases from one system to another
Date: Wed, 06 Apr 2011 15:19:44
Message-Id: BANLkTikj75BGWDHYZkYXU8ZmUo990b=iMg@mail.gmail.com
In Reply to: Re: [gentoo-user] putting mysql databases from one system to another by Mark Shields
1 want to leave this list but I can not, can someone erase me from this list?
2
3 On Tue, Apr 5, 2011 at 23:08, Mark Shields <laebshade@×××××.com> wrote:
4
5 > On Tue, Apr 5, 2011 at 2:37 PM, <covici@××××××××××.com> wrote:
6 >
7 >>
8 >> Josh <korthrun@×××××.com> wrote:
9 >>
10 >> > On Tue, Apr 5, 2011 at 11:59 AM, <covici@××××××××××.com> wrote:
11 >> >
12 >> > > I am trying to copy my databases from one system to another and since
13 >> > > one is 32-bit and the other is 64-bit, I was told that I could not
14 >> copy
15 >> > > the binary databases directly, but I had to do mysqldump and then
16 >> > > put that source file into the new system. What I am getting is that
17 >> the
18 >> > > passwords seem not to have gotten through -- the user names seem to be
19 >> > > there, but I cannot login with the passwords the user had in the old
20 >> > > system.
21 >> > >
22 >> > > Can anyone tell me why this is so and what I can do to fix?
23 >> > >
24 >> > > Thanks in advance for any ideas.
25 >> > >
26 >> > > --
27 >> > > Your life is like a penny. You're going to lose it. The question is:
28 >> > > How do
29 >> > > you spend it?
30 >> > >
31 >> > > John Covici
32 >> > > covici@××××××××××.com
33 >> > >
34 >> > > Which two MySQL versions are in use here?
35 >> > Older versions of mysql used a different format for the passwords
36 >> and
37 >> > there is a flag you need to pass to mysqld to get it to use old
38 >> passwords (I
39 >> > believe)
40 >> >
41 >> > What is the connection string you are using? Specifically are you
42 >> connecting
43 >> > via the mysql socket, using a hostname etc?
44 >> > Say the old server was called "foo.stuff.net" and the connection
45 >> was
46 >> > made via the external interface e.g. "mysql -h foo.stuff.net", the user
47 >> may
48 >> > have been setup to allow connections from "foo.stuff.net" only, as
49 >> where now
50 >> > you may be connectin from "bar.stuff.net" or "localhost".
51 >> >
52 >> > SELECT user,host FROM mysql.user ORDER BY user;
53 >> >
54 >> > May shed some light on the situation for you.
55 >> It should be localhost in all cases. The mysql versions are 5.1.53 in
56 >> both cases. I am trying to login with the mysql client and I can do it
57 >> on the old box, but not the new one --same host name, etc.
58 >>
59 >> Now I can login with the root password on the new box, maybe that is
60 >> stored somewher else.
61 >>
62 >>
63 >> --
64 >> Your life is like a penny. You're going to lose it. The question is:
65 >> How do
66 >> you spend it?
67 >>
68 >> John Covici
69 >> covici@××××××××××.com
70 >>
71 >> I hate to ask the obvious, but are you passing "-u <username> and -p" to
72 > mysqldump? the "-p" by itself will prompt for a password, which you will
73 > then enter. The format should be "mysqldump databasename -u username -p >
74 > file", then enter the password at the "Password:" prompt.
75
76
77
78
79 --
80 Atenciosamente,
81 Gregory Fontenele