I am super super new to mysql. I just downloaded 5.0 on to my windows machine today. I don't know much about how mySQL knows who is using it from where ip address etc. I dont know anything about networking. Here is some behaviour I'm trying to decipher.
1. I go to the mysql command line prompt and it asks me for password. I type my password for root@localhost and everything is cool, but what if I don't want to login as root@localhost? How do I get prompted for user?
2. I go to the cmd prompt and type "mysql -h localhost -u root@localhost -p mypassword", this takes me to the password prompt I get in 1 above, but I type in my root@localhost password and the cmd prompt beeps and then shuts down. What is going on here?
1. I go to the mysql command line prompt and it asks me for password. I type my password for root@localhost and everything is cool, but what if I don't want to login as root@localhost? How do I get prompted for user?
2. I go to the cmd prompt and type "mysql -h localhost -u root@localhost -p mypassword", this takes me to the password prompt I get in 1 above, but I type in my root@localhost password and the cmd prompt beeps and then shuts down. What is going on here?