# Install MySQL Extention PHP5

**URL:** https://forum.kirupa.com/t/install-mysql-extention-php5/61336
**Category:** programming
**Created:** [August 17, 2004, 8:46pm UTC](https://forum.kirupa.com/t/install-mysql-extention-php5/61336 "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/61336/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: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 17, 2004, 9:04pm UTC](https://forum.kirupa.com/t/install-mysql-extention-php5/61336/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: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 17, 2004, 9:47pm UTC](https://forum.kirupa.com/t/install-mysql-extention-php5/61336/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: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 17, 2004, 10:21pm UTC](https://forum.kirupa.com/t/install-mysql-extention-php5/61336/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: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 17, 2004, 10:25pm UTC](https://forum.kirupa.com/t/install-mysql-extention-php5/61336/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: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 17, 2004, 10:35pm UTC](https://forum.kirupa.com/t/install-mysql-extention-php5/61336/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!
