c:\mysql\bin>mysql如果可以进入mysql,就说明服务已启动。如果没有启动,则: 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...
还是Warning: MySQL Connection Failed: Unknown MySQL Server Host 'localhost' (2) in C:\phpwork\creat.php on line 10
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...