why whe i use mysql -u root to connect to mysql, mysql does not ask my password??? any mistakes of my installation? please help me!
Did you define a password? By default the root account doesn't have a password.
but when i use php to connect mysql, i can use mysql_connect("localhost", "", ""), anything goes wrong? why i can use "" as user account to connect mysql server?
I rmeember seeing something about 'default users and default passwords in the php.ini file (4.0.6). hope that helps, Farzal