Installing and Using MySQL and phpMyAdmin. Last Time... Installing Apache server Installing PHP Running basic PHP scripts on the server Not necessary.

Slides:



Advertisements
Similar presentations
PHP II Interacting with Database Data. The whole idea of a database-driven website is to enable the content of the site to reside in a database, and to.
Advertisements

Query Methods (SQL). What is SQL A programming language for databases. SQL (structured Query Language) It allows you add, edit, delete and run queries.
Creating a new Lions e-Clubhouse Web site Lions e-Clubhouse Application LionWAP.org/eclub/application.php.
Install WordPress with Xampp. By With Thanks to: Rupesh Kumar.
1 Configuring Web services (Week 15, Monday 4/17/2006) © Abdou Illia, Spring 2006.
Creating WordPress Websites. Creating a site on your computer Local server Local WordPress installation Setting Up Dreamweaver.
Using Relational Databases and SQL Steven Emory Department of Computer Science California State University, Los Angeles Laboratory 1: Introduction to Relational.
Dynamic Web site With PHP and MySQL. MySQL The combination of MySQL database and PHP scripting language is optimum for building dynamic websites. MySQL.
What is Dropbox ?– Dropbox is a file storage site which gives you an easy way to save your documents, files, and presentations online and access them from.
TUTORIAL (1) Software installation Written by: Eng. Ahmed Mohamed Abdel Ghafar, Edited by Eng. Muhammed Hammad, Eng. Hamdy Soltan & Eng. Osama Talaat.
Open Source Software WampServer Presented By Mr. R.Aravindhan.
E-Commerce LAB#1 Samia alblwi1E-Commerce ( IS412) 2011.
Microsoft Windows 2003 Server. Client/Server Environment Many client computers connect to a server.
Lecture 3 – Data Storage with XML+AJAX and MySQL+socket.io
1Computer Sciences Department Princess Nourah bint Abdulrahman University.
1 Working with MS SQL Server. 2 Objectives You will be able to Use Visual Studio for GUI based interactive access to a Microsoft SQL Server database.
CSCI 6962: Server-side Design and Programming
Session 5: Working with MySQL iNET Academy Open Source Web Development.
G053 - Lecture 17 Making Forms Work Mr C Johnston ICT Teacher
Web Application Development. Tools to create a simple web- editable database QSEE MySQL (or PHPMyAdmin) PHP TableEditor.
MySQL + PHP.  Introduction Before you actually start building your database scripts, you must have a database to place information into and read it from.
Web Based Inventory Site Building Room Asset Number Category Type Description Serial Number Manufacturer Model Vendor Name Acquired Date P O Number Budget.
1 MySQL and phpMyAdmin. 2 Navigate to and log on (username: pmadmin)
© 2003 By Default! A Free sample background from Slide 1 Week 2  Free PHP Hosting Setup  PHP Backend  Backend Security 
Web Server Administration Chapter 7 Installing and Testing a Programming Environment.
Website Development & Management Getting Started with Databases Instructor: John Seydel, Ph.D. CIT Fall
1 Working with MS SQL Server Textbook Chapter 14.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 Working with MSSQL Server Code:G0-C# Version: 1.0 Author: Pham Trung Hai CTD.
Client – Server Application Can you create a client server application: The server will be running as a service: does not have a GUI The server will run.
Web Scripting [PHP] CIS166AE Wednesdays 6:00pm – 9:50pm Rob Loy.
Open Source Server Side Scripting ECA 236 Open Source Server Side Scripting Installation and Testing.
SYST Web Technologies SYST Web Technologies Databases & MySQL.
Database: SQL and MySQL
Go to your school’s web locker site school name.schoolweblockers.com) Your user name is the first letter of your first name, the first 4.
Web Scripting [PHP] CIS166AE Wednesdays 6:00pm – 9:50pm Rob Loy.
ASP.NET The Clock Project. The ASP.NET Clock Project The ASP.NET Clock Project is the topic of Chapter 23. By completing the clock project, you will learn.
CLEW Basics Lorie Stolarchuk Learning Technology Trainer Centre for Teaching and Learning 1.
WAMP Windows Apache MySQL and PHP i.e. “WAMP”. Why WAMP? WampServer is a Windows web development environment. It allows you to create and test web pages.
NMD202 Web Scripting Week5. What we will cover today PHP & MySQL Displaying Dynamic Pages Exercises Modifying Data PHP Exercises Assignment 1.
Creating a simple database This shows you how to set up a database using PHPMyAdmin (installed with WAMP)
Apache, MySQL and PHP Installation and Configuration Chapter 2 MySQL Installation and Configuration.
MySQL Getting Started BCIS 3680 Enterprise Programming.
WAMP Server Installatin Shiyun Wen. WAMP Server Installation  WAMP Server is an integrated installation of Apache, MySQL, and PHP for Windows. Following.
Setting up Dreamweaver to use your local WAMP testing Server
Unit 1 – Web Concepts Instructor: Brent Presley.
Class 3Intro to Databases Class 4 Simple Example of a Database We’re going to build a simple example of a database, which will allow us to register users.
Steps to Install VirtueMart 1. Setup Database 2. Download VirtueMart 3. Setup VirtueMart 4. Test installation Prerequisites: 1. XAMPP installation complete.
MySQL MySQL and PHP – interacting with a database.
HINDU STYLE PORTFOLIO TEMPLATE
Intro to APACHE, MySQL, and PHP & freely available (hackable) Packages Aonghus Sugrue 04 Oct 2012.
VB.NET and Databases. ADO.NET VB.Net allows you many ways to connect to a database. The technology used to interact with a database or data source is.
1 Working with MS SQL Server Beginning ASP.NET in C# and VB Chapter 12.
This is the software we will use to load our html page up to the server. You can download a copy for home if you want to.
Programming for the Web MySQL Command Line Using PHP with MySQL Dónal Mulligan BSc MA
MySQL Getting Started BCIS 3680 Enterprise Programming.
Software-Projekt 2008 Seminarvortrag“Short tutorial of MySql“ Wei Chen Verena Honsel.
1.Switch on the computer and wait for loading. 2.Select the Windows 7 OS at the end of the list. 3.Click on the link ‘Administrator’ 4.Enter the administrator.
Installing a Moodle Test Site The painless and easy way.
Building Your Own Website Using:. Install & configure LAMP. Download WordPress and run it as a local website on your Raspberry Pi. Configure WordPress.
1.Switch on the computer and wait for loading. 2.Select the Windows 7 OS at the end of the list. 3.Click on the link ‘Administrator’ 4.Enter the administrator.
Wordpress. What is Wordpress? Wordpress is a content management system. It is free and easy to use. It allows you to build dynamic websites It is built.
COM621: Advanced Interactive Web Development Lecture 10 PHP and MySQL.
Migrating Wordpress Migrating Wordpress can sometimes get more complicated as it should. There is no plugin that does this for you, the best way is to.
Intro to WordPress (Using XAMPP)
Web Design and Development
Database application MySQL Database and PhpMyAdmin
Easy Way to Reset WordPress Admin Password on Localhost? Guided By: WPGLOBALSUPPORTWPGLOBALSUPPORT.
Step by step instructions to Add an Admin User in WordPress utilizing FTP Guided By: - WPGLOBALSUPPORTWPGLOBALSUPPORT.
ISC440: Web Programming 2 Server-side Scripting PHP 3
Presentation transcript:

