Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Class notes

Computer Science

Rating
-
Sold
-
Pages
272
Uploaded on
21-01-2022
Written in
2021/2022

The document contains notes in C++

Institution
Course

Content preview

MySQL




#mysql

,Table of Contents
About 1

Chapter 1: Getting started with MySQL 2

Remarks 2

Versions 2

Examples 3

Getting Started 3

Information Schema Examples 7

Processlist 7

Stored Procedure Searching 7

Chapter 2: ALTER TABLE 8

Syntax 8

Remarks 8

Examples 9

Changing storage engine; rebuild table; change file_per_table 9

ALTER COLUMN OF TABLE 9

ALTER table add INDEX 9

Change auto-increment value 10

Changing the type of a primary key column 10

Change column definition 10

Renaming a MySQL database 10

Swapping the names of two MySQL databases 11

Renaming a MySQL table 12

Renaming a column in a MySQL table 12

Chapter 3: Arithmetic 14

Remarks 14

Examples 14

Arithmetic Operators 14

BIGINT 14

DOUBLE 15

Mathematical Constants 15

, Pi 15

Trigonometry (SIN, COS) 15

Sine 15

Cosine 15

Tangent 15

Arc Cosine (inverse cosine) 16

Arc Sine (inverse sine) 16

Arc Tangent (inverse tangent) 16

Cotangent 16

Conversion 16

Rounding (ROUND, FLOOR, CEIL) 17

Round a decimal number to an integer value 17

Round up a number 17

Round down a number 17

Round a decimal number to a specified number of decimal places. 17

Raise a number to a power (POW) 18

Square Root (SQRT) 18

Random Numbers (RAND) 18

Generate a random number 18

Random Number in a range 18

Absolute Value and Sign (ABS, SIGN) 19

Chapter 4: Backticks 20

Examples 20

Backticks usage 20

Chapter 5: Backup using mysqldump 21

Syntax 21

Parameters 21

Remarks 22

Examples 22

Creating a backup of a database or table 22

Specifying username and password 23

Restoring a backup of a database or table 23

, mysqldump from a remote server with compression 24

restore a gzipped mysqldump file without uncompressing 24

Backup direct to Amazon S3 with compression 24

Tranferring data from one MySQL server to another 24

Backup database with stored procedures and functions 25

Chapter 6: Change Password 26

Examples 26

Change MySQL root password in Linux 26

Change MySQL root password in Windows 27

Process 27

Chapter 7: Character Sets and Collations 28

Examples 28

Declaration 28

Connection 28

Which CHARACTER SET and COLLATION? 28

Setting character sets on tables and fields 29

Chapter 8: Clustering 30

Examples 30

Disambiguation 30

Chapter 9: Comment Mysql 31

Remarks 31

Examples 31

Adding comments 31

Commenting table definitions 31

Chapter 10: Configuration and tuning 33

Remarks 33

Examples 33

InnoDB performance 33

Parameter to allow huge data to insert 33

Increase the string limit for group_concat 34

Minimal InnoDB configuration 34

Secure MySQL encryption 35

Written for

Institution
Course

Document information

Uploaded on
January 21, 2022
Number of pages
272
Written in
2021/2022
Type
Class notes
Professor(s)
Kioko
Contains
All classes

Subjects

$7.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
Mutahikk

Get to know the seller

Seller avatar
Mutahikk Catholic University of Eastern Africa
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
4 year
Number of followers
0
Documents
7
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions