MySQL Getting Started BCIS 3680 Enterprise Programming.

Slides:



Advertisements
Similar presentations
WebLessons E-learning System Teacher Training. Getting Started Sign In Teacher Home.
Advertisements

FILEMAKER SERVER SOFTWARE & REMOTE ADMINISTRATION
MySQL Installation Guide. MySQL Downloading MySQL Installer.
Presentation Heading – font Arial
Using CD-R and CD-RW media to backup SIGNZ data. Step One … a bit of preparation.
Web Application Server Apache Tomcat Downloading and Deployment Guide.
Welcome to Keyboarding Pro DELUXE ® Get Started Get Started Create Your Student Record Create Your Student Record The Main Menu The Main Menu Send Files.
Lesson One: The Beginning Chapter 2: Processing Learning Processing Daniel Shiffman Presentation by Donald W. Smith Graphics from built-in help reference.
CIS 240 Introduction to UNIX Instructor: Sue Sampson.
1 Configuring Web services (Week 15, Monday 4/17/2006) © Abdou Illia, Spring 2006.
Using Relational Databases and SQL Steven Emory Department of Computer Science California State University, Los Angeles Laboratory 1: Introduction to Relational.
Downloading and Installing AutoCAD Architecture 2015 This is a 4 step process 1.Register with the Autodesk Student Community 2.Downloading the software.
Installing geant4 v9.5 using Windows Daniel Brandt, 06 April 2012 Installing Geant4 v9.5 for Windows A step-by-step guide for Windows XP/Vista/7 using.
SETUP AND CONFIGURATIONS WEBLOGIC SERVER. 1.Weblogic Installation 2.Creating domain through configuration wizard 3.Creating domain using existing template.
Command Console Tutorial BCIS 3680 Enterprise Programming.
File sharing. Connect the two win 7 systems with LAN card Open the network.
Ch 9 Managing Active Directory User Accounts. Objectives Create Organizational Unit Creating User Accounts in Active Directory Disabling, Enabling, and.
MBAC 611.  We have been using MS Access to query and modify our databases.  MS Access provides a GUI (Graphical User Interface) that hides much of the.
1 Mapping a Drive on the USF IIS Server. 2 Mapping a Drive To map a drive to a network file directory in Windows you must be on a Microsoft local area.
E-Commerce LAB#1 Samia alblwi1E-Commerce ( IS412) 2011.
One to One instructions Installing and configuring samba on Ubuntu Linux to enable Linux to share files and documents with Windows XP.
Panorama High School E.G.P./ Training to Put Students’ Grades on the Website Wednesday, September 29,
Microsoft Office 2007 Access 2007 Chapter 9 Administering a Database System.
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.
MagicInfo Pro Server Software All control, content, and scheduling is performed within the MagicInfo Pro Server software previously installed. Before.
Project 3 File, Document, Folder Management, Windows XP Explorer Windows XP Service Pack 2 Edition Comprehensive Concepts and Techniques.
Chapter 14: Remote Server Administration BAI617. Chapter Topics Configure Windows Server 2008 R2 servers for remote administration Remotely connect to.
bWAPP – Bee Bug – Installation
How to Backup FNC Files to Corporate Network Using Windows XP Created By: Ricardo G. Mesa, Systems Administrator Date: January 17, 2006.
With Windows XP, you can share files and documents with other users on your computer and with other users on a network. There is a new user interface.
Environmental Studies Department – Internship Web Site Instructions Dean Berman 5/21/2005.
Creating a Web Site to Gather Data and Conduct Research.
Welcome to Keyboarding Pro DELUXE ® Get Started Get Started Create Your Student Record Create Your Student Record The Main Menu The Main Menu Send Files.
Fall 2011 Nassau Community College ITE153 – Operating Systems Session 23 Shared Folders 1.
1 Installation When this module is complete, you will be able to:  Set a static IP address for your laptop  Install the snom ONE software  Navigate.
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.
Tomcat Setup BCIS 3680 Enterprise Programming. Getting Web Apps to Work  Verify that Tomcat works.  Understand how context works.  Create folders/files.
Basic Setup Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
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.
Introduction to Engineering MATLAB – 6 Script Files - 1 Agenda Script files.
HTML Concepts and Techniques Fourth Edition Project 7 Creating a Form on a Web Page.
Installing and Using MySQL and phpMyAdmin. Last Time... Installing Apache server Installing PHP Running basic PHP scripts on the server Not necessary.
Booting Ubuntu Linux Live CSCI 130 – Fall 2008 Action Lab Dr. W. Jones.
Session Objectives • Login to PeopleSoft Test Framework(PTF)
Configuring Sourceforge’s CVS to work with Forte (3.0 or later) on WindowsNT and Windows 2000 Specific for MAExplorer.sourceforge.net Written by Eric Shen,
Microsoft Access 2010 Chapter 10 Administering a Database System.
Unit 5 Microsoft SQL Server and MySQL. Key Concepts DBMS variations SQL Server features SQL Server Management Studio MySQL features Scripts Queries Database.
Dr. Gina Green Class Setup.
Guide to MCSE , Enhanced 1 Activity 3-1: Reviewing User Account Properties Objective is to review properties of user accounts through main tabs of.
Installing MySQL BCIS 3680 Enterprise Programming.
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 7 1 Microsoft Office FrontPage 2003 Tutorial 8 – Integrating a Database with a FrontPage.
HTML Concepts and Techniques Fifth Edition Chapter 4 Creating Tables in a Web Site.
Database Access Using JDBC BCIS 3680 Enterprise Programming.
How to Fix Binkw32.dll Error
1 Mapping a Drive on a USF IIS Server. 2 Mapping a Drive To map a drive to a network file directory in Windows you must be on a Microsoft local area network,
Virtual Machines Module 2. Objectives Define virtual machine Define common terminology Identify advantages and disadvantages Determine what software is.
Tomcat Setup BCIS 3680 Enterprise Programming. One-Click Tomcat Setup 2  This semester we’ll try to set up Tomcat with a PowerShell script.  Preparation.
Settings MySQL Database and JDBC configuration Instructor: Sergey Goldman.
Active-HDL Server Farm Course 11. All materials updated on: September 30, 2004 Outline 1.Introduction 2.Advantages 3.Requirements 4.Installation 5.Architecture.
INTERNET APPLICATIONS CPIT405 Install a web server and analyze packets.
1 Lesson 9 Windows Management Computer Literacy BASICS: A Comprehensive Guide to IC 3, 3 rd Edition Morrison / Wells.
MySQL Getting Started BCIS 3680 Enterprise Programming.
Installing a Moodle Test Site The painless and easy way.
Backup and Restore on the ALSMS Server Configuration Example Alcatel-Lucent Security Products Configuration Example Series.
MySQL Installation Tarik Booker CS 122.
SQL and SQL*Plus Interaction
INSTALLING AND SETTING UP APACHE2 IN A LINUX ENVIRONMENT
Setting up home folders and roaming profiles
Presentation transcript:

