John Davidson

php - MYSQL startup and needed requirements

0 comments
Message:


I'm new to mySQL and cannot install XAMPP due to laptop restrictions, anyone has ideas to have a localhost and Apatchi and other needed requirements to start MYSQL/PHP learning? on my PC without having to install this program?



My Answer:
You can install MySQL and PHP separately on your PC without using XAMPP. Here are the steps to do so:

1. Install MySQL:
- Download the MySQL Community Server from the official website: https://dev.mysql.com/downloads/mysql/
- Follow the installation instructions provided on the website to install MySQL on your PC.
- Make sure to remember the root password you set during the installation process.

2. Install PHP:
- Download the latest version of PHP from the official website: https://www.php.net/downloads
- Extract the PHP files to a folder on your PC.
- Configure PHP to work with MySQL by editing the php.ini file. Uncomment the following lines in the php.ini file:

extension=mysqli
extension=pdo_mysql

- Save the changes to the php.ini file.

3. Start MySQL and PHP:
- Start the MySQL server by running the MySQL service on your PC.
- Start the PHP server by running the PHP executable file with the command prompt.

4. Test your setup:
- Create a new PHP file in a text editor and write some PHP code to connect to the MySQL database.
- Save the PHP file in the root directory of your PHP server.
- Open a web browser and navigate to http://localhost/your_php_file.php to test your setup.

By following these steps, you can set up a localhost environment on your PC for learning MySQL and PHP without using XAMPP.

Rate this post

3 of 5 based on 8034 votes

Comments




© 2024 Hayatsk.info - Personal Blogs Platform. All Rights Reserved.
Create blog  |  Privacy Policy  |  Terms & Conditions  |  Contact Us