MYSQL and WAMP On LocalHost

Slides:



Advertisements
Similar presentations
PHP SQL. Connection code:- mysql_connect("server", "username", "password"); Connect to the Database Server with the authorised user and password. Eg $connect.
Advertisements

Installing Instant WordPress 1)Download Instant WordPress from the following location:- 2) Double Click on the downloaded.
Install WordPress with Xampp. By With Thanks to: Rupesh Kumar.
INTRODUCTION The Group WEB BROWSER FOR RELATION Goals.
Dynamic Web site With PHP and MySQL. MySQL The combination of MySQL database and PHP scripting language is optimum for building dynamic websites. MySQL.
Installation Guide to SOUL 2.0 Demo Version
Lecture 3 – Data Storage with XML+AJAX and MySQL+socket.io
1Computer Sciences Department Princess Nourah bint Abdulrahman University.
CSCI 6962: Server-side Design and Programming
Session 5: Working with MySQL iNET Academy Open Source Web Development.
INTERNET APPLICATION DEVELOPMENT For More visit:
Microsoft Azure Introduction ISYS 512. Microsoft Azure Microsoft Azure is a cloud.
Advanced Database Management System Lab no. 11. SQL Commands (for MySQL) –Update –Replace –Delete.
Mr. Justin “JET” Turner CSCI 3000 – Fall 2015 CRN Section A – TR 9:30-10:45 CRN – Section B – TR 5:30-6:45.
© 2003 By Default! A Free sample background from Slide 1 Week 2  Free PHP Hosting Setup  PHP Backend  Backend Security 
Credit Union National Association Installing and Uploading Project Zip Code.
MySQL. MySQL is a Relational Database Management System (RDBMS) that runs as a server providing multiuser access to a number of databases. A third party.
Ways to manage DB in MySQL cs346. Six ways to CREATE and INSERT INTO tables Modelocalremotelocalremotewindow WhereMysql console Putty; Mysql console Mysql.
Drinking Water Infrastructure Needs Survey and Assessment 2007 Website.
Downloading and Installing Autodesk Revit 2016
Present :Arezoo Mollahasani. Step 1  Define your server connection Open MySQL WorkBench and click New Server Instance on the right of the window.
Intro to MySQL 1. Open a browser and enter the following address: It should lead to a log in screen. If your name is.
Downloading and Installing Autodesk Inventor Professional 2015 This is a 4 step process 1.Register with the Autodesk Student Community 2.Downloading the.
DataFlow Diagram – Level 0
Creating a simple database This shows you how to set up a database using PHPMyAdmin (installed with WAMP)
Setting up Dreamweaver to use your local WAMP testing Server
PhpMyAdmin Matthew Walsh April 28, 2003 CMSC Shawn Sivy.
SQL SERVER 2008 Installation Guide A Step by Step Guide Prepared by Hassan Tariq.
If you have already login then click here. Enter your User ID & Password here.
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.
UST Connect – Learn how to set up your profile and upload a resume. UST Connect is managed by UST Career Services. (713)
Introduction to MySQL  Working with MySQL and MySQL Workbench.
Software-Projekt 2008 Seminarvortrag“Short tutorial of MySql“ Wei Chen Verena Honsel.
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.
MySQL and PHPMyAdmin 1. Make sure your MySQL service is running. If using XAMPP, open the control panel. If the button for MySQL says Start, click it.
COM621: Advanced Interactive Web Development Lecture 10 PHP and MySQL.
Marketing Analytics: Database Query with MySQL Disclaimer: All logos, photos, etc. used in this presentation are the property of their respective copyright.
Advantage16 Getting Started
Y.-H. Chen International College Ming-Chuan University Fall, 2004
DATA Export & IMPOrt Asbestos & Condition Appraisal Export & Import
CS320 Web and Internet Programming SQL and MySQL
D.Y.O. Web The new and easy way to create and maintain your own professional dynamic website.
Introduction to PHP and MySQL – Creating Database-Driven Websites
Install WordPress with Xampp
LMEvents SharePoint Portal How-to Guide
Introduction to Web programming
Web Design and Development
Database application MySQL Database and PhpMyAdmin
Bulk update E. Camelback Road #559, Phoenix, AZ Phone: Fax:
To login into the InfoReady system:
Contract Compliance: Search
MySQL Working on Turing.
MySQL and MyPHPAdmin.
MySQL and PHPMyAdmin.
StaffTrac By Educational Vistas, Inc.
Easy Way to Reset WordPress Admin Password on Localhost? Guided By: WPGLOBALSUPPORTWPGLOBALSUPPORT.
IS 220 Databases Fundamentals
Aqua Data Studio.
Web Systems Development (CSC-215)
Chapter 8 Working with Databases and MySQL
COP5725 DATABASE MANAGEMENT POSTGRESQL TUTORIAL
MySQL and PHPMyAdmin 1.
PHP and MySQL.
Faculty Attendance Tracker
Great Plains User Interface Training
Access: Access Basics Participation Project
Version: Macromedia Dreamweaver CS3 Updated: April 2008
CS3220 Web and Internet Programming SQL and MySQL
You will need to click the login button here
Grocery Store Outline csc242 – web programming.
Presentation transcript:

