MySQL Working on Turing.

Slides:



Advertisements
Similar presentations
MySQL. To start go to Login details: login: labuser password:macimd15 – There.
Advertisements

Virtual training week 4 structured query language (SQL)
May 26, 2005MySQL Tutorial - 11 MySQL Tutorial 1 – How to Use MySQL CSCI 2140 TA: Jiye Li May 26, 2005
Let’s try Oracle. Accessing Oracle The Oracle system, like the SQL Server system, is client / server. For SQL Server, –the client is the Query Analyser.
Introduction to Structured Query Language (SQL)
Using Relational Databases and SQL Steven Emory Department of Computer Science California State University, Los Angeles Laboratory 1: Introduction to Relational.
30-Jun-15 SQL A Brief Introduction. SQL SQL is Structured Query Language Some people pronounce SQL as “sequel” Other people insist that only “ess-cue-ell”
Database Management System LICT 3011 Eyad H. Elshami.
Your Oracle Account UserName is the same as your UWP username Followed Not case sensitive Initial Password: UWPstudent Password is case sensitive.
1Computer Sciences Department Princess Nourah bint Abdulrahman University.
Session 5: Working with MySQL iNET Academy Open Source Web Development.
Chapter 5 Introduction to SQL. Structured Query Language = the “programming language” for relational databases SQL is a nonprocedural language = the user.
PHP Programming with MySQL Slide 8-1 CHAPTER 8 Working with Databases and MySQL.
MS Access Database Connection. Database? A database is a program that stores data and records in a structured and queryable format. The tools that are.
Chapter 7 Working with Databases and MySQL PHP Programming with MySQL 2 nd Edition.
Chapter 7 Working with Databases and MySQL PHP Programming with MySQL 2 nd Edition.
CS 3630 Database Design and Implementation. Your Oracle Account UserName is the same as your UWP username Followed Not case sensitive Initial.
CHAPTER:14 Simple Queries in SQL Prepared By Prepared By : VINAY ALEXANDER ( विनय अलेक्सजेंड़र ) PGT(CS),KV JHAGRAKHAND.
15/10/20151 PHP & MySQL 'Slide materials are based on W3Schools PHP tutorial, 'PHP website 'MySQL website.
PHP MySQL Introduction. MySQL is the most popular open-source database system. What is MySQL? MySQL is a database. The data in MySQL is stored in database.
MySQL Databases & PHP Integration Using PHP to write data to, and retrieve data from, a MySQL database.
Structure Query Language SQL. Database Terminology Employee ID 3 3 Last name Small First name Tony 5 5 Smith James
SQL Basics. 5/27/2016Chapter 32 of 19 Naming SQL commands are NOT case sensitive SQL commands are NOT case sensitive But user identifier names ARE case.
Chapter 5 MYSQL Database. Introduction to MYSQL MySQL is the world's most popular open-source database. Open source means that the source code, the programming.
Intro to DatabasesClass 4 SQL REVIEW To talk to the database, you have to use SQL SQL is used by many databases, not just MySQL. SQL stands for Structured.
Database Systems Design, Implementation, and Management Coronel | Morris 11e ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or.
Instructor User Student User Course Registration Form (#8) Grade report (#14)Class list (#13) Grade Entry Form (#10)
What’s a database? Data stored in a structured format that lends itself to easy manipulation and recall.
Prince Sultan University Dept. of Computer & Information Sciences CS 340 Introduction to Database Systems.
Database Fundamental & Design by A.Surasit Samaisut Copyrights : All Rights Reserved.
ITEC 3220A Using and Designing Database Systems Instructor: Prof. Z. Yang Course Website: 3220a.htm
Starting with Oracle SQL Plus. Today in the lab… Connect to SQL Plus – your schema. Set up two tables. Find the tables in the catalog. Insert four rows.
LM 5 Introduction to SQL MISM 4135 Instructor: Dr. Lei Li.
Software-Projekt 2008 Seminarvortrag“Short tutorial of MySql“ Wei Chen Verena Honsel.
PuTTY Introduction to Web Programming Kirkwood Continuing Education by Fred McClurg © Copyright 2016, All Rights Reserved ssh client.
Marketing Analytics: Database Query with MySQL Disclaimer: All logos, photos, etc. used in this presentation are the property of their respective copyright.
 MySQL is a database system used on the web  MySQL is a database system that runs on a server  MySQL is ideal for both small and large applications.
Dept. of Computer & Information Sciences
3 A Guide to MySQL.
CHAPTER 7 DATABASE ACCESS THROUGH WEB
CS 3630 Database Design and Implementation
Chapter 5 Introduction to SQL.
CS320 Web and Internet Programming SQL and MySQL
Using iLocker.
Open Source Server Side Scripting Permissions & Users
Database application MySQL Database and PhpMyAdmin
mysql and mysql workbench
PHP + MySQL Commands Refresher.
Using SQL Server through Command Prompt
Chapter 4 MS ACCESS DATABASE.
CS1222 Using Relational Databases and SQL
Bomgar Remote support software
MS Access Database Connection
Chapter 7 Working with Databases and MySQL
Chapter 8 Working with Databases and MySQL
CS1222 Using Relational Databases and SQL
SQL, Data Storage Technologies, and Web-Data Integration
Database Management System
Chapter 2: Creating And Modifying Database Tables
CS1222 Using Relational Databases and SQL
CS1222 Using Relational Databases and SQL
CS3220 Web and Internet Programming SQL and MySQL
Chapter # 7 Introduction to Structured Query Language (SQL) Part I.
MySQL Database System Installation Overview SQL summary
CS3220 Web and Internet Programming SQL and MySQL
CS1222 Using Relational Databases and SQL
MySQL Database System Installation Overview SQL summary
Wings 2.0 Business Flow Reference
CS1222 Using Relational Databases and SQL
Presentation transcript:

MySQL Working on Turing

Login to SSH  Log on to turing.csce.uark.edu using your UARK username and password.  Those who don't have the SSH client, can download that from university's IT site at http://software.uark.edu.

Connecting to turing Enter host name as ‘ turing.csce.uark.edu’ , user name and leave the rest as it is. Host name – turing.csce.uark.edu User name- <UARK_username>

Enter your UARK password It will login to turing through SSH.

Login Screen of turing After entering password

MySQL Login Screen Type ‘ mysql -u user_name -p ‘ EX: mysql –u rsahu -p Enter your mysql password (in file .my.cnf in ~username)

Login Prompt Screen of MySQL

How to change MySQL password Users can have their own customized password to login to mysql After login to mysql, user should choose database then change the password of mysql that is prompted when user types mysql –u user_name –p Change database mysql> USE user_name; Update password mysql> SET PASSWORD FOR ‘USER_NAME’@’localhost’ =PASSWORD (‘NEW_PASSWORD’); Example: SET PASSWORD FOR ‘rsahu’@’localhost’ = PASSWORD(‘TYPE_ANY_PASSWORD’);

Change database mysql> USE rsahu; 2. Change password mysql> SET PASSWORD FOR ‘rsahu’@’localhost’ = PASSWORD (‘NEW_PASSWORD’); Users should write their own password in NEW_PASSWORD.

Operations on Table Before creating any table in mysql, you should choose the database. [ here you can only use the existing database, which is under user’s UARK user_name] mysql> USE <uark_username> ; For ex: mysql> use rsahu; It will print a message saying “Database Changed” DDL Commands: CREATE, RENAME, DROP

Create Table Mysql> CREATE TABLE table_name (columnname datatype[constraint [constraint name]]….); EX: CREATE TABLE Test1 (Test_Id Integer Primary Key, Test_name Char(5));

Inserting Values Into Table If column list is present, the values to be inserted must match the number of type of the columns listed. If column list is not given, values for all the columns must be provided and it must match the column types. mysql> INSERT INTO table_name VALUES (column1_value, column2_value, …. ); mysql> INSERT INTO Test1 VALUES ( 1, ‘EX1’);

Displaying Contents of Table To display all tuples of the table mysql> SELECT * FROM table_name; EX: SELECT * FROM Test1;

To display certain distinct tuples mysql> SELECT [DISTINCT] columnlist FROM tablename(s) [WHERE condition]; EX: SELECT * FROM Test1 WHERE Test_Id= 1;

Renaming the Table mysql> RENAME TABLE tablename TO new-tablename; EX: RENAME TABLE Test1 TO Test_1;

Delete Table Even though users delete the table, the schema would be there. mysql> DELETE FROM tablename [WHERE condition]; EX: DELETE FROM Test_1 WHERE Test_Id = 1;

Delete To completely delete all the entries to the table; however, it will keep the schema. Mysql> DELETE FROM table_name; EX: DELETE FROM Test_1;

To show the schema of Table mysql> SHOW COLUMNS FROM table_name; Or mysql> DESC table_name; EX: SHOW COLUMNS FROM Test_1; DESC Test_1;

DROP To completely delete the table from database, users can use ‘DROP’ command. Mysql> DROP TABLE table_name; EX: DROP TABLE Test_1;

Show Tables in Database To show all the existing tables in a database mysql> SHOW TABLES;

Log Out of MySQL and SSH Type two time ‘ exit ‘ , it will log out of mysql and ssh. You can close SSH choosing ‘exit’ button in file appears at the top-left most of SSH screen. Every command in mysql should be end with a semicolon (;) . MySQl is not case-sensitive for its command keywords; however, it is case sensitive for its variables. For ex: variables like Table name, Column Name etc are case sensitive. Whereas, keywords like SELECT, create etc are not case sensitive.