php code cant read mysql database

view full story

http://serverfault.com – i am trying to use PHPmyadmin and have installed WAMP server, along with mySQL and have created some tables and databases using mysql command line... what happens is they do not show on phpmyadmin and neither can my php code access those database (the php code runs on the wamp). i tried setting password to root: and root:localhost same password as that as for mysql root. What is more, when i create a database using phpmyadmin i can access that database using the php i wrote. i am missing some thing? why cant my php code access the databases i created using mysql command line (HowTos)