Installing and Using MySQL and phpMyAdmin

Last Time... Installing Apache server Installing PHP Running basic PHP scripts on the server Not necessary to have Apache and PHP working to understand this webcast, but we will be putting everything together next week!

Today... Installing MySQL server on your computer (easy!) Installing phpMyAdmin (not quite as easy, but still not too bad) All about MySQL queries

Download and Install MySQL Get an msi installer from this page: “Standard installation” with default settings should work just fine. Be sure to remember your password!

Command Line Client Open the Command Line Client. Try typing the command “show databases.” This is what you’ll see:

Creating a Database Make up a name for your first database and try the command “create database databasename.”

Creating a Table Type “use databasename;” to switch to your database. Use the command “create table tablename (fields)” to make a table in your database. To make an integer field, say “fieldname integer” in the parentheses. To make a text field, say “fieldname char(20)” (this makes a field where the maximum number of characters is 20- you can make a different limit if you’d like).

Adding Data Use the command “insert into tablename (fieldnames) values (values)” to add data to the table. Use ‘single quotes’ around text. You can add multiple entries at a time (see the example below).

Retrieving Data Type “select fieldname from tablename” to see the information in the table. Use a comma-separated list to view multiple columns in the table. Use a * to see all columns.

Using “where” (as well as “and”, “or”, “not”)

Delete “Delete” works just like “select.” Use with caution.

Multiple Tables You can create many tables within the same database. A common practice is to use ID numbers to reference information from other tables.

Multiple Tables You can create many tables within the same database. A common practice is to use ID numbers to reference information from other tables.

Join Queries Queries can use more than one table. The first query shows which names are paired with which books. “select addresses.name, books.book from addresses, books where addresses.ID = books.person;” Challenge: write a query that picks out the addresses of people who like Lord of the Rings.

More Examples Try to write queries to display the following information: - One column: just all the addresses - Two columns: names and corresponding favorite bands - One column: people who liked The Beatles also liked which books?

Installing phpMyAdmin phpMyAdmin provides a useful GUI so we don’t have to use the command line all the time Download phpMyAdmin at wnloads.php Extract the files into a folder named “phpMyAdmin” in your Apache server folder

Before editing config file... Go to localhost/phpmadmin/index.php You should see the phpMyAdmin login page, but with error messages. You might not be able to login yet.

Editing the Config File Find config.sample.inc.php in your phpMyAdmin folder. Find the line that says $cfg['blowfish_secret'] = ''; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */ Put any word you want into the quotes, (i.e. $cfg['blowfish_secret'] = ‘caddywhompus’

Some Housekeeping Add the Multi-Byte String and Mcrypt extensions to PHP if you haven’t already. –To do this, go to Control Panel -> Uninstall Programs, select PHP, and click “Change.” The PHP installation wizard will come up. Select the Multi-Byte String and Mcrypt extensions this time. Copy the file libmcrypt.dll to the Windows\System32 directory Restart Windows

Logging in Now go back to localhost/phpMyAdmin/index.php You should be able to login using username ‘root’ and the password you made when you installed MySQL. If you have problems on a Windows OS earlier than Windows 7, this site might help: phpMyAdmin-on-Your-Windows-PC

phpMyAdmin Features Create a Table

Add data

Browse

Search

Any Query

So Why Learn About the Command Line? In some cases, using the command line is faster We need to know how to write MySQL queries in order to make webpages that interact with our MySQL database.

Suggestions for this week: –Install MySQL and phpMyAdmin –Play around with making databases Next Time: –HTML and PHP code we need to make the database work with our website

Useful Links MySQL download: phpMyAdmin download: mySQL command line commands: Getting phpMyAdmin to work on Windows: phpMyAdmin-on-Your-Windows-PC