my sql Flashcards

(18 cards)

1
Q

What is MySQL?

A

MySQL is an open-source relational database management system (RDBMS) known for scalability and reliability.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What versions of MySQL are available?

A

It is available as a free Community Edition, commercial versions, and cloud deployments.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the main MySQL administration tools?

A

MySQL CLI, MySQL Workbench, and phpMyAdmin.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is MySQL CLI used for?

A

It allows users to interact with the MySQL server and data through commands.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is MySQL Workbench used for?

A

It combines SQL development, database administration, and database design tools.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is phpMyAdmin?

A

phpMyAdmin is a web-based graphical interface used to manage MySQL databases.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Who commonly uses phpMyAdmin?

A

Web hosting providers and individual website owners often use it.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How can databases and tables be created in MySQL?

A

They can be created through the command line, graphical interfaces, or API calls.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Can table structures be modified after creation in phpMyAdmin?

A

Yes, columns and table settings can be added or changed after creation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Why is phpMyAdmin useful for creating tables?

A

It provides an intuitive interface for creating databases, tables, and columns, and makes later changes easy.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How can backups and restores be performed in MySQL?

A

Both command-line tools and phpMyAdmin can be used for backup and restore tasks.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the purpose of import and export functions in MySQL?

A

They help populate tables and save database data to files.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

When is manual insertion in phpMyAdmin useful?

A

It is useful for inserting small amounts of data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How are primary keys created in MySQL?

A

A primary key is created by defining a primary index on one or more columns.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is AUTO_INCREMENT used for in MySQL?

A

It automatically generates sequential numeric values for a column.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What can be defined when creating foreign keys in MySQL?

A

Actions such as ON DELETE and ON UPDATE can be set.

17
Q

What is the default null setting for columns in phpMyAdmin?

A

Columns are set to NOT NULL by default.

18
Q

Can MySQL columns be restricted to unique values only?

A

Yes, columns can be configured with a unique constraint.