Skip to content

Commit 432bfbe

Browse files
tbaka-devMagda Sulik
andauthored
[Update] MySQL OCA (#7209)
* updates distro and instructions * editorial review --------- Co-authored-by: Magda Sulik <[email protected]>
1 parent e6e1c01 commit 432bfbe

File tree

1 file changed

+23
-35
lines changed
  • docs/marketplace-docs/guides/mysql

1 file changed

+23
-35
lines changed

docs/marketplace-docs/guides/mysql/index.md

Lines changed: 23 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Deploy MySQL/MariaDB through the Linode Marketplace"
33
description: "This guide shows how to install and configure MySQL/MariaDB so you can run databases for anything from a CRM to WordPress by using the Linode One-Click Marketplace."
44
published: 2020-03-13
5-
modified: 2022-03-08
5+
modified: 2025-02-28
66
keywords: ['database','mysql','rdbms','relational database','mariadb']
77
tags: ["database","cloud-manager","linode platform","mysql","marketplace","mariadb"]
88
external_resources:
@@ -17,7 +17,7 @@ marketplace_app_id: 607026
1717
marketplace_app_name: "MySQL/MariaDB"
1818
---
1919

20-
MySQL is an open-source database management system that uses a relational database and SQL (Structured Query Language) to manage its data. In Debian 9, MySQL is replaced with MariaDB as the default database system. MariaDB is an open-source, multi-threaded relational database management system, backward compatible replacement for MySQL. It is maintained and developed by the MariaDB Foundation.
20+
The MySQL/MariaDB Marketplace app can deploy MySQL or MariaDB. MySQL is an open-source database management system that uses a relational database and SQL (Structured Query Language) to manage its data. MariaDB is an open-source, multi-threaded relational database management system, backward compatible replacement for MySQL that's maintained and developed by the MariaDB Foundation.
2121

2222
## Deploying a Marketplace App
2323

@@ -26,41 +26,42 @@ MySQL is an open-source database management system that uses a relational databa
2626
{{% content "marketplace-verify-standard-shortguide" %}}
2727

2828
{{< note >}}
29-
**Estimated deployment time:** MySQL should be fully installed within 2-5 minutes after the Compute Instance has finished provisioning.
29+
**Estimated deployment time:** The app should be fully installed within 2-5 minutes after the Compute Instance has finished provisioning.
3030
{{< /note >}}
3131

3232
## Configuration Options
3333

34-
- **Supported distributions:** Ubuntu 20.04 LTS
35-
- **Recommended plan:** Depends on the size of your MySQL database and the amount of traffic you expect.
34+
- **Supported distributions:** Ubuntu 24.04 LTS
35+
- **Suggested plan:** All plan types and sizes can be used. We suggest using a [High Memory Compute Instance](https://www.linode.com/products/high-memory/) for larger databases in a production environment.
3636

3737
### MySQL/MariaDB Options
3838

3939
- **MySQL or MariaDB** *(required)*: Select which database service you'd like to use.
40-
- **MySQL Root Password** *(required)*: The root password for your MySQL database.
41-
- **MySQL User** *(required)*: The user for your MySQLDB database.
42-
- **MySQL User Password** *(required)*: The user password for your MySQL database.
43-
- **Create Database** *(required)*: The database on your MySQL.
4440

45-
{{% content "marketplace-limited-user-fields-shortguide" %}}
46-
47-
{{% content "marketplace-custom-domain-fields-shortguide" %}}
41+
{{% content "marketplace-required-limited-user-fields-shortguide" %}}
4842

4943
{{% content "marketplace-special-character-limitations-shortguide" %}}
5044

5145
## Getting Started after Deployment
5246

53-
### Access MySQL/MariaDB
47+
### Obtain the Credentials
48+
49+
Once the app is deployed, you need to obtain the credentials from the server.
50+
51+
To obtain credentials:
5452

55-
After MySQL has finished installing, you will be able to access MySQL from the console via ssh with your Linode's IPv4 address:
53+
1. Log in to your new Compute Instance using one of the methods below:
5654

57-
1. [SSH into your Linode](/docs/products/compute/compute-instances/guides/set-up-and-secure/#connect-to-the-instance) and [create a limited user account](/docs/products/compute/compute-instances/guides/set-up-and-secure/#add-a-limited-user-account).
55+
- **Lish Console**: Log in to Cloud Manager, click the **Linodes** link in the left menu, and select the Compute Instance you just deployed. Click **Launch LISH Console**. Log in as the `root` user. To learn more, see [Using the Lish Console](/docs/products/compute/compute-instances/guides/lish/).
56+
- **SSH**: Log in to your Compute Instance over SSH using the `root` user. To learn how, see [Connecting to a Remote Server Over SSH](/docs/guides/connect-to-server-over-ssh/).
5857

59-
1. Log out and log back in as your limited user account.
58+
1. Run the following command to access the credentials file:
6059

61-
1. Update your server:
60+
```command
61+
cat /home/$USERNAME/.credentials
62+
```
6263

63-
sudo apt-get update && apt-get upgrade
64+
This returns passwords that were automatically generated when the instance was deployed. Save them. Once saved, you can safely delete the file.
6465

6566
## Using MySQL/MariaDB
6667

@@ -72,9 +73,7 @@ The standard tool for interacting with MySQL is the `mysql` client which install
7273

7374
sudo mysql -u root -p
7475

75-
1. When prompted, enter the MySQL root password that you set when launching the Marketplace App. You'll then be presented with a welcome header and the MySQL prompt as shown below:
76-
77-
MariaDB [(none)]>
76+
1. When prompted, enter the MySQL root password that was provided in the `/home/$USERNAME/.credentials` file. You get a welcome header and the MySQL prompt.
7877

7978
1. To generate a list of commands for the MySQL prompt, enter `\h`. You'll then see:
8079
@@ -107,19 +106,9 @@ The standard tool for interacting with MySQL is the `mysql` client which install
107106

108107
For server side help, type 'help contents'
109108

110-
MariaDB [(none)]>
111-
112-
1. Grant access to the database that you created when launching the Marketplace App for **MySQL User**. In this example, the database is called `webdata`, the user `webuser`, and password of the user is `password`. Be sure to enter your own password. This should be different from the root password for MySQL:
113-
114-
GRANT ALL ON webdata.* TO 'webuser' IDENTIFIED BY 'password';
115-
116-
1. To Exit MySQL/MariaDB type:
117-
118-
exit
119-
120109
### Create a Sample Table
121110

122-
1. Log back in as **MySQL User** that you set when launching the Marketplace App. In the following example the **MySQL User** is `webuser`.
111+
1. Log back in as sudo user that you set when launching the Marketplace App. In the following example the sudo user is `webuser`.
123112

124113
sudo mysql -u webuser -p
125114

@@ -128,7 +117,7 @@ The standard tool for interacting with MySQL is the `mysql` client which install
128117
use webdata;
129118
create table customers (customer_id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, first_name TEXT, last_name TEXT);
130119
131-
3. To view the contents of the table that you created:
120+
3. To view the contents of the table that you created, enter the command:
132121
133122
describe customers;
134123
@@ -142,8 +131,7 @@ The standard tool for interacting with MySQL is the `mysql` client which install
142131
| last_name | text | YES | | NULL | |
143132
+-------------+---------+------+-----+---------+----------------+
144133
145-
146-
4. Then exit MySQL/MariaDB.
134+
4. To exit MySQL/MariaDB, enter:
147135
148136
exit
149137

0 commit comments

Comments
 (0)