0% found this document useful (0 votes)
12 views12 pages

MySQL and XAMPP Installation Guide

The document provides a step-by-step guide for installing MySQL Server 5.0 and XAMPP, detailing the installation process and configuration settings. It also explains the functionalities of phpMyAdmin, Apache, and the importance of securing the MySQL server with a password. Additionally, it outlines lab tasks including software installation and database creation.

Uploaded by

Talha Khursheed
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views12 pages

MySQL and XAMPP Installation Guide

The document provides a step-by-step guide for installing MySQL Server 5.0 and XAMPP, detailing the installation process and configuration settings. It also explains the functionalities of phpMyAdmin, Apache, and the importance of securing the MySQL server with a password. Additionally, it outlines lab tasks including software installation and database creation.

Uploaded by

Talha Khursheed
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Database Systems

Lab 1

Introduction and Installation of Tools

Steps for Installing MySQL

Step1

Make sure you already downloaded the MySQL essential 5.0.45 [Link] file. Double
click on the .msi file.

Step2

This is MySQL Server 5.0 setup wizard. The setup wizard will install MySQL Server 5.0
release 5.0.45 on your computer. To continue, click next.

Step3

Choose the setup type that best suits your needs. For common program features select Typical
and it’s recommended for general use. To continue, click next.

Step4

This wizard is ready to begin installation. Destination folder will be in C:\


Program Files\MySQL\MySQL Server 5.0\. To continue, click next.

Step5
The program features you selected are being installed. Please wait while the setup wizard
installs MySQL 5.0. This may take several minutes.

Step6

To continue, click next.

Step7

To continue, click next.


Step 8

Wizard Completed. Setup has finished installing MySQL 5.0. Check the configure the
MySQL server now to continue. Click Finish to exit the wizard

Step 9

The configuration wizard will allow you to configure the MySQL Server 5.0 server instance. To
continue, click next.

Step10
Select a standard configuration and this will use a general purpose configuration for the
server that can be tuned manually. To continue, click next.

Step11
Check on the install as windows service and include bin directory in windows path.
To continue, click next.Step12

Please set the security options by entering the root password and confirm retype the
password. continue, click next.

Step13
Ready to execute? Clicks execute to continue.

Step14

Processing configuration in progress.

Step15
Configuration file created. Windows service MySQL5 installed. Press finish to close the
wizard.
XAMPP

XAMPP stands for Cross-Platform (X), Apache (A), MySQL (M), PHP (P) and Perl (P). It is a
simple, light-weighted Apache server that makes it extremely easy for developers to create a
local http server with just few clicks.

An integrated development environment (IDE) is a software application that provides


comprehensive facilities to computer programmers for software development. An IDE normally
consists of a source code editor, build automation tools and a debugger/Tester of
Program/Execution of program.

After Installation of XAMPP Server


Starting Services of Apache and MySQL (the sign changes from red to green): -

We can access the local server via graphical user interface (GUI) by
click on the Admin button of MySQL.
phpMyAdmin: -

It is a free and open source tool/simulator written in PHP intended to


handle the administration of MySQL with the use of a web browser. It
can perform various tasks such as creating, modifying or deleting
databases, tables, fields or rows; executing SQL statements; or managing
users and permissions.

Apache: -
It is the most widely used web server software. Developed and
maintained by Apache Software Foundation, Apache is an open source
software available for free. It runs on 67% of all webservers in the world.
It is fast, reliable, and secure.
We can access the local server via Domain Name directly in the browser that is by
default (after starting services of Apache and MySQL): - localhost/phpmyadmin
Also, we can access the local server via loopback IP Address in web
browser that is by default (after starting services of Apache and
MySQL): - [Link]/phpmyadmin
[Link]: -
This is a loopback IP address (Special IP address) that is used to access
the local server.
Drop Command: -
This command is disable by default. So, to enable it follow the following
process:

1. Go To: -
C:\xampp\phpmyadmin\libraries

2. Open the file called "[Link]"

