Hi all,
I posted a similar question a while ago but had no replies,so I am trying again.
My orginal question was with PHP code not allowing access to DB ,using pconnect (under the forum message heading "Access Denied")
I found that the problem was with the GRANT command when I had:
GRANT SELECT , INSERT , UPDATE , DELETE ON sassisc.* TO sassisc@localhost IDENTIFIED BY 'dodge3'
It came back with an error message:
SQL-query :
GRANT SELECT , INSERT , UPDATE , DELETE ON sassisc. * TO sassisc@localhostIDENTIFIEDBY 'dodge3'
MySQL said:
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'BY 'dodge3'' at line 1
For some reason, the words "localhost", "identified" and "by" were stuck to each other.
I removed the "identified by 'dodge3'" and it worked fine.
Does anyone know why this is the case? Is it OK to grant these privileges without a password required?
Thanks a lot.