php - Not able to access mysql using script -


i getting following error when trying access mysql table :

access denied user 'root'@'localhost' (using password: no) 

but, can login root when using mysql in command line.

that normal behaviour. set root password database on can't access without password. why reports:

access denied user 'root@localhost' (using password: no ) 

obviously when give password -p switch succeed.


Comments

Popular posts from this blog

javascript - ScrollTo Effect (href to div) -

javascript - ng-class not responding to change in model in Angular? -

javascript - document.registerElement extending HTMLInputElement prototype while using custom tag name to avoid implicit browser style -