MYSQL and WAMP On LocalHost Creating a database MYSQL and WAMP On LocalHost

Open phpmyadmin Create a database

Add database name

Select the DB andCreate the table

Add the fields Click on structure and get ready to add these fields. TID – Integer, make the INDEX PRIMARY, make it autoincrement. T_LASTNAME—char 15 T_FIRSTNAME—char 10 T_Room—char 5 Set the DB engine to InnoDB

Add the fields to the table

The fields—Remember to change DB engine to InnoDB

Display of the structure

Click on the DATABASE testDB Add the name student to create that table

Add fields to STUDENT table SID – Integer, make the INDEX PRIMARY, make it autoincrement. S_LASTNAME—char 15 S_FIRSTNAME—char 10 S_Room—char 5 S_Advisor—INT, make it indexed. You need this to make the relation. Be sure you set the engine to InooDB

The student table structure

The final structure created

Add a connection We are going to create a link between the primary key TID in the teachers table and S_Advisor in the student table. You need to click on the student table. And you are going to click on the relation view. You will see the list of fields for the table. Go to the field S_Advisor. You are connect that field to the entries in the teacher table. You need to select the field teachers.TID and click on save.

The foreign key is in STUDENT. So open the student table structure.

The result from clicking on RELATION VIEW

Show the connection worked Now we are going to add some records to the teachers table. Then we will add records to the student table. You will see when we try to enter records for the S_Advisor, we get a drop down list of which has the entries from the teachers table.

Click on teachers table and select insert

Add the data and click go

To see results, click on browse

Add a few student records. Notice the drop-down arrow for advisor

We will look at how to tie the id numbers to the entries later in the semester. You can only add advisors from the list provided. See the results.

Student Table Records

Difference between downloaded mysql site and La Salle Sites

List of differences WAMP uses an Apache server. Your host is localhost. system uses IIS server. Your host is csc-srv1.lasalle.edu. It is remote.

Privileges On localhost, you are an administrator. You have all privileges, so you can create users and many databases. On csc-srv1.lasalle.edu, your privileges are limited. You are a user, so you need to login. You have a database you can view. It is NORTHWIND. You have a pre-defined database. The name is your login ID. You can only see your databases.

You can create many different databases on localhost. You are limited to creating only one on csc-srv1.lasalle.edu. For either, you can export the database both the structure and the data via SQL.

You can move a lasalle database to your home by exporting it, saving the exported SQL and then inserting it into the localhost. Try exporting NORTHWIND from lasalle to your home database. You can use this to test the feature. If you destroy the NORTHWIND at home, you can always rebuild it by reloading the SQL.

LA SALLE MYSQL To get to the lasalle version of mysql, you need to type the following link into your browser http://csc-srv1.lasalle.edu:8080/ You will get a login request. The ID is your portal ID. Your password is your student id.

Login Screen

Databases You have access to 3 databases here NORTHWIND One with your login ID Information_schema

What can I do From here you can Browse NORTHWIND or INFORMATION_SCHEMA Create tables and relations in yournameDB Add relations and records in yournameDB

Look at the differences What is easily visible here? What is the engine used for the tables? In LOCALHOST In csc-srv1.lasalle.edu

mysqlworkbench This tool allows you to see pictures of your tables and connections. There is a link in the website for you to download the tool. It is free ware. There is a PDF file that tells you how to connect it to your lasalle mysqldatabase. Each server database is called an instance. Try getting the tool to connect.

This tool is useful for showing the relations in your databases. You can also use the tool to build the database tables and connections. We will talk about that later this semester.

You should walk through this example and try to create these tables both on your localhost and in your database on the lasalle server. We will be working much more with this over the next few weeks.