1 / 13

MySQL installation

MySQL installation. paula email: paula@cmlab.csie.ntu.edu.tw C.H. email: pacifistboy@cmlab.csie.ntu.edu.tw. Where can I download DBMS software?. MySQL (suggested) MySQL 5.1 — Release Candidate release MySQL 6.0 — Alpha Microsoft Access

neci
Download Presentation

MySQL installation

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. MySQLinstallation paula email: paula@cmlab.csie.ntu.edu.tw C.H. email: pacifistboy@cmlab.csie.ntu.edu.tw

  2. Where can I download DBMS software? • MySQL (suggested) • MySQL 5.1 — Release Candidate release • MySQL 6.0 — Alpha • Microsoft Access • Download with NTU ip from NTU C&INC: https://oper.cc.ntu.edu.tw/download/ • VPN(for user not in NTU campus): http://ccnet.ntu.edu.tw/vpn/install.html • 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.

  3. Installation steps • Choose a setup type

  4. Installation steps • Configure your server

  5. Configuration steps • Choose Standard Configuration

  6. Configuration steps

  7. Configuration steps • Set your root password

  8. Configuration steps • Execute the configuration

  9. Simple test • Open programMySQL MySQL Server 5.1  MySQL Command Line Client • Enterthe root password you set before • Key in some simple instructions • Checkmysql version mysql> select version(); • Check timemysql > select now(); • Select your database mysql> use mysql; • If the above instructions work, the installation is completed. • If you want to leave mysql> exit

  10. MySQL References • A very welcome platform compatible with PHP, Perl, C, Java, etc. • Lots of online tutorials and documents • Or, seek a hardcopy • “MySQL Cookbook,” Dubois, O’Reilly • also available in Google Library

  11. MySQL Tutorials • http://dev.mysql.com/doc/ • http://twpug.net/docs/mysql323/manual_Tutorial.html(in Chinese)

  12. Examples in Mac OS • Starting the MySQL server • sudo /Library/StartupItems/MySQLCOM/MySQLCOM start • Starting MySQL command line (client) • /usr/local/mysql/bin/mysql -u root • No password for the root (default) • Testing SQL commands • select now(); • select version(); • Creating a new database • create database lecture • Using the database • use lecture;

  13. Examples in Mac OS (cont.) • create table Students (sid char(20), name char(20), login char(10), age integer, gpa real); • select * from Students; • insert into Students (sid, name, login, age, gpa) values ('53688', 'Smith', 'smith@cs', 18, 3.2); • alter table Students add dept char(20); • update Students S set S.dept = 'CS' where S.sid = 53688; • insert into Students (sid, name, login, age, gpa, dept) values ('53666', 'Jones', 'jones@cs', 19, 3.3, 'EE'); • select name, age from Students where age=18; • drop table Students;

More Related