PHP cannot see Mysql?! Ideas?
PHP cannot see Mysql?! Ideas?
am 21.10.2007 02:45:54 von Hans-Peter Sauer
I have php and mysql both working seperately but not together
- Shows everything working fine but no mention of
Mysql in it.
Mysql is setup and working properly. Users and databases all connect fine
All my PHP scripts which have mysql connection info just show as a blank
page. No error messages.
Any ideas?!. Would appreciate any input, its driving my crazy.
Re: PHP cannot see Mysql?! Ideas?
am 21.10.2007 03:54:40 von Jerry Stuckle
David wrote:
> I have php and mysql both working seperately but not together
>
> - Shows everything working fine but no mention of
> Mysql in it.
>
> Mysql is setup and working properly. Users and databases all connect fine
>
> All my PHP scripts which have mysql connection info just show as a blank
> page. No error messages.
>
> Any ideas?!. Would appreciate any input, its driving my crazy.
>
>
>
This means the MySQL extension isn't being loaded.
Did you enable the mysql extension in your php.ini? Is it loading properly?
And is the mysql client .dll (windows) or .so (UNIX) available to be loaded.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Re: PHP cannot see Mysql?! Ideas?
am 21.10.2007 11:48:47 von Hans-Peter Sauer
"Jerry Stuckle" wrote in message
news:WdmdnereK_jyLIfanZ2dnUVZ_vXinZ2d@comcast.com...
> David wrote:
>> I have php and mysql both working seperately but not together
>>
>> - Shows everything working fine but no mention of
>> Mysql in it.
>>
>> Mysql is setup and working properly. Users and databases all connect
>> fine
>>
>> All my PHP scripts which have mysql connection info just show as a blank
>> page. No error messages.
>>
>> Any ideas?!. Would appreciate any input, its driving my crazy.
>
> This means the MySQL extension isn't being loaded.
>
> Did you enable the mysql extension in your php.ini? Is it loading
> properly?
>
> And is the mysql client .dll (windows) or .so (UNIX) available to be
> loaded.
I uncommented both
extension=php_mysql.dll
extension=php_mysqli.dll
in php.ini.
I'm using Windows. Any ideas how to locate the problem?
Re: PHP cannot see Mysql?! Ideas?
am 21.10.2007 15:48:00 von Jerry Stuckle
David wrote:
> "Jerry Stuckle" wrote in message
> news:WdmdnereK_jyLIfanZ2dnUVZ_vXinZ2d@comcast.com...
>> David wrote:
>>> I have php and mysql both working seperately but not together
>>>
>>> - Shows everything working fine but no mention of
>>> Mysql in it.
>>>
>>> Mysql is setup and working properly. Users and databases all connect
>>> fine
>>>
>>> All my PHP scripts which have mysql connection info just show as a blank
>>> page. No error messages.
>>>
>>> Any ideas?!. Would appreciate any input, its driving my crazy.
>> This means the MySQL extension isn't being loaded.
>>
>> Did you enable the mysql extension in your php.ini? Is it loading
>> properly?
>>
>> And is the mysql client .dll (windows) or .so (UNIX) available to be
>> loaded.
>
>
> I uncommented both
>
> extension=php_mysql.dll
> extension=php_mysqli.dll
>
> in php.ini.
>
> I'm using Windows. Any ideas how to locate the problem?
>
>
>
>
What about the rest of my question?
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Re: PHP cannot see Mysql?! Ideas?
am 21.10.2007 16:41:19 von Hans-Peter Sauer
"Jerry Stuckle" wrote in message
news:-pmdndvXZq8_xYbanZ2dnUVZ_vPinZ2d@comcast.com...
> David wrote:
>> "Jerry Stuckle" wrote in message
>> news:WdmdnereK_jyLIfanZ2dnUVZ_vXinZ2d@comcast.com...
>>> David wrote:
>>>> I have php and mysql both working seperately but not together
>>>>
>>>> - Shows everything working fine but no mention of
>>>> Mysql in it.
>>>>
>>>> Mysql is setup and working properly. Users and databases all connect
>>>> fine
>>>>
>>>> All my PHP scripts which have mysql connection info just show as a
>>>> blank
>>>> page. No error messages.
>>>>
>>>> Any ideas?!. Would appreciate any input, its driving my crazy.
>>> This means the MySQL extension isn't being loaded.
>>>
>>> Did you enable the mysql extension in your php.ini? Is it loading
>>> properly?
>>>
>>> And is the mysql client .dll (windows) or .so (UNIX) available to be
>>> loaded.
>>
>>
>> I uncommented both
>>
>> extension=php_mysql.dll
>> extension=php_mysqli.dll
>>
>> in php.ini.
>>
>> I'm using Windows. Any ideas how to locate the problem?
>>
>>
>>
>>
>
> What about the rest of my question?
>
Note quite sure what youre asking. Mysql is loaded and working but php
cant see/use it
Re: PHP cannot see Mysql?! Ideas?
am 21.10.2007 19:52:49 von Jerry Stuckle
David wrote:
> "Jerry Stuckle" wrote in message
> news:-pmdndvXZq8_xYbanZ2dnUVZ_vPinZ2d@comcast.com...
>> David wrote:
>>> "Jerry Stuckle" wrote in message
>>> news:WdmdnereK_jyLIfanZ2dnUVZ_vXinZ2d@comcast.com...
>>>> David wrote:
>>>>> I have php and mysql both working seperately but not together
>>>>>
>>>>> - Shows everything working fine but no mention of
>>>>> Mysql in it.
>>>>>
>>>>> Mysql is setup and working properly. Users and databases all connect
>>>>> fine
>>>>>
>>>>> All my PHP scripts which have mysql connection info just show as a
>>>>> blank
>>>>> page. No error messages.
>>>>>
>>>>> Any ideas?!. Would appreciate any input, its driving my crazy.
>>>> This means the MySQL extension isn't being loaded.
>>>>
>>>> Did you enable the mysql extension in your php.ini? Is it loading
>>>> properly?
>>>>
>>>> And is the mysql client .dll (windows) or .so (UNIX) available to be
>>>> loaded.
>>>
>>> I uncommented both
>>>
>>> extension=php_mysql.dll
>>> extension=php_mysqli.dll
>>>
>>> in php.ini.
>>>
>>> I'm using Windows. Any ideas how to locate the problem?
>>>
>>>
>>>
>>>
>> What about the rest of my question?
>>
>
> Note quite sure what youre asking. Mysql is loaded and working but php
> cant see/use it
>
>
>
Just what I asked. Is the mysql client dll in a place where PHP can get
to it - i.e. in the php extension directory, a directory in your path, etc.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Re: PHP cannot see Mysql?! Ideas?
am 22.10.2007 11:59:48 von Hans-Peter Sauer
"Jerry Stuckle" wrote in message
news:NNadndPIhYmfD4banZ2dnUVZ_qbinZ2d@comcast.com...
> David wrote:
>> "Jerry Stuckle" wrote in message
>> news:-pmdndvXZq8_xYbanZ2dnUVZ_vPinZ2d@comcast.com...
>>> David wrote:
>>>> "Jerry Stuckle" wrote in message
>>>> news:WdmdnereK_jyLIfanZ2dnUVZ_vXinZ2d@comcast.com...
>>>>> David wrote:
>>>>>> I have php and mysql both working seperately but not together
>>>>>>
>>>>>> - Shows everything working fine but no mention
>>>>>> of
>>>>>> Mysql in it.
>>>>>>
>>>>>> Mysql is setup and working properly. Users and databases all connect
>>>>>> fine
>>>>>>
>>>>>> All my PHP scripts which have mysql connection info just show as a
>>>>>> blank
>>>>>> page. No error messages.
>>>>>>
>>>>>> Any ideas?!. Would appreciate any input, its driving my crazy.
>>>>> This means the MySQL extension isn't being loaded.
>>>>>
>>>>> Did you enable the mysql extension in your php.ini? Is it loading
>>>>> properly?
>>>>>
>>>>> And is the mysql client .dll (windows) or .so (UNIX) available to be
>>>>> loaded.
>>>>
>>>> I uncommented both
>>>>
>>>> extension=php_mysql.dll
>>>> extension=php_mysqli.dll
>>>>
>>>> in php.ini.
>>>>
>>>> I'm using Windows. Any ideas how to locate the problem?
>>>>
>>>>
>>>>
>>>>
>>> What about the rest of my question?
>>>
>>
>> Note quite sure what youre asking. Mysql is loaded and working but php
>> cant see/use it
>
> Just what I asked. Is the mysql client dll in a place where PHP can get
> to it - i.e. in the php extension directory, a directory in your path,
> etc.
>
Yes. php_mysql.dll etc are all in my /ext directory
Re: PHP cannot see Mysql?! Ideas?
am 22.10.2007 12:56:10 von Jerry Stuckle
David wrote:
> "Jerry Stuckle" wrote in message
> news:NNadndPIhYmfD4banZ2dnUVZ_qbinZ2d@comcast.com...
>> David wrote:
>>> "Jerry Stuckle" wrote in message
>>> news:-pmdndvXZq8_xYbanZ2dnUVZ_vPinZ2d@comcast.com...
>>>> David wrote:
>>>>> "Jerry Stuckle" wrote in message
>>>>> news:WdmdnereK_jyLIfanZ2dnUVZ_vXinZ2d@comcast.com...
>>>>>> David wrote:
>>>>>>> I have php and mysql both working seperately but not together
>>>>>>>
>>>>>>> - Shows everything working fine but no mention
>>>>>>> of
>>>>>>> Mysql in it.
>>>>>>>
>>>>>>> Mysql is setup and working properly. Users and databases all connect
>>>>>>> fine
>>>>>>>
>>>>>>> All my PHP scripts which have mysql connection info just show as a
>>>>>>> blank
>>>>>>> page. No error messages.
>>>>>>>
>>>>>>> Any ideas?!. Would appreciate any input, its driving my crazy.
>>>>>> This means the MySQL extension isn't being loaded.
>>>>>>
>>>>>> Did you enable the mysql extension in your php.ini? Is it loading
>>>>>> properly?
>>>>>>
>>>>>> And is the mysql client .dll (windows) or .so (UNIX) available to be
>>>>>> loaded.
>>>>> I uncommented both
>>>>>
>>>>> extension=php_mysql.dll
>>>>> extension=php_mysqli.dll
>>>>>
>>>>> in php.ini.
>>>>>
>>>>> I'm using Windows. Any ideas how to locate the problem?
>>>>>
>>>>>
>>>>>
>>>>>
>>>> What about the rest of my question?
>>>>
>>> Note quite sure what youre asking. Mysql is loaded and working but php
>>> cant see/use it
>> Just what I asked. Is the mysql client dll in a place where PHP can get
>> to it - i.e. in the php extension directory, a directory in your path,
>> etc.
>>
>
>
> Yes. php_mysql.dll etc are all in my /ext directory
>
>
>
php_mysql.dll is not the MySQL client library. It is a PHP DLL.
The MySQL client libraries are shipped with MySQL and have names like
mysqlxxx.dll. You will find them in the MySQL directory hierarchy.
These must also be accessible to PHP.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Re: PHP cannot see Mysql?! Ideas?
am 25.10.2007 07:46:52 von nc
On Oct 21, 2:48 am, "David" wrote:
>
> I uncommented both
>
> extension=php_mysql.dll
> extension=php_mysqli.dll
>
> in php.ini.
OK, but is that php.ini being used by your system?
> I'm using Windows. Any ideas how to locate the problem?
Look at your phpinfo() output again. It will show (at the very
beginning) the path to php.ini being used. It is possible that PHP is
using C:\WINDOWS\php.ini, while the you made changes to is C:\PHP
\php.ini or somesuch... If that's the case, add C:\PHP to your PATH
or copy your php.ini to C:\WINDOWS...
Cheers,
NC