Hi, i am a beginner in PHP and mySQL.
Whenever I try to connect my php and mysql
database, i get this error.:
MySQL error : access denied for myuser@localhos t (Using password:yes)
I have created a database called mydatabase at the SQLmonitor,
mySQL> create database mydatabase;
then i try to grant the access to mydatabase by
mySQL>GRANT usage on mydatabase.* to myuser@localhos t;
mySQL>GRANT ALL PRIVILEGES on mydatabase.* to myuser@localhos t;
mySQL>exit
mySQL>SET PASSWORD FOR myuser = Password('hello world');
I modified the php file with the database username as myuser, password as
helloworld,
host as localhost, database name as mydatabase.
Please advice as to how i can avoid having problems of access denied above.
thank you.
zhen
Whenever I try to connect my php and mysql
database, i get this error.:
MySQL error : access denied for myuser@localhos t (Using password:yes)
I have created a database called mydatabase at the SQLmonitor,
mySQL> create database mydatabase;
then i try to grant the access to mydatabase by
mySQL>GRANT usage on mydatabase.* to myuser@localhos t;
mySQL>GRANT ALL PRIVILEGES on mydatabase.* to myuser@localhos t;
mySQL>exit
mySQL>SET PASSWORD FOR myuser = Password('hello world');
I modified the php file with the database username as myuser, password as
helloworld,
host as localhost, database name as mydatabase.
Please advice as to how i can avoid having problems of access denied above.
thank you.
zhen
Comment