Re: Mysql autentication problem
| From: | Roberto Tavares | Date: | Sat, 03 Mar 2007 12:17:19 +0000 |
| Subject: | Re: Mysql autentication problem | ||
| References: | 1 2 3 4 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-43170@lists.php.net to get a copy of this message | ||
Yep, there is a hash... and the hash is valid - I can connect using the shell
with this password...
On Fri, 02 Mar 2007 12:17:33 -0800, Micah Stevens wrote
> Strange. If you look at the users table, is there a password hash in
> the password field?
>
> Roberto F Tavares Neto wrote:
> > Micah:
> >
> > I did create the database. Then, I use the:
> >
> > GRANT ALL PRIVILEGES ON db.* TO user@localhost IDENTIFIED BY 'password'
> >
> > to do the 2 and 3 steps.
> >
> > FLUSH PRIVILEGES
> >
> > to do the step 4.
> >
> > But the step 5 really does not work... only on the shell or when I
> > remove the password from the user...
> >
> > Roberto
> >
> > Micah Stevens escreveu:
> >> Did you give the user permissions to use the database in question?
> >>
> >> Here's my sequence of actions:
> >>
> >> .
> >> 1) Create DB if it doesn't exist
> >> 2) Create the user w/password
> >> 3) Give the user permission to use the database.
> >> 4) Flush privileges to update the server.
> >> 5) login and enjoy.
> >>
> >> -Micah
> >>
> >> Roberto F Tavares Neto wrote:
> >>> Hello,
> >>>
> >>> I'm trying to do a very simple thing: create a database and a user
> >>> to use it.
> >>>
> >>> So, initially, I use the web interface phpmyadmin. Logged as root, I
> >>> created the database, and the user with some password.
> >>>
> >>> But, I could not login using phpmyadmin. Either any php-based system
> >>> could connect to the BD.
> >>>
> >>> So, I make sure that I got the "user@localhost" and "user@%"
> >>> created, with permissions and same password. Nothing.
> >>>
> >>> But I *can* log on mysql shell.
> >>>
> >>> One more info: when the user is set without password, it works fine
> >>> on PHP.
> >>>
> >>>
> >>> Does anyone can give me a clue of what is happening?
> >>>
> >>> Thanks!
> >>>
> >>> Roberto
> >>>
> >>
> >
> >
--
Roberto F Tavares Neto
Prof. Assistente - Departamento de Engenharia de Produção
Universidade Federal de São Carlos - UFSCAR