Jump to content

Search the Community

Showing results for tags 'mysql'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Extreme Tech Support Information Center
    • Announcements and Information
  • Extreme Tech Support Forums
    • Tech Support & Discussions Forum
    • Microsoft Products Support & Discussions
    • Operating Systems Help & Support
    • Apple/Mac Help & Support
  • Extreme Tech Support Members Area
    • New Member Introductions
    • Water Cooler
    • Site Feedback / Bugs / Features
  • The Archive ( Read Only )
    • Legacy Operating Systems
    • Archives

Blogs

  • Windows Insider

Categories

  • General Websites
  • Computers & Technology
  • Coding & Programming
  • Microsoft Websites
  • Linux / Unix / MacOS

Categories

  • Files
    • Windows
    • Linux / Unix
  • Apps
    • Travel & GPS
    • Social Network
    • Puzzles & Games

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


About Me


Location


Gender


Occupation


Real Name


Experience


Operating System


Facebook


Twitter


Skype


Google Talk

Found 1 result

  1. To install MySQL and PHP on Windows, you can follow these steps: Step 1: Install MySQL Download MySQL Installer: Go to the MySQL Community Downloads page. Download the MySQL Installer for Windows. Run the Installer: Launch the downloaded installer. Choose the "Developer Default" setup type to install MySQL Server and other tools. Follow the Installation Steps: Accept the license agreement. Choose the MySQL Server version you want to install. Configure the server (set the root password and other options). Complete the installation. Verify MySQL Installation: Open Command Prompt and type mysql -u root -p to log in to MySQL. Enter the root password you set during installation. Step 2: Install PHP Download PHP: Go to the PHP for Windows page. Download the latest Non-Thread Safe (NTS) version of PHP (the zip file). Extract PHP: Extract the downloaded zip file to a directory (e.g., C:\php). Configure PHP: Rename php.ini-development to php.ini. Open php.ini in a text editor and configure the necessary settings (like enabling extensions). Add PHP to the System Path: Right-click on "This PC" or "My Computer" and select "Properties." Click on "Advanced system settings" and then "Environment Variables." Find the "Path" variable in the "System variables" section and click "Edit." Add the path to your PHP directory (e.g., C:\php). Verify PHP Installation: Open Command Prompt and type php -v to check if PHP is installed correctly. Step 3: (Optional) Install a Web Server For PHP to run, you may want to install a web server like Apache or Nginx. Alternatively, you can use XAMPP or WAMP, which bundle Apache, MySQL, and PHP together for easier installation. Step 4: Test PHP with MySQL Create a simple PHP file (e.g., test.php) in your web server's root directory with the following content: <?php $conn = new mysqli('localhost', 'root', 'your_password', 'your_database'); if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } echo "Connected successfully"; ?> Access this file through your web browser to see if it connects to MySQL successfully. Conclusion Following these steps will help you set up MySQL and PHP on your Windows machine. If you encounter any issues, make sure to check the official documentation for MySQL and PHP for troubleshooting tips. View full article
×
×
  • Create New...