MySQL Installation Manual

24

Transcript of MySQL Installation Manual

Page 1: MySQL Installation Manual
Page 2: MySQL Installation Manual

BHUVANESWARAN B / AP (SS) / CSE / REC - 2

MySQL Installation Steps 1. Run the file mysql-5.5.15-win32.exe file and click Next button.

2. Select I accept the terms in the License Agreement and click Next.

Page 3: MySQL Installation Manual

BHUVANESWARAN B / AP (SS) / CSE / REC - 3

3. Choose the setup type as Typical.

4. Click Install to start the installation process.

5. Click Next.

Page 4: MySQL Installation Manual

BHUVANESWARAN B / AP (SS) / CSE / REC - 4

6. Click Next.

7. Choose Launch the MySQL Instance Configuration Wizard and click Finish.

8. Click Next.

Page 5: MySQL Installation Manual

BHUVANESWARAN B / AP (SS) / CSE / REC - 5

9. Choose Detailed Configuration and click Next.

10. Choose Developer Machine and click Next.

11. Choose Multifunctional Database and click Next.

Page 6: MySQL Installation Manual

BHUVANESWARAN B / AP (SS) / CSE / REC - 6

12. Click Next.

13. Choose Decision Support (DSS)/OLAP and click Next.

14. Choose Add firewall exception for this port and click Next.

Page 7: MySQL Installation Manual

BHUVANESWARAN B / AP (SS) / CSE / REC - 7

15. Choose Standard Character Set and click Next.

16. Choose Include Bin Directory in Windows PATH and click Next.

Page 8: MySQL Installation Manual

BHUVANESWARAN B / AP (SS) / CSE / REC - 8

17. Enter the New root password and enter the Confirm password and click Next.

Page 9: MySQL Installation Manual

BHUVANESWARAN B / AP (SS) / CSE / REC - 9

18. Select and copy the path available in the Address bar by pressing Ctrl+C.

Page 10: MySQL Installation Manual

BHUVANESWARAN B / AP (SS) / CSE / REC - 10

MySQL Working – Command Line Steps 19. Select Start Programs MySQL MySQL Server 5.5 MySQL 5.5 Command

Line Client.

20. Enter the password given by you while installing the MySQL and press Enter key.

Page 11: MySQL Installation Manual

BHUVANESWARAN B / AP (SS) / CSE / REC - 11

21. To come out of the MySQL, type \q and press Enter ley.

Page 12: MySQL Installation Manual

BHUVANESWARAN B / AP (SS) / CSE / REC - 12

Useful Commands Enter password: ***** Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 13 Server version: 5.5.15 MySQL Community Server (GPL) Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> show databases; +--------------------+ | Database | +--------------------+ | information_schema | | mysql | | performance_schema | | test | +--------------------+ 4 rows in set (0.03 sec) mysql> create database rec; Query OK, 1 row affected (0.00 sec) mysql> show databases; +--------------------+ | Database | +--------------------+ | information_schema | | mysql | | performance_schema | | rec | | test | +--------------------+ 5 rows in set (0.01 sec) mysql> use rec; Database changed mysql> show tables; Empty set (0.02 sec) mysql> \q

Page 13: MySQL Installation Manual

BHUVANESWARAN B / AP (SS) / CSE / REC - 13

MySQL Working – GUI Steps 1. Select Start Programs MySQL MySQL Query Browser.

2. Enter the Sever Host as localhost, Username as root and Password and click Ok.

Page 14: MySQL Installation Manual

BHUVANESWARAN B / AP (SS) / CSE / REC - 14

3. Select the Do not show this message anymore and click Ignore button.

4. It will open a window as shown below:

Page 15: MySQL Installation Manual

BHUVANESWARAN B / AP (SS) / CSE / REC - 15

5. To exit from the MySQL Query Browser, select File exit.

Page 16: MySQL Installation Manual

BHUVANESWARAN B / AP (SS) / CSE / REC - 16

Useful Commands: 1. To Create New Schema, right click on the Schemata and select Create New Schema.

2. Enter the Schema name and click Ok.

Page 17: MySQL Installation Manual

BHUVANESWARAN B / AP (SS) / CSE / REC - 17

3. To select the database double click on it, rit.

Page 18: MySQL Installation Manual

BHUVANESWARAN B / AP (SS) / CSE / REC - 18

4. To create a table, Right Click on the database and choose Create New Table.

5. Enter the Table Name.

Page 19: MySQL Installation Manual

BHUVANESWARAN B / AP (SS) / CSE / REC - 19

6. Add the required Column Name, Data type and click Apply Changes.

7. Click the Execute button and click Close.

Page 20: MySQL Installation Manual

BHUVANESWARAN B / AP (SS) / CSE / REC - 20

8. The table gets created under the rit database.

Page 21: MySQL Installation Manual

BHUVANESWARAN B / AP (SS) / CSE / REC - 21

9. To display the structure of the table type describe table name; and click the Execute button.

10. Select the table, Right Click and choose Edit Table.

Page 22: MySQL Installation Manual

BHUVANESWARAN B / AP (SS) / CSE / REC - 22

11. Do the required changes and click Apply Changes button.

Page 23: MySQL Installation Manual

BHUVANESWARAN B / AP (SS) / CSE / REC - 23

12. Click Execute.

Page 24: MySQL Installation Manual

BHUVANESWARAN B / AP (SS) / CSE / REC - 24