How to install MySQL on Windows
Step by step guide
1) Download MySQL from http://dev.mysql.com/downloads/mysql/5.1.html and get the Windows Essentials (x86) MSI Installer version.
2) Now run the MSI file and use the following settings
- Typical Setup
- Skip Sign-Up
- make sure “Configure the MySQL Server now” is checked
- “Detailed Configuration”
- “Developer Machine”
- “Multifunctional Database”
- “InnoDB Tablespace Settings” – leave everything default
- “Decision Support (DSS)/OLAP”
- make sure “Enable TCP/IP Networking” is checked and leave the port number at 3306 (at this point, if you have a firewall, it will usually try to access itself on the localhost)
Leave “Enable Strict Mode” checked - “Standard Character Set”
- check “Install As Windows Service” and I would recommend leaving “Launch the MySQL Server automatically” checked.
- enter a root password (and remember/write it down) and I would recommend leaving “Enable root access from remote machines” unchecked
- then hit “execute” and it’ll install and set it up.
3) Change the php extension.
open up your php.ini in a text editor and search for ;extension=php_mysql.dll and remove the ; infont of that line.
4) Testing mysql
Please create a php file and copy following codes and save as php file.
<? $host = ‘localhost’; $user = ‘root’; $password = ”; $database = “affiliatemarketers”; // connect to the server $con = mysql_connect(“$host”,”$user”,”$password”); if($con) { $databaseCon = mysql_select_db(“$database”); if(!$databaseCon) { echo “Unable to connect to the database. please try again”; die(); } else { echo “Database cconnected successfully”; } } else { echo “Unable to connect to the host”; die(); } ?>
Thanks






