LinkShare  Referral  Program

New

Advertise ad Here
learn more
            PHP > Installing MySql
Useful

Links


Free technical Tutorials At techtutorials.net



Link Exchange at iWEBTOOL.com

 



The PHP Resource Index


iBuyOfficesupply.com Inc. There are N. 2 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   2007-11-12
Clicks     5464
Rating:   4   out of 5 from   1   raters      
         rate this page   
 Not rated yet.Be the first one to vote!!

How to Install MySql on Windows XP

  • Installing and configuring PHP
  • Installing MySql
  • Installing Apache


  • Install MySql 5.0.45 on Windows XP


    

    Download MySql 5.0.45 Win32  ,in other words the Windows version from the MySql website,

     

      MySql Wizard




      Sql Wizard




      Sql Wizard




      MySql configuration  Wizard





      Sql Configuration Wizard




      Sql Configuration Wizard




      MySql configuration  Wizard



      Sql Configuration Wizard




      Sql Configuration Wizard




      MySql configuration  Wizard



      Sql Configuration Wizard




      Sql Configuration Wizard




      MySql configuration  Wizard



      Sql Configuration Wizard




      MySql configuration  Wizard



      Sql Configuration Wizard





    When the installation is finished ,you have to configure PHP to run MySql with the following steps









    To test if you can connect to MySql using 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. 2 Comments for this page!   add a comment


    From:  Bhaskar   Comment Nr 1    
     Posted on  29/05/10
      
     Nice explanation. It helped me out alot.

    From:  Richard Carlisle   Comment Nr 2    
     Posted on  14/07/10
      
     How do you make it run if the config wizard hangs?Event Type: Error Event Source:MySQL5.1.48 Wxp pro sp3 Event Category: None Event ID:100 Date:7/13/2010 Time:10:37:41 PM Description: Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist
    i