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 - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -