You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/learning-paths/servers-and-cloud-computing/mysql-azure/baseline.md
+20-11Lines changed: 20 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,26 +6,29 @@ weight: 6
6
6
layout: learningpathall
7
7
---
8
8
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.
12
10
13
11
### Start MySQL
14
12
15
-
Make sure MySQL is running:
13
+
Ensure MySQL is running and configured to start on boot:
16
14
17
15
```console
18
16
sudo systemctl start mysql
19
17
sudo systemctl enable mysql
20
18
```
21
19
### Connect to MySQL
22
20
21
+
Connect using the MySQL client:
22
+
23
23
```console
24
24
mysql -u admin -p
25
25
```
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
27
29
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:
29
32
30
33
```sql
31
34
CREATEDATABASEbaseline_test;
@@ -69,10 +72,13 @@ mysql> SELECT DATABASE();
69
72
+---------------+
70
73
1 row in set (0.00 sec)
71
74
```
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()`.
73
76
74
77
### Create and show Table
75
78
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
+
76
82
```sql
77
83
CREATETABLEtest_table (
78
84
id INT AUTO_INCREMENT PRIMARY KEY,
@@ -100,10 +106,13 @@ mysql> SHOW TABLES;
100
106
+-------------------------+
101
107
1 row in set (0.00 sec)
102
108
```
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`.
104
110
105
111
### Insert Sample Data
106
112
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:
107
116
```sql
108
117
INSERT INTO test_table (name, value)
109
118
VALUES
@@ -114,7 +123,7 @@ VALUES
114
123
-`INSERT INTO test_table (name, value)` - Specifies which table and columns to insert into.
115
124
-`VALUES` - Provides three rows of data.
116
125
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:
118
127
119
128
```sql
120
129
SELECT*FROM test_table;
@@ -135,6 +144,6 @@ mysql> SELECT * FROM test_table;
135
144
+----+---------+-------+
136
145
3 rows in set (0.00 sec)
137
146
```
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.
138
148
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