MySQL Getting Started BCIS 3680 Enterprise Programming

Quick Verification  Run mysqlshow –u root –p  Enter the password when prompted.  If you can see a listing of the databases that come with MySQL, your installation is good. 2

Another Fast Check  List the tables in the included “mysql” DB by running: mysqlshow mysql –u root –p 3

Now You’re Ready to Go! 4  To get out of MySQL, type “exit” at the MySQL prompt and then press Enter.

Making Your Data Files Portable  If you want share the same database files between VM and home computers (or between multiple computers you own), you need to do the following:  Copy the default data folders to your USB drive.  Change MySQL’s database directory (the datadir setting) to the one on your USB drive.  MySQL runs just fine from its default datadir. However, whether you are using the default or not, you should be able to locate and change your database folder. 5

Making Your Data Files Portable  Browse to the default database folder of MySQL.  Right-click the data subfolder and select “Copy” (do not open the folder).  You may need to change your Windows Explorer setting to show hidden files and folders. 6 Right-click and select “Copy” We will come back and edit this file later.

Default DB Folder 7  Windows 8 & Windows 7 C:\ProgramData\MySQL\MySQL Server 5.6\data  C:\programData is a hidden folder. Change the Windows Explorer setting to show hidden folders and files.  Windows Vista C:\Users\All Users\MySQL\MySQL Server 5.6\data  Windows XP C:\Documents and Settings\All Users\Application Data\MySQL\MySQL Server 5.6\data  C:\Documents and Settings\All Users\Application Data is a hidden folder. Change the Windows Explorer setting to show hidden folders and files.

