Can't connect to MySQL server on 'localhost' 你的本地 MySQL 服务还没有运行咧!!:)

解决方案 »

  1.   

    add an... or die(mysql_error()) to the $resultm = mysql_query($sqlm);
    statement and you'll have a lot more info for yourself,  and the list if
    you still need assistance.
      

  2.   

    to :: shuixin13(犬犬(心帆)) 
    MySQL 服务已经运行咧!!
      

  3.   

    Can't connect to MySQL server on 'localhost'是本地的 MySQL 服务器,你的 MySQL 服务程序运行在什么地方的??你在 PHP 所在机器上运行c:\mysql\bin>mysql -h localhost -u root 
    试试呢