0
MySQL installation paula email:  [email_address] C.H. email:  [email_address]
Where can I download DBMS software? <ul><li>MySQL (suggested) </li></ul><ul><ul><li>MySQL 5.1 — Release Candidate release ...
Installation steps <ul><li>Choose a setup type </li></ul>
Installation steps <ul><li>Configure your server </li></ul>
Configuration steps <ul><li>Choose Standard Configuration </li></ul>
Configuration steps
Configuration steps <ul><li>Set your root password </li></ul>
Configuration steps <ul><li>Execute the configuration </li></ul>
Simple test <ul><li>Open program   MySQL   MySQL Server 5.1    MySQL Command Line Client  </li></ul><ul><li>Enter the r...
MySQL References <ul><li>A very welcome platform compatible with PHP, Perl, C, Java, etc. </li></ul><ul><li>Lots of online...
MySQL Tutorials <ul><li>http://dev.mysql.com/doc/ </li></ul><ul><li>http://twpug.net/docs/mysql323/manual_Tutorial.html   ...
Examples in Mac OS <ul><li>Starting the MySQL server </li></ul><ul><ul><li>sudo /Library/StartupItems/MySQLCOM/MySQLCOM st...
Examples in Mac OS (cont.) <ul><li>create table Students (sid char(20), name char(20), login char(10), age integer, gpa re...
Upcoming SlideShare
Loading in...5
×

ppt

538

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
538
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
4
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "ppt"

  1. 1. MySQL installation paula email: [email_address] C.H. email: [email_address]
  2. 2. Where can I download DBMS software? <ul><li>MySQL (suggested) </li></ul><ul><ul><li>MySQL 5.1 — Release Candidate release </li></ul></ul><ul><ul><li>MySQL 6.0 — Alpha </li></ul></ul><ul><li>Microsoft Access </li></ul><ul><ul><li>Download with NTU ip from NTU C&INC: https://oper.cc.ntu.edu.tw/download/ </li></ul></ul><ul><ul><li>VPN(for user not in NTU campus): http://ccnet.ntu.edu.tw/vpn/install.html </li></ul></ul><ul><ul><li>But the SQL interpreter in ACCESS is not quite the same as the one described in the textbook. You have to try different ways if your queries do not function well. </li></ul></ul>
  3. 3. Installation steps <ul><li>Choose a setup type </li></ul>
  4. 4. Installation steps <ul><li>Configure your server </li></ul>
  5. 5. Configuration steps <ul><li>Choose Standard Configuration </li></ul>
  6. 6. Configuration steps
  7. 7. Configuration steps <ul><li>Set your root password </li></ul>
  8. 8. Configuration steps <ul><li>Execute the configuration </li></ul>
  9. 9. Simple test <ul><li>Open program  MySQL  MySQL Server 5.1  MySQL Command Line Client </li></ul><ul><li>Enter the root password you set before </li></ul><ul><li>Key in some simple instructions </li></ul><ul><ul><li>Check mysql version  mysql> select version(); </li></ul></ul><ul><ul><li>Check time  mysql > select now(); </li></ul></ul><ul><ul><li>Select your database  mysql> use mysql; </li></ul></ul><ul><li>If the above instructions work, the installation is completed. </li></ul><ul><li>If you want to leave  mysql> exit </li></ul>
  10. 10. MySQL References <ul><li>A very welcome platform compatible with PHP, Perl, C, Java, etc. </li></ul><ul><li>Lots of online tutorials and documents </li></ul><ul><li>Or, seek a hardcopy </li></ul><ul><ul><li>“ MySQL Cookbook,” Dubois, O’Reilly </li></ul></ul><ul><ul><ul><li>also available in Google Library </li></ul></ul></ul>
  11. 11. MySQL Tutorials <ul><li>http://dev.mysql.com/doc/ </li></ul><ul><li>http://twpug.net/docs/mysql323/manual_Tutorial.html (in Chinese) </li></ul>
  12. 12. Examples in Mac OS <ul><li>Starting the MySQL server </li></ul><ul><ul><li>sudo /Library/StartupItems/MySQLCOM/MySQLCOM start </li></ul></ul><ul><li>Starting MySQL command line (client) </li></ul><ul><ul><li>/usr/local/mysql/bin/mysql -u root </li></ul></ul><ul><ul><li>No password for the root (default) </li></ul></ul><ul><li>Testing SQL commands </li></ul><ul><ul><li>select now(); </li></ul></ul><ul><ul><li>select version(); </li></ul></ul><ul><li>Creating a new database </li></ul><ul><ul><li>create database lecture </li></ul></ul><ul><li>Using the database </li></ul><ul><ul><li>use lecture; </li></ul></ul>
  13. 13. Examples in Mac OS (cont.) <ul><li>create table Students (sid char(20), name char(20), login char(10), age integer, gpa real); </li></ul><ul><li>select * from Students; </li></ul><ul><li>insert into Students (sid, name, login, age, gpa) values ('53688', 'Smith', 'smith@cs', 18, 3.2); </li></ul><ul><li>alter table Students add dept char(20); </li></ul><ul><li>update Students S set S.dept = 'CS' where S.sid = 53688; </li></ul><ul><li>insert into Students (sid, name, login, age, gpa, dept) values ('53666', 'Jones', 'jones@cs', 19, 3.3, 'EE'); </li></ul><ul><li>select name, age from Students where age=18; </li></ul><ul><li>drop table Students; </li></ul>
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×