wk1 database Flashcards

1
Q

Generally speaking, where can the MySQL error log be found, within a modern cPanel & WHM installation?

Select one:

a. /var/log/mysqld.log
b. /var/lib/mysql/$hostname.err
c. I don’t know.
d. /var/log/mysql.log
e. /var/log/mysql/$hostname.err

A

/var/log/mysqld.log

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

Which of the following options most accurately indicates the method used to provide access to SQLite databases?

Select one:

a. Using a daemon process.
b. Using the mysql client.
c. Using a database file.
d. Using a persistent socket.

A

Using a database file.

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

When entering only “mysql” at the command line, from which file will credentials (and host if using a remote database server) be read?

Select one:

a. /etc/.my.cnf
b. /etc/my.cnf
c. /root/.my.cnf
d. /root/my.cnf
e. I don’t know.

A

/root/.my.cnf

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

Which command would you run to view any MySQL or MariaDB queries that are currently running?

Select one:

a. mysqladmin stat
b. mysqlcheck proc
c. mysqlcheck stat
d. mysqladmin proc
e. I don’t know.

A

mysqladmin proc

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

What year was MySQL created?

Select one:

a. 1989
b. 1998
c. 1995
d. 1993
e. I don’t know.

A

1995

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
Which of the following is NOT a syntax constraint enforced by a default MySQL/MariaDB installation?
Select one:
a. Query line termination
b. Case-sensitive queries
c. Quote-enclosed string values
d. Special character escaping 
e. I don't know.
A

Case-sensitive queries

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q
Which of the following MySQL configuration paths is loaded first?
Select one:
a. /etc/my.cnf
b. /usr/my.cnf 
c. I don't know.
d. /usr/etc/.my.cnf
e. /root/.my.cnf
A

/etc/my.cnf

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q
With which storage engine does MariaDB intend to a crash-safe replacement for MyISAM?
Select one:
a. InnoDB 
b. Cassandra
c. XtraDB
d. I don't know.
e. Aria
A

Aria

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q
Which of the following is a legitimate, drop-in replacement for MySQL?
Select one:
a. MariaDB 
b. XtraDB
c. I don't know.
d. MaxDB
e. Oracle
A

MariaDB

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

The table that contains privilege and access information is named

???

and exists within the database named {=mysql|system|config|options}.

A

user|priv|grants|secure

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

In what scenarios would the InnoDB engine prove more beneficial than MyISAM?

Select one:

a. When transactions are required
b. When you want table locking
c. When Insert, Update, and Delete queries are frequent
d. When Select queries are frequent
e. I don’t know.

A

When transactions are required, When Insert, Update, and Delete queries are frequent

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