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: docs/marketplace-docs/guides/mysql/index.md
+23-35Lines changed: 23 additions & 35 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: "Deploy MySQL/MariaDB through the Linode Marketplace"
3
3
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."
MySQLis 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.
21
21
22
22
## Deploying a Marketplace App
23
23
@@ -26,41 +26,42 @@ MySQL is an open-source database management system that uses a relational databa
**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.
30
30
{{< /note >}}
31
31
32
32
## Configuration Options
33
33
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.
36
36
37
37
### MySQL/MariaDB Options
38
38
39
39
-**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.
Once the app is deployed, you need to obtain the credentials from the server.
50
+
51
+
To obtain credentials:
54
52
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:
56
54
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/).
58
57
59
-
1.Log out and log back in as your limited user account.
58
+
1.Run the following command to access the credentials file:
60
59
61
-
1. Update your server:
60
+
```command
61
+
cat /home/$USERNAME/.credentials
62
+
```
62
63
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.
64
65
65
66
## Using MySQL/MariaDB
66
67
@@ -72,9 +73,7 @@ The standard tool for interacting with MySQL is the `mysql` client which install
72
73
73
74
sudo mysql -u root -p
74
75
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.
78
77
79
78
1. To generate a list of commands for the MySQL prompt, enter `\h`. You'll then see:
80
79
@@ -107,19 +106,9 @@ The standard tool for interacting with MySQL is the `mysql` client which install
107
106
108
107
For server side help, type'help contents'
109
108
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
-
120
109
### Create a Sample Table
121
110
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`.
123
112
124
113
sudo mysql -u webuser -p
125
114
@@ -128,7 +117,7 @@ The standard tool for interacting with MySQL is the `mysql` client which install
128
117
use webdata;
129
118
create table customers (customer_id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, first_name TEXT, last_name TEXT);
130
119
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:
132
121
133
122
describe customers;
134
123
@@ -142,8 +131,7 @@ The standard tool for interacting with MySQL is the `mysql` client which install
0 commit comments