首先 运行——》DOS下;
然后开始输入登录命令:
1.mysql -u 用户名 -p
eg:mysql -u root -p
2.回车之后会输出:Enter password:输入密码
eg:Enter password:123
路径将变为:mysql>,说明你已登录成功。
我的登录情况:
C:/Documents and Settings/FENGJIAN>mysql -u root -p
Enter password: ***
Welcome to the MySQL monitor. Commands end with ; or /g.
Your MySQL connection id is 16
Server version: 5.1.37-community MySQL Community Server (GPL)
Type 'help;' or '/h' for help. Type '/c' to clear the current input statement.
mysql>