Professional Documents
Culture Documents
PPD Pract 1-2-3
PPD Pract 1-2-3
database.
MySQL is a freely available open source Relational Database Management System (RDBMS)
that uses Structured Query Language (SQL).
Open Source means that it is possible for anyone to use and modify the software. Anybody
can download the MySQL software from the Internet and use it without paying anything. If you
wish, you may study the source code and change it to suit your needs. The MySQL software
uses the GPL (GNU General Public License), to define what you may and may not do with the
software in different situations. If you feel uncomfortable with the GPL or need to embed
MySQL code into a commercial application, you can buy a commercially licensed version from
us. See the MySQL Licensing Overview for more information
The MySQL Database Server is very fast, reliable, scalable, and easy to use.
If that is what you are looking for, you should give it a try. MySQL Server can run comfortably
on a desktop or laptop, alongside your other applications, web servers, and so on, requiring
little or no attention. If you dedicate an entire machine to MySQL, you can adjust the settings
to take advantage of all the memory, CPU power, and I/O capacity available. MySQL can also
scale up to clusters of machines, networked together.
You can find a performance comparison of MySQL Server with other database managers on
our benchmark page.
MySQL Server was originally developed to handle large databases much faster than existing
solutions and has been successfully used in highly demanding production environments for
several years. Although under constant development, MySQL Server today offers a rich and
useful set of functions. Its connectivity, speed, and security make MySQL Server highly suited
for accessing databases on the Internet.
<!--[if !vml]--><!--[endif]-->
I was installing it on my local machine where other applications & tools are running I decided to opt
"developer machine" but it is recommended that you use a Dedicated MySQL Server Machine for your
MySQL database, if this is not an option then select "Server Machine".
If you selected Dedicated MySQL Server Machine and your MySQL service does not start after the wizard
completes, then try to re-run the wizard (or re-install) MySQL, but this time select the Server Machine
option.
I have checked "Multifunctional databases" as I wanted MyISAM as default storage engine but if you
want you can select "Transactional Database Only", this will make sure that InnoDB is the main storage
engine. If you have checked 3rd option then only myISAM engine would be available
It is recommended that you leave the default port 3306 in place, however
EventSentry will also work with non-standard ports if necessary.
Specify a secure root password, you may want to check the box Enable root access
from remote machines if you plan on administering your MySQL server
from your workstation or other servers.
If you are getting an error message after clicking the Next button, then please enable port
3306
in the Windows XP Firewall Settings
Done!!!
But if you are installing MySQL on a Windows XP workstation, or any other computer that has a firewall
enabled, and the wizard fails with an error message similar to the one shown below (Can't connect to
MySQL server on 'localhost'), then you will have to exclude the MySQL daemon from your firewall
configuration
On Windows XP, you can exclude MySQL from the firewall by following the steps below:
1. Navigate to Start -> Settings -> Control Panel -> Windows Firewall
After clicking OK twice, return to the MySQL error message and select Retry. MySQL should now be able to create the
instance correctly
PRACTICAL-2
SQLyog provides you with powerful means to manage your MySQL databases.
Runs on all Windows version from Win XP to Win 8.x (desktop systems) as
well as "Windows Server" systems of same generations (Windows Server
2003 and higher).
HTTP and SSH Tunneling - smartly manage your MySQL server even if the
MySQL port is blocked or remote access to MySQL is disallowed!
Smart AutoComplete.
SQLyog Import External Data wizard - use the GUI or specify a query.
SQL Scheduler and Reporting Tool - execute unattended queries for database
maintainence of data verification with flexible email option.
Update result returned from query - also supports queries with JOINs. No
dialogues - just edit!
Filter data and resultsets directly form the context menu of a displayed value.
Execute multiple queries returning more than 1000s of rows per resultset. Its
very efficient in memory.
Connection manager.
Excel like grid interface to edit data with support for Enum/Set.
Create/Drop databases.
Manage indexes.
Syntax-highlighting.
Is very keyboard friendly. You can work with 99% features of SQLyog with
keyboard.
Flush Host/Logs/Privileges/Tables.
once you are at the download page for the Community Edition, select the latest
version. You can select either the latest beta version or the latest stable release.
After you have downloaded it, run the file to install SQLyog. The installation part is
pretty straightforward, Once you have SQLyog installed, go ahead and start it. Follow
along with these next screenshots to get it set up with your local MySQL Server
connection.
Think of localhost as an alias for the IP address (or in this case MySQL Host
Address) of the computer you are on.
PRACTICAL-3
Features
1. Web interface
2. MySQL database management
3. Import data from CSV and SQL
4. Export data to various formats: CSV, SQL, XML, PDF (via
the TCPDF library), ISO/IEC 26300 - OpenDocument Text and
Spreadsheet, Word, Excel, LaTeX and others
5. Administering multiple servers
6. Creating PDF graphics of the database layout
7. Creating complex queries using Query-by-Example (QBE)
8. Searching globally in a database or a subset of it
9. Transforming stored data into any format using a set of predefined
functions, like displaying BLOB-data as image or download-link
10.
Live charts to monitor MySQL server activity like connections,
processes, CPU/Memory usage, etc.
Once you enter in to the phpmyadmin you should see the following screen
Creating Database
Now you need to create a database for this you can see the create
database option in the above screen there you need to enter the database
name and click on create
We will now create the first table in the database, called "details". This is
done by using the Create new table feature. The name of the new table is
typed into the Name: field, and the number of columns in the table (4)
into Fields:. Please note that when you create your own databases and
tables, it's wise to plan them out carefully to allow for growth - this
exercise is only meant to help you to familiarize with basic
php/MySQL/phpMyAdmin functions.
After you click Go a screen similar to the following should appear. Notice
that the table title will now also appear under the database name in the
left hand navigation frame.
We now need to enter the names and attributes of our table fields. Enter
the following information:
Field
id
name
Type
int
char
Length
6
100
telephone char
date
char
50
50
Now the table is now created. You'll notice that the corresponding SQL
command for creating these fields is also displayed. While you don't really
need to know this for the purposes of this exercise, it doesn't hurt to get
Simply type in details for each of the fields for this record. As the "id"
column was specified to automatically increment, you will not need to
enter a number. This number will be unique, no other record will have it
and it will be added once the record is saved.
If you ever get lost while getting familiar with phpMyAdmin navigation,
simply click "Home" in the left hand nav bar and start again.
After you click Save, the record is saved to the details table, and the
previous window we saw reappears with the SQL command for the insert.
Once you've entered a number of records into the table, you can review
the records by clicking on the Browse tab. You can also select individual
records for editing or deleting.
Once your database starts growing and you don't wish to flick through
pages and pages of records, you can utilize the Select tab to refine
displays.
Backing up your database
Click on your database name in the left hand navigation bar
- Click on EXPORT (top tab)
- Highlight the table/s you want to back up
You can select the whichever option is useful for your under export .If you
want save as file enter the file name and if you want use compression
select the available option for this.