C:\mysql\bin>mysqld-nt remove
Service successfully removed.C:\mysql\bin>mysqld-nt -install
Service successfully installed.C:\mysql\bin>net start mysql
MySQL服务已经启动成功。C:\mysql\bin>mysql
Welcome to the MySQL monitor...
Service successfully removed.C:\mysql\bin>mysqld-nt -install
Service successfully installed.C:\mysql\bin>net start mysql
MySQL服务已经启动成功。C:\mysql\bin>mysql
Welcome to the MySQL monitor...
我开始的时候是卸载重装过程中,没有删除掉C盘中的my文件(后缀为.ini),
后来还是不能运行是因为我默认安装,改了安装目录,好郁闷啊!
还是谢谢楼上的两位朋友!