我的PHP文件无法连接MYSQL [英] My PHP file is unable to connect MYSQL
问题描述
你好所有
你好所有
我在xp中安装了php,mysql和IIS。问题是我在运行以下文件时
PHP代码:
----------------
<?php
phpinfo();
?>
它不是在结果中显示mysql信息表。我看到mysql服务器运行良好。虽然我想把我的php文件连接到mysql数据库然后它没有连接。为什么会这样?如何缩短这个问题,
请帮助我
问候
< blockquote>我希望你发给我你的邮件地址anmd我会发邮件给你邮件
这里是我的邮件地址(jamescott_2@hotmail.com)...
>
你好所有
我在xp中安装了php,mysql和IIS。问题是我在运行以下文件时
PHP代码:
----------------
<?php
phpinfo();
?>
它不是在结果中显示mysql信息表。我看到mysql服务器运行良好。虽然我想把我的php文件连接到mysql数据库然后它没有连接。为什么会这样?如何缩短这个问题,
请帮帮我
问候[/ quote]
我认为你需要在php.ini中验证动态扩展。 (您的配置文件)
extension = php_mysql.dll
extension = php_mysqli.dll
别忘了重新启动服务器
安装MySQL后是否安装了PHP?你安装PHP支持MySQL吗?自从我在PC上工作以来已经有一段时间了,但是当你使用PHP安装程序时,它应该为你提供安装可选组件的选项。验证是否在该列表中选择了MySQL。
hello all
Hello all
I installed php, mysql and IIS in xp. Problem is this while i run following file
PHP Code:
----------------
<?php
phpinfo();
?>
it doesnt show mysql info table in result. I seen mysql server it is running well. While i am trying to connect
my php file to mysql database then it doesnt connect. why it is happening? how to short out this problem,
please help me
regards
i will want you to send me your mail adress anmd i will send ou the mailer on
here is my mail adress(jamescott_2@hotmail.com)...
Hello all
I installed php, mysql and IIS in xp. Problem is this while i run following file
PHP Code:
----------------
<?php
phpinfo();
?>
it doesnt show mysql info table in result. I seen mysql server it is running well. While i am trying to connect
my php file to mysql database then it doesnt connect. why it is happening? how to short out this problem,
please help me
regards[/quote]
i think you need to verify dynamic extensions in "php.ini " (your configuration file)
extension=php_mysql.dll
extension=php_mysqli.dll
don''t forget to restart your server
Did you install PHP after you installed MySQL? DId you install PHP with MySQL support? It''s been awhile since I''ve worked on a PC, but when you''re using the PHP installer, it should give you the option to install optional components. Verify that MySQL is selected in that list.
这篇关于我的PHP文件无法连接MYSQL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!