(接上)还有,当我改为CGI方式打开显示如下错误:恳请高手解答!
example was unable to successfully connect to the MySQL server . Check your settings including the MySQL server, username, and password and try again.PHP Warning: session_start(): open(/tmp\sess_03ca38272c0e10f4fd38c6a1a12762de, O_RDWR) failed: No such file or directory (2) in d:\Myphp\INDEX.PHP on line 3 PHP Notice: Use of undefined constant host - assumed 'host' in d:\Myphp\includes\mysql.php on line 3 PHP Notice: Use of undefined constant user - assumed 'user' in d:\Myphp\includes\mysql.php on line 4 PHP Notice: Use of undefined constant pass - assumed 'pass' in d:\Myphp\includes\mysql.php on line 5 PHP Notice: Use of undefined constant name - assumed 'name' in d:\Myphp\includes\mysql.php on line 6 PHP Notice: Use of undefined constant prefix - assumed 'prefix' in d:\Myphp\includes\mysql.php on line 9 PHP Notice: Use of undefined constant host - assumed 'host' in d:\Myphp\includes\mysql.php on line 42 PHP Notice: Use of undefined constant user - assumed 'user' in d:\Myphp\includes\mysql.php on line 42 PHP Notice: Use of undefined constant pass - assumed 'pass' in d:\Myphp\includes\mysql.php on line 42 PHP Warning: mysql_connect(): Access denied for user: 'root@localhost' (Using password: YES) in d:\Myphp\includes\mysql.php on line 42 PHP Warning: Unknown(): open(/tmp\sess_03ca38272c0e10f4fd38c6a1a12762de, O_RDWR) failed: No such file or directory (2) in Unknown on line 0 PHP Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0
example was unable to successfully connect to the MySQL server . Check your settings including the MySQL server, username, and password and try again.PHP Warning: session_start(): open(/tmp\sess_03ca38272c0e10f4fd38c6a1a12762de, O_RDWR) failed: No such file or directory (2) in d:\Myphp\INDEX.PHP on line 3 PHP Notice: Use of undefined constant host - assumed 'host' in d:\Myphp\includes\mysql.php on line 3 PHP Notice: Use of undefined constant user - assumed 'user' in d:\Myphp\includes\mysql.php on line 4 PHP Notice: Use of undefined constant pass - assumed 'pass' in d:\Myphp\includes\mysql.php on line 5 PHP Notice: Use of undefined constant name - assumed 'name' in d:\Myphp\includes\mysql.php on line 6 PHP Notice: Use of undefined constant prefix - assumed 'prefix' in d:\Myphp\includes\mysql.php on line 9 PHP Notice: Use of undefined constant host - assumed 'host' in d:\Myphp\includes\mysql.php on line 42 PHP Notice: Use of undefined constant user - assumed 'user' in d:\Myphp\includes\mysql.php on line 42 PHP Notice: Use of undefined constant pass - assumed 'pass' in d:\Myphp\includes\mysql.php on line 42 PHP Warning: mysql_connect(): Access denied for user: 'root@localhost' (Using password: YES) in d:\Myphp\includes\mysql.php on line 42 PHP Warning: Unknown(): open(/tmp\sess_03ca38272c0e10f4fd38c6a1a12762de, O_RDWR) failed: No such file or directory (2) in Unknown on line 0 PHP Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0
解决方案 »
- php+mysql数据库问题
- php不能保存问题
- script中怎么做才能调用 php中的变量,如下所示:
- PHP如何在Windows2000下进行配置
- 表单信息代码存放.inc文件中备用,调用时其中中文字不能显示
- Win2000下安装Apache成功,但是显示不了PHP文件,都是乱码,怎么回事?
- 还是有关关闭 register_globals 后的 url 参数问题,100 求教,在线等待!
- PHP分割查询
- 请教 mysql的show processlist命令能否显示完整的SQL语句
- $results = []
- 帮帮忙吧,有关PHP在apache配置的问题~
- 请教高手我下载的源文件为何在本机老连不上mysql!两问?
phpmyadmin可以连上的话,看看config中mysql用户名密码是什么,填到程序里再试。
默认是root 空
是不是密码或用户名记错了
你在MS-DOS窗口下用mysql -u - p进进看