# Install MySQL Extention PHP5

**URL:** <https://forum.kirupa.com/t/install-mysql-extention-php5/119754>\
**Category:** Uncategorized\
**Created:** [August 17, 2004, 8:46pm UTC](https://forum.kirupa.com/t/install-mysql-extention-php5/119754 "2004-08-17T20:46:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![simpleSoft](https://avatars.discourse-cdn.com/v4/letter/s/8baadc/32.png) [@simpleSoft](https://forum.kirupa.com/u/simpleSoft)\
**Post date:** [August 17, 2004, 8:46pm UTC](https://forum.kirupa.com/t/install-mysql-extention-php5/119754/1 "2004-08-17T20:46:27Z")

</div>

I know PHP5 doesn’t come with MySQL installed. How do I install it so it can connect with my PHP scripts. All of them are up and running very smoothly [individually speaking that is].

-Ryan

---

<div class="post-metadata">

**Author:** ![ol4pr0](https://avatars.discourse-cdn.com/v4/letter/o/5fc32e/32.png) [@ol4pr0](https://forum.kirupa.com/u/ol4pr0)\
**Post date:** [August 17, 2004, 9:04pm UTC](https://forum.kirupa.com/t/install-mysql-extention-php5/119754/2 "2004-08-17T21:04:47Z")

</div>

you will have to load up the lib\_mysql.dll and the php\_mysql.dll

lib\_mysql.dll goes in youre systemroot  
php\_mysql.dll whereever you want to but u will have to specify it in ure php.ini

---

<div class="post-metadata">

**Author:** ![simpleSoft](https://avatars.discourse-cdn.com/v4/letter/s/8baadc/32.png) [@simpleSoft](https://forum.kirupa.com/u/simpleSoft)\
**Post date:** [August 17, 2004, 9:47pm UTC](https://forum.kirupa.com/t/install-mysql-extention-php5/119754/3 "2004-08-17T21:47:02Z")

</div>

OK check this out…I have php\_mysql.dll correctly pathed because it doesn’t throw that error if its incorrectly pathed. And I have libmysql.dll in the c:\WINDOWS dir i have proof look at the pictures. And when I run this script on my PHP

```php
$arr = get_loaded_extensions(); 
 
foreach ( $arr as $key=> $ext ) 
	{ 
	 echo $ext.'<BR><BR>'; 
	}

```

The MySQL extention doesn’t show…what else could I be doing wrong?

---

<div class="post-metadata">

**Author:** ![Marble](https://avatars.discourse-cdn.com/v4/letter/m/b4bc9f/32.png) [@Marble](https://forum.kirupa.com/u/Marble)\
**Post date:** [August 17, 2004, 10:21pm UTC](https://forum.kirupa.com/t/install-mysql-extention-php5/119754/4 "2004-08-17T22:21:57Z")

</div>

What does phpinfo(); say? It will list any modules loaded with php if they are installed correctly.

---

<div class="post-metadata">

**Author:** ![Jeff\_Wheeler](https://avatars.discourse-cdn.com/v4/letter/j/59ef9b/32.png) [@Jeff\_Wheeler](https://forum.kirupa.com/u/Jeff_Wheeler)\
**Post date:** [August 17, 2004, 10:25pm UTC](https://forum.kirupa.com/t/install-mysql-extention-php5/119754/5 "2004-08-17T22:25:06Z")

</div>

in your php ini file uncomment the mysql line, that’s all I had to do 😉

---

<div class="post-metadata">

**Author:** ![simpleSoft](https://avatars.discourse-cdn.com/v4/letter/s/8baadc/32.png) [@simpleSoft](https://forum.kirupa.com/u/simpleSoft)\
**Post date:** [August 17, 2004, 10:35pm UTC](https://forum.kirupa.com/t/install-mysql-extention-php5/119754/6 "2004-08-17T22:35:01Z")

</div>

NEVER MIND I AM A MORON! ON THE APACHE2 httpd.conf there is a line where you tell it where the php.ini file is and I had it pointing to the wrong ini.

Fixed it…and again I am a moron!
