Xampp Mysql Tutorial

Posted on  by admin

Hacking tutorial; But for today tips and trick is about configuring the MySQL database to accept connection come from network, because by default the new XAMPP will reject connection from outsiders. How to Make XAMPP MySQL Database Accessible by Network: 1. In this tips and trick we will use PHPMyadmin tool to manage the permissions. This video will discuss how to create a database using PhpMyAdmin and connect to that database using PHP- mysqli. Syntax is discussed as well as some best pr.

  1. Xampp Mysql Tutorial Pdf
  2. Xampp Php Mysql Tutorial
  3. Using Xampp Mysql
  4. Xampp Mysql Tutorial Youtube

Login pages are the easiest to create and most essential unit of any website. The best way to build a login system is by using XAMPP and a few text files. As discussed in earlier articles, XAMPP is a software bundle that provides a suitable environment for implementing web solutions and verifying it. The verification is done before deploying the website over the live web. XAMPP package contains PHP, which plays the most vital role in the development of a login system. The software requirements prior to initiating the creation of the login page for a website are discussed below:

Pre-requisites for creating a login page

  • Localhost software such as XAMPP- It is a short form for the words 'Cross-platform,' 'Apache' which is a web server, 'MariaDB' which is a relational DBMS, 'PHP' and 'Perl' scripting languages.
  • Adequate knowledge about HTML, PHP, and query construction.
  • A software for text editing and modification such as Brackets, Notepad, Dreamweaver, etc. Here we will be using Brackets.

Essential files for the login page

Xampp Mysql Tutorial Pdf

Before moving towards the steps followed for creating a login system, we need to create some mandatory files which will be used in the future during the process of development of a login page. The process of creating each file will also be discussed in this article.

  1. html -It is mandatory to create this file because it is used for the 'Graphic User Interface' view of the page and empty field validation.
  2. css - It is important to include this file because it is required to make the page look tempting to users and lure the audience by attractive formatting of the login page.
  3. php -This file has a vital role as it contains the connection code for database connectivity of the page.
  4. php -The role of this file is validation. It is used to crosscheck the form data with the database, which is submitted by the user.

The process to Create Login Page

UseXampp with mysql

The steps to follow for successful development of a login page for any website are given below.

STEP 1- Firstly, launch the XAMPP Control Panel by clicking the icon and click on the 'Start' button corresponding to Apache and MySQL modules.

STEP 2- Now open any web browser on your system and visit the given address- http:// localhost or If the server is running successfully, continue to the next step.


STEP 3- Relaunch the XAMPP Control Panel and click on 'Admin' corresponding to the MySQL module. It redirects you to localhost/phpmyadmin/. Now, create the database for the validation form of the login page.

STEP 4- To create a new database, click 'Create' after entering the name in Database name as required. Here we named it as 'login page'.

STEP 5- Now, click the SQL tab button. Paste the query given below and click 'Go.' The table is created successfully.

STEP 6- Keep putting your Webpage files into the destination folder. The folder can be located following the sequence - c:/xampp/htdocs.

STEP 7- Launch Brackets (an open source text editor) and create the login.php file. Copy-paste the code lines mentioned below into login.php file.

STEP 8- Now, create another file titled Register.php and copy-paste the code mentioned below into the data and register your name and password with unused usernames.

STEP 9- The third file to be created is Logout.php. The code to be used in this file is mentioned below.

STEP 10- The last file to be created is the Member.php file. The file should contain the following code.

STEP 11- The last step is to check the database to verify whether the data has stored or not.

We all know the purpose of installing XAMPP on a computer is to achieve a local platform to develop and test a web app locally before making it live. But if there’s a problem installing XAMPP MySQL then you may seek professional help and that’s where precisely this blog post will help you.

Xampp Php Mysql Tutorial

XAMPP is a software packet which contains four key components i.e. X stands for cross-platform compatibility, A (Apache web server), M (MySQL database), P(PHP), P (Perl). It has been designed to provide you a smooth installation experience to create a local web server for development and testing purpose. However, working on a website either on a local computer or hosted, you would need a database. Don’t worry, you don’t have to be MySQL expert to create a database with XAMPP. You can use phpMyAdmin graphical user interface for MySQL.

In this post, you will learn how XAMPP MySQL installation and configuration takes place. However, in my previous posts on how to install XAMPP and how to install WAMP, I’ve fully explained the role of MYSQL. But in this post, I’ll specifically talk about MySQL and Apache in reference to XAMPP.

Download and Install: XAMPP MySQL Apache and PHP/Pearl

First, you need to download and install XAMPP installer on your computer. This way you’ll get a dedicated control panel to manage all the components. Whilst installing XAMPP you’ll see an option to select whether you wish to run MySQL and Apache as services. If you select the option, then MySQL and Apache will start at system boot-up with the database web management tool phpMyAdmin user interface to manage XAMPP MySQL.

What is MySQL?

MySQL is an open source relational database management system (RDBMS) that relies on SQL (structured query language). Most of the web-based applications use RDBMS for its development. Basically, MySQL helps you structure your data, present the information in an organized manner, edit, delete, update, or retrieve data whenever required.

Any content management system (CMS) you use to create your website be it WordPress, Drupal, Magento, PrestaShop, etc. you would need MySQL to store and retrieve its data. All type of data like post content, post type, user profiles, tables, etc. is accessible via MySQL only. Mostly web servers which provide you one-click installation have already installed MySQL so that you don’t have to do it externally.

XAMPP MySQL as a package

Xampp mysql replication tutorial

XAMPP is a cross-platform compatible Apache distribution. Likewise, MySQL perfectly works on multiple operating systems and it can easily integrate with PHP. On XAMPP MySQL works as a database component which is required to run a database-enabled website and servers. On the control panel of XAMPP MySql and Apache need to be started first in order to run the website on the local server. As shown in the screenshot below. And when you see their status turned into green, that means it has been started correctly.

XAMPP MySQL and phpMyAdmin

If you are going to have a WordPress website the best practice is to develop and test it locally before making it live. However, not only a WordPress website, rather any cms say Joomla, Drupal, PrestaShop, etc. you should test a website in a local environment before presenting it to live users.


In order to create a database or tables for the website, you need to log in to phpMyAdmin user interface. Click the Admin button from the XAMPP to run phpMyAdmin and the interface will look like the one shown below. Here, go to the ‘phpmyadmin’ click on the ‘New’ and then name the database. And finally, click on the ‘Create’ button to finish the process.

Using Xampp Mysql

So you can see how important role MySQL plays in the web development realm. In the layman language, we can say MySQL XAMP is like the backbone for a project. I’ll tell you why!! A project needs to be tested thoroughly to be successful. So, for this purpose, you need to have a secure and fully equipped platform. And XAMPP provides the required platform loaded with requisite components.

Xampp Mysql Tutorial Youtube

As you are are going to design a website and you are familiar with your CMS may be it is WordPress or Joomla, and you have also created the local development environment with XAMPP and MySQL with Apache Web Server. Now you need a beautiful website or theme. And to craft a beautiful website you need a powerful website builder. There are many WordPress Theme Builders available now these days but I’ll recommend TemplateToaster, it works locally on your Windows PC to design website of your choice. Produce your stunning website with this website builder and kick start your website in no time at all.