如果mysql数据库在你自己机器上,在命令提示符下,cd 到mysql安装目录,再cd bin,c:\mysql\bin>mysql你会看到Welcome......
输入下面的授权命令:
grant all on ityy.* to dxm@localhost identified by "dxm";然后exit退出同时你的程序
$connect=mysql_connect("406-weisi","dxm","");
改为
$connect=mysql_connect("localhost","dxm","dxm");