You are not logged in.

#1 2007-03-08 08:35:14

chancho
Member
From: Hong Kong
Registered: 2006-07-14
Posts: 114

mysql problem

i have set up an account "chancho" with host = "%" and password = "123".
when i type
>mysql
i can login without password, status show 'chancho@localhost', however
>mysql -u chancho -p
>password 123
then i got an error of Access deny for user 'chancho@localhost' (Using password : YES).
it also happen when i try to use phpmyadmin to login.

any idea ??

Offline

#2 2007-03-08 09:16:07

noriko
Member
From: In My Mind
Registered: 2006-06-09
Posts: 535
Website

Re: mysql problem

i may be wrong on this, but if you are able to login without  a password, it seems to me that there really is no password for that account.
only thing i can advice is to create another account and see if it works. or delete that account and create it again.


The.Revolution.Is.Coming - - To fight, To hunger, To Resist!

Offline

#3 2007-03-08 09:24:22

chancho
Member
From: Hong Kong
Registered: 2006-07-14
Posts: 114

Re: mysql problem

i create one account "dummy" with password "dummy" and host "localhost"
this time
>mysql -u dummy -p
>password dummy
and i can login.
so, the problem seems to be related to "localhost".

Offline

#4 2007-03-09 01:31:26

chancho
Member
From: Hong Kong
Registered: 2006-07-14
Posts: 114

Re: mysql problem

i think i have found the problem.
when i only create one account with host=%, my login will only fit "chancho@localhost" which require not password.
therefore, i create another account with same name and host="localhost" with password. this time my login ok.

solution :
create a pair of accounts with same login name, different host (%, localhost) and same password.

Offline

#5 2007-03-10 02:54:52

chancho
Member
From: Hong Kong
Registered: 2006-07-14
Posts: 114

Re: mysql problem

i found that mysql is not auto enable in the php package

solution :
uncomment the follow line in /etc/php.ini
extension=mysql.so

Offline

Board footer

Powered by FluxBB