Skip to content

Commit afe65fd

Browse files
authored
Update baseline.md
1 parent 1517198 commit afe65fd

1 file changed

Lines changed: 20 additions & 11 deletions

File tree

  • content/learning-paths/servers-and-cloud-computing/mysql-azure

content/learning-paths/servers-and-cloud-computing/mysql-azure/baseline.md

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,29 @@ weight: 6
66
layout: learningpathall
77
---
88

9-
## Run a functional test of MySQL on Azure Cobalt 100
10-
11-
After installing MySQL on your Arm64 virtual machine, you can perform simple baseline testing to validate that MySQL runs correctly and produces the expected output.
9+
After installing MySQL on your Azure Cobalt 100 Arm64 virtual machine, you should run a functional test to confirm that the database is operational and ready for use. Beyond just checking service status, validation ensures MySQL is processing queries correctly, users can authenticate, and the environment is correctly configured for cloud workloads.
1210

1311
### Start MySQL
1412

15-
Make sure MySQL is running:
13+
Ensure MySQL is running and configured to start on boot:
1614

1715
```console
1816
sudo systemctl start mysql
1917
sudo systemctl enable mysql
2018
```
2119
### Connect to MySQL
2220

21+
Connect using the MySQL client:
22+
2323
```console
2424
mysql -u admin -p
2525
```
26-
Opens the MySQL client and connects as the new user(admin), prompting you to enter the admin password.
26+
This opens the MySQL client and connects as the new user(admin), prompting you to enter the admin password.
27+
28+
### Show and Use Database
2729

28-
### Show and use Database
30+
Once you’ve connected successfully with your new user, the next step is to create and interact with a database. This verifies that your MySQL instance is not only accessible but also capable of storing and organizing data.
31+
Run the following commands inside the MySQL shell:
2932

3033
```sql
3134
CREATE DATABASE baseline_test;
@@ -69,10 +72,13 @@ mysql> SELECT DATABASE();
6972
+---------------+
7073
1 row in set (0.00 sec)
7174
```
72-
You created a new database named **baseline_test**, verified its presence with `SHOW DATABASES`, and confirmed it is the active database using `SELECT DATABASE()`.
75+
You created a new database named `baseline_test`, verified its presence with `SHOW DATABASES`, and confirmed it is the active database using `SELECT DATABASE()`.
7376

7477
### Create and show Table
7578

79+
After creating and selecting a database, the next step is to define a table, which represents how your data will be structured. In MySQL, tables are the core storage objects where data is inserted, queried, and updated.
80+
Run the following inside the `baseline_test` database:
81+
7682
```sql
7783
CREATE TABLE test_table (
7884
id INT AUTO_INCREMENT PRIMARY KEY,
@@ -100,10 +106,13 @@ mysql> SHOW TABLES;
100106
+-------------------------+
101107
1 row in set (0.00 sec)
102108
```
103-
You successfully created the table **test_table** in the `baseline_test` database and verified its existence using `SHOW TABLES`.
109+
You successfully created the table `test_table` in the `baseline_test` database and verified its existence using `SHOW TABLES`.
104110

105111
### Insert Sample Data
106112

113+
Once the table is created, you can populate it with sample rows. This validates that MySQL can handle write operations and that the underlying storage engine is working properly.
114+
115+
Run the following SQL command inside the baseline_test database:
107116
```sql
108117
INSERT INTO test_table (name, value)
109118
VALUES
@@ -114,7 +123,7 @@ VALUES
114123
- `INSERT INTO test_table (name, value)` - Specifies which table and columns to insert into.
115124
- `VALUES` - Provides three rows of data.
116125

117-
After inserting, you can check the data with:
126+
After inserting data into `test_table`, you can confirm the write operation succeeded by retrieving the rows with:
118127

119128
```sql
120129
SELECT * FROM test_table;
@@ -135,6 +144,6 @@ mysql> SELECT * FROM test_table;
135144
+----+---------+-------+
136145
3 rows in set (0.00 sec)
137146
```
147+
This confirms that that rows were successfully inserted, the auto-increment primary key (id) is working correctly and the query engine can read back from disk/memory and return results instantly.
138148

139-
The functional test was successful — the **test_table** contains three rows (**Alice, Bob, and Charlie**) with their respective values, confirming MySQL is working
140-
correctly.
149+
The functional test was successful. The test_table contains the expected three rows (Alice, Bob, and Charlie) with their respective values. This confirms that MySQL is working correctly on your Cobalt 100 Arm-based VM, completing the installation and validation phase.

0 commit comments

Comments
 (0)