一般来说初始root的密码是空的,如果你设置了密码那么请输入你的密码
登录
c:\mysql\bin>mysql -u root -p [Enter]
Enter password: ****** [Enter]Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2 to server version: 4.1.6-gamma-ntType 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql>
登录
c:\mysql\bin>mysql -u root -p [Enter]
Enter password: ****** [Enter]Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2 to server version: 4.1.6-gamma-ntType 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql>
看到别人都有说什么C盘有个my.ini文件,但我没有,在系统盘(非C盘)的program files里面好像也没有mysql目录,更不要说my.ini文件了, 在‘服务’中看到有一个mysql服务,但路径根本就不对,唉,用个mysql就这么难啊!! 看来还是先用MSSQL练java算了,反正以后也要转oracle的