DIGIT-ARC read-only archive · snapshot: July 23, 2026

One PHP MYSQL problem

5 posts · originally from https://geek.digit.in/community/threads/one-php-mysql-problem.11326/

D
demoninside Original post #1
Jun 14, 2005 at 4:31 PM
Hi Guys,

now here is the prob,
I am using WAMP 5 server which concludes php5 & MYSQL 4.1
now when i change to mysql directory & then to bin
but when i try to connect through "mysql -p root -p <enter> password"
then it's throwing error, that is
host "localhost" is not allowed to connect to this MYSQL server

and all my Database connections are not working
can some one please explain this in details.................
GNUrag
GNUrag #2
Jun 14, 2005 at 7:45 PM
What does the relevant entry in /etc/mysql/my.conf say?
Have you blocked anything there?
harmax
harmax #3
Jun 15, 2005 at 6:18 AM
try this

mysql -u root -p<password><enter>

yes no space b/w -p and password

about localhost : when try mysql-admin it does not allow u to connect to localhost but it insists on either using

localhost.localdomain

[or]

127.0.0.1


and by the way did u create proper users and permissions . the manual that comes along mysql tar archive clearly explains 'em

hope this helps u
D
Jun 15, 2005 at 4:01 PM
i just make it working,
exactly my system was corrupted, and mysqld.exe was not working so i reinstalled it and now it's working
hafees
hafees #5
Jun 21, 2005 at 12:26 AM
Ey ! harmAx man you copied my avatar!