Duplicating DB Folder  On your USB drive, create a folder called BCIS3680 (if you are currently using a folder of this name for you JSPs, then use a different folder, such as BCIS3680DB ).  Open BCIS3680.  Right-click and select “Paste”.  Now you have copied the data directory from the default location to your USB drive. 8

Start Console with Admin Rights 9 As with Tomcat, start a command console with administrator rights if you use Windows Vista or higher

Start Console with Admin Rights 10

Changing MySQL Default Data Folder  Run net stop mysql  Wait until you see the message saying that the service was stopped successfully. 11

Editing my.ini  At the same level of the \data subfolder, find the file by the name my.ini.  Start Notepad with admin rights or Notepad++ to edit it. 12 Do not double-click. Instead, open Notepad with administrator rights. Then, inside Notepad, click File | Open. Browse to and open this file.

Start NotePad with Admin Rights 13 Again, open Notepad with administrator rights if you use Windows Vista or higher

Start NotePad with Admin Rights 14

Editing my.ini  Open the my.ini file and scroll down to find the [mysqld] section.  Find the line starting with datadir="C:/Documents…  Add a # sign at the very beginning of that line to “comment it out”.  Below that line, add a new line that says: datadir="E:/BCIS3680/data/"  This should be the path to the folder you used in Slide #5, so make changes if your folder is different from the above example.  Use forward slashes instead of backward slashes.  Don’t modify anything else in that file! If you think you have done so by mistake, close it without saving and start over again. 15

Edited my.ini  Once you’re done, save the file and close the window. 16

Restarting MySQL Server  Run net start mysql  Wait until you see the message saying that the service was started successfully. 17

Verifying Change of datadir  Run mysql –u root –p  If you work on a lab computer, when prompted, enter bcis3680 (or whatever password you set) as your password.  You should be able to log in as the root user. 18

Verifying Change of datadir  Run show variables like 'datadir';  If you see E:\BCIS3680\data\ in the value column (note that in the example it’s C:\data\ ), then you have successfully changed the database directory for the current session to the folder on your USB drive. 19

Log in to MySQL  Run mysql –u root –p to log in  -u option for username  -p will enter password  Run use ; to select the database you want to work with.  To log out, type either  \q  exit  Quit or  press Ctrl + C 20

MySQL Commands  A MySQL command ends with a semicolon, except: quit, exit  In comparison, the net stop, net start, and mysql commands are Windows commands and appending semicolon to them would generate an error.  You may split a complex, long command over multiple lines. It will not run until you hit the ; key and then Enter.  For even more complex input of commands, you may group the commands into a script file. Then run source ; to execute the script. 21

The Forta Database  Download the forta scripts from the course site.  Use these scripts from my website instead of those from the author/publisher.  I modified the scripts so that the database so created can be accessed from both the lab and your home computers without problems.  Create a database called forta in MySQL.  Unzip and run the two scripts ( create.sql and populate.sql ) to create and populate tables in that database. 22

Create the Forta Database 23  Run create database forta; to create the forta DB.  Run show databases; to verify.

Run Script to Create Tables 24  Run use forta; to actually work on that DB.  Run source to create tables.

Run Populate Script to Add Data 25  Run source to populate the tables.  Now you will be able to follow along while reading the Forta book.

Display Names of Tables in DB 26  Run show tables; to show tables in the forta DB.