1. Trang chủ
  2. » Công Nghệ Thông Tin

The Language of SQL- P48 doc

5 122 0
Tài liệu đã được kiểm tra trùng lặp

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 5
Dung lượng 92,91 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

On the Windows Options screen, check INSTALL AS WINDOWS SERVICE and make sure that LAUNCH THE MYSQL SERVER AUTOMATICALLY is checked; then click the NEXT button.. On the Security Option s

Trang 1

20 On the Configuration Type screen, select STANDARD CONFIGURATION

and then click the NEXT button

21 On the Windows Options screen, check INSTALL AS WINDOWS

SERVICE and make sure that LAUNCH THE MYSQL SERVER

AUTOMATICALLY is checked; then click the NEXT button

22 On the Security Option screen, enter a root password, if desired, and then

click the NEXT button

23 On the Ready to Execute screen, click the EXECUTE button It should

display the messages: Configuration file created, Windows service MySQL

installed, Service started successfully

24 Click the FINISH button

After this has completed, you will have the following software installed:

■ MySQL Command Line Client

■ MySQL Server Instance Config Wizard

Installing MySQL Workbench

The steps for installing the MySQL Workbench are as follows Note that you

need to be on version 5.2 or higher in order to execute SQL with the tool At the

time of publication, version 5.2 is only available as a beta release

1 Go to dev.mysql.com

2 Click on the DOWNLOADS tab

3 Click MySQL WORKBENCH on the left pane

4 Click on MySQL WORKBENCH Make sure that it is version 5.2 or higher

5 Select the MICROSOFT WINDOWS platform

6 Click one of the DOWNLOAD buttons

7 If you’re a returning user, log in Otherwise, register as a new user if desired

8 Click on HTTP next to one of the mirror files shown

Installing MySQL Workbench 221

Trang 2

9 When asked if you want to run or save the file, select the RUN button The setup wizard will then start

10 On the Welcome screen, click the NEXT button

11 On the Setup Type screen, select COMPLETE and then click the NEXT button

12 On the Ready to Install screen, click the INSTALL button

13 On the Completion screen, click the FINISH button

After this has completed, you will have the following software installed:

■ MySQL Workbench version 5.2

Using MySQL Workbench

When you first open MySQL Workbench after the initial install, you will need to establish a connection to your MySQL Server instance that you already installed

To create a connection, select MANAGE CONNECTIONS under the Database menu Click the NEW button to add a new connection Then enter a connection name (ex: MyConnection) and click the TEST CONNECTION button Enter a password if you previously supplied one Then click the CLOSE button

After creating the connection, you’ll need to create a database to work with To

do this, select QUERY DATABASE under the Database menu Select the connection you just created and click the OK button Enter a password if you previously supplied one You will now see an SQL Editor pane on your screen

An Object Explorer area will appear on the left side of the pane A SQL State-ments area will appear on the right side In the Object Explorer, right-click any database and select CREATE SCHEMA Enter the name of your new database (ex: FirstDatabase) in the Name textbox Click the APPLY button twice and then the FINISH button You will now see your new database in the Object Explorer Finally, using the Default drop-down box at the top of the Object Explorer, select your new database as the default database

Now that a connection and database have been created, you can enter any desired SQL statement in the SQL Statements area of the SQL Editor pane If you don’t see the SQL Editor pane, go back and select Query Database under the Appendix B ■ Getting Started with MySQL

222

Trang 3

Database menu as described previously As before, this will ask you to select a

connection

After entering a SQL statement in the SQL Statements area, click the EXECUTE

button, which looks like a lightning bolt If you enter multiple statements in the

window, you can highlight one individual statement and execute only the

high-lighted portion

The results of your query will be shown under an Output or Result pane after the

query is executed If there is data to be shown, it will appear in a Result pane

Otherwise, a status message will appear under an Output pane

MySQL provides complete documentation on their database The MySQL

reference manual is currently at:

http://dev.mysql.com/doc/refman/5.1/en

Using MySQL Workbench 223

Trang 4

This page intentionally left blank

Trang 5

appendix C

Getting Started

with Oracle

Overview

The procedure to install the free version of Oracle Database is as follows This procedure was tested on a PC with the Windows 7 operating system Please note that the specific instructions may vary from what is shown below, depending on what is already installed on your PC

As these procedures may change over time, please consult www.courseptr.com/ downloads for any updates

There is one step involved: Install Oracle Database Express Edition

This installation will create a single database and provide a Web-based graphical interface that will allow you to execute SQL commands against the database This download is available at www.oracle.com/database

As part of the install process, you may be asked to enter a database username The name you should enter is SYSTEM

Installing Oracle Database Express Edition

The steps for installing Oracle Database Express Edition are as follows

1 Go to www.oracle.com/database

2 Click on EXPRESS EDITION found on the left side of the page

225

Ngày đăng: 05/07/2014, 05:20