Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Dec 2004 19:47:07 -0500
From:      John DeStefano <john.destefano@gmail.com>
To:        Peter Risdon <peter@circlesquared.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: mysql connect problems
Message-ID:  <f2160e0d041210164729601e79@mail.gmail.com>
In-Reply-To: <41BA1877.60203@circlesquared.com>
References:  <f2160e0d041209141883a59af@mail.gmail.com> <20041209230429.M81198@wcborstel.nl> <f2160e0d04121006545c8e3dfb@mail.gmail.com> <20041210145930.M75908@wcborstel.nl> <f2160e0d04121008077e959232@mail.gmail.com> <20041210165849.M9090@wcborstel.nl> <f2160e0d04121011134308085a@mail.gmail.com> <20041210210712.M62103@wcborstel.nl> <41BA1877.60203@circlesquared.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 10 Dec 2004 21:43:19 +0000, Peter Risdon
<peter@circlesquared.com> wrote:
> > AFAIK you must type 'wikiuser@localhost' (including the quotes). If that
> > doesn't work, then I don't know it either. Perhaps somebody else on the list
> > has an idea?
> 
> I have found it's best to connect to the database you want to grant the
> privileges on before issuing the GRANT command. This doesn't seem to be
> the way it's documented, but it works for me. You might also consider
> using passwords...
> 
> mysql>\u wikidb
> mysql>GRANT ALL on wikidb.* to wikiuser@localhost IDENTIFIED BY 'password';
> mysql>\u mtdb
> mysql>GRANT ALL on mtdb.* to mtuser@localhost IDENTIFIED BY 'password';
> 
Thank you both.  Certainly makes sense, but it didn't work (If it
_had_ worked, I'd be suspicious as to why I needed to do this for
MediaWiki, and not for Mobile Type (which works now).).

When I specify a value for "MySQL server" and for "DB root password"
on the MediaWiki 1.3.8 installation page, I get "Couldn't connect to
database" with a script note "MySQL error 1250: Client does not
support authentication protocol requested by server; consider
upgrading MySQL client".

When I omit the root password value, so it can connect with the user
wikiuser, it says "Check name/pass or enter root password below", with
notes "# MySQL error 1045: Access denied for user: 'root'@'localhost'
(Using password: NO)" and "Trying regular user... need password."



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f2160e0d041210164729601e79>