LinkShare  Referral  Program

New

Advertise ad Here
learn more
            PHP > Configuring MySql /Apache on vista
Useful

Links


Free technical Tutorials At techtutorials.net



Link Exchange at iWEBTOOL.com

 



The PHP Resource Index


iBuyOfficesupply.com Inc. There are N. 3 Comments for this Article
Ask any relevant question in the Comments or leave your valuable feed-back

printer  Print version of this article

star  Add it to your favourite!

mail email this page to a frend
LinkShare  Referral  Program
Added on   2009-01-25
Clicks     10137
Rating:   4.89   out of 5 from   10   raters      
         rate this page   
 Not rated yet.Be the first one to vote!!

How to Install and Configure MySql on  Windows Vista and Apache



 MySql 5.0.45 with Apache running on Vista

2st part - Configuration



 

 

    Sql Configuration Wizard 2




    MySql configuration  Wizard 3




    Sql Configuration Wizard 4




    MySql configuration  Wizard 5



    Sql Configuration Wizard 6





    Sql Configuration Wizard





When the MySql configuration is finished ,you have to configure PHP to run MySql if you haven't done it yet when installing PHP.








    PHP conf.ini



    A this stage open your browser and open the page you have done to test the PHP installation, phptest.php and now you should be able to see all the information about MySql like in the figure below .If you can't see them ,the reason is PHP can't load MySql extension and you'll have to go through the PHP configurations steps and make sure that you've followed all the steps.


A further test to connect to MySql from PHP , open Notepad , new document and copy and paste the following code:

<?php
$host='localhost';                 //host name
$username='user';                //database user name
$password='mypassword';     //database password

mysql_connect($host,$username,$password) or die (mysql_error());
echo"connected<br/>";
?>

Then save the file in your website root directory and name it test_sql.php.Now open the file in your browser and,if everything OK you should read 'connected ' on a white page ,

Comments

Post your comment here or ask any question that is rilevant on what is shown in this page.
Thank you for visiting this website

N. 3 Comments for this page!   add a comment


From:  Demha   Comment Nr 1    
 Posted on  02/07/09
  
 Hi, I tried the steps you listed out. I have successfully installed PHP & MySql. But when I test MySql using your guidelines, i get negative results :( Using your first test I got 0 Active persistent links & 0 Active Links! Using your second test I recevied a page with the heading HTTP Error 500.0 Internal Server Error. Please advice. Looking forward to your response.

From:  amandeep   Comment Nr 2    
 Posted on  05/07/09
  
 I followed these steps to connect mysql with php.But when i open phpinfo() file there is no information about mysql.please help

From:  jp50   Comment Nr 3    
 Posted on  14/07/09
  
 Hi Amandeep, I think you'll have to review step 3 and 2 in this page.Make sure your MYSql extension are enabled,and the extensiondir is correct and then restart your web server.
i