3. Go to line 653 and change $cfg['AllowUserDropDatabase'] = false; to true

4. Restart the server to see the changes

Securing Server ROOT USER by Implementing Password


using the following steps: - Go into Edit Privileges
Then, Go into Change Password: -
Then: -
Go into installed directory of XAMPP:
C:\xampp\phpMyAdmin
Open: [Link]
And Change: -
config to cookie
Then, Change and Type that password that already assigned in
Server: -
Lab Task
1. Install the software
2. Create a database in mysql
3. Search
a. Different types of databases.

b. Different RDBMS

Common questions

Powered by AI

Configuring MySQL as a Windows service allows for automatic startup and background operation without requiring manual execution of startup scripts. This contributes to ease of use by ensuring MySQL is consistently available upon system boot, reducing administrative overhead and simplifying maintenance, which is crucial for developers who need reliable database services throughout the development process .

To enable the Drop Database command in phpMyAdmin, the configuration file 'config.default.php' must be edited; specifically, changing the line $cfg['AllowUserDropDatabase'] = false; to true. This change allows users to drop databases through the web interface, which can be necessary for database administrators who need to manage the database structure directly through phpMyAdmin for maintenance, restructuring, or clean-up purposes .

XAMPP simplifies the local server setup by integrating essential development components like Apache server, MySQL database, PHP, and Perl into a single, pre-configured, and easily deployable package. It allows developers to quickly start services such as Apache and MySQL via a GUI, and provides access to tools like phpMyAdmin for MySQL management. This integration reduces the complexity of setting up a server environment by eliminating the need for separate installations and configurations of each component .

Using a GUI for MySQL administration with phpMyAdmin improves efficiency by providing a visual platform that simplifies complex tasks like database management, table configuration, and SQL queries execution. GUIs reduce the learning curve for new users, facilitate error recovery through intuitive menus, and allow for simultaneous operations through multiple windows, which is typically more cumbersome with command-line interfaces .

The primary steps for installing MySQL Server 5.0 include downloading the MySQL essential 5.0.45 win32.msi file, running the setup wizard to install MySQL Server 5.0, choosing a typical setup for general use, confirming the installation destination, and proceeding through the installation processes as guided by the wizard. After installation, the configuration wizard sets up the MySQL Server instance, selects a standard configuration, installs MySQL as a Windows service, and sets security options like the root password .

IDE's benefit software development by providing an integrated environment with features such as code editors, debuggers, and build automation tools, which streamline the development process and increase productivity. However, potential drawbacks include resource intensity, reliance on specific tools that might limit flexibility, and a steep learning curve for mastering all the features. Manually writing and compiling code offers greater control over environments and processes but may slow down productivity due to the additional steps involved .

Apache is considered secure and reliable due to its open-source development model, which encourages community involvement in identifying and patching security vulnerabilities, ensuring continuous improvement and adaptability. Its widespread use signifies trust and reliability, offering web developers confidence in using it as a foundation for web services, particularly because of its compatibility with various modules and its extensive documentation .

The loopback IP address (127.0.0.1) is important because it provides a standard way to access the local server on the same machine, allowing developers to test and interact with locally hosted web services. It is typically used in web browsers to connect to local applications, such as accessing phpMyAdmin via '127.0.0.1/phpmyadmin', ensuring services are running and accessible without needing external network connectivity .

Running a local server like XAMPP on a developer's machine allows for rapid prototyping and testing in a constrained environment that mirrors the deployment setup. This strategy facilitates detection of potential issues early but may mask discrepancies such as performance bottlenecks, security configurations, or load handling that differ from real-world deployment environments. Developers must remain aware of such discrepancies and consider additional testing stages for accurate real-world simulation .

PhpMyAdmin can perform a variety of tasks for MySQL administration, including creating, modifying, or deleting databases, tables, fields, or rows; executing SQL statements; and managing users and permissions. It serves as a web-based interface that simplifies database management tasks .

You might also like