RHCE Quiz Questions and Answers All Correct
How do you create a database? - Answer-CREATE DATABASE db_name;
How do you delete a database? - Answer-DROP DATABASE db_name;
How do you manipulate a database? - Answer-1. SHOW DATABASES;
2. USE db_name;
What CMD is used to connect to MariaDB l...
RHCE Quiz Questions and
Answers All Correct
How do you create a database? - Answer-CREATE DATABASE db_name;
How do you delete a database? - Answer-DROP DATABASE db_name;
How do you manipulate a database? - Answer-1. SHOW DATABASES;
2. USE db_name;
What CMD is used to connect to MariaDB locally? - Answer-mysql --user root --host
127.0.0.1 --Port 3307 -p
another way: mysql -uroot -proot -e "select @@version;"
Once connected to MariaDB, how do you go about creating a DB with tables? - Answer-
1. CREATE DATABASE myapp;
2. USE myapp;
3. CREATE TABLE widgets (id INT AUTO_INCREMENT, name VARCHAR(255),
PRIMARY KEY (id));
4. SHOW TABLES;
In SQL, what does CRUD refer to? - Answer-Create Read Update Delete which by SQL
std's is: INSERT, SELECT, UPDATE, DELETE
How would you add a value to table in MariaDB? - Answer-INSERT INTO table_name
(field1, field2) VALUES ('a', 'b');
What are iniitial steps to setting up mariadb? - Answer-1. Install via: yum install -y
mariadb mariadb-server
2. systemctl enable --now mariadb
3. mysql_secure_installation
What file would you edit to change default port for MariaDB? - Answer-/etc/my.cnf
and add under [mysqld]:
port = 4406
How would you allow firewall access for the new port of 4406 on my MariaDB? -
Answer-firewall-cmd --permanent --add-port=4406/tcp
firewall-cmd --reload
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller Scholarsstudyguide. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $13.49. You're not tied to anything after your purchase.