MySQL

Databases Cloud Server Made by Oracle

SQL database that many sites and apps support

Install

Plan

s-1vcpu-2gbSmallest that fits

1 vCPU · 2 GB RAM · 32 GB NVMe

฿229/mo

Settings

Timezone

MySQL 8.4 LTS from Ubuntu, with Ubuntu’s security updates. It runs as a system service that starts when the server boots. Uninstalling it deletes MySQL and its data.

After you press Install

  1. Check the price, accept the terms

    In the console

  2. Press Create server and install

    The server is created and billing starts

  3. Connect

    From outside on the public IP, or a program on the server

Connection and data

Who can connect
Connect from outside on the server’s public IP, from the IPs you allow (yours to start with). The password is made for you and the connection is encrypted with TLS.
From outside
In the console after installingmysql://xver:••••••@SERVER_IP:3306/xver?ssl-mode=REQUIRED
On the server
For programs on the same servermysql://xver:••••••@127.0.0.1:3306/xver
Password
Made on the server when it is installed. Shown in the console.
If you change it
If you changed the password inside MySQL, the one shown is out of date.
Who can read it
Anyone with access to this server, coding agents included, can read this password.
Data
Data is on this server’s disk and is not backed up automatically. Deleting the server deletes it.
Other apps on the server
Other apps on this server can run commands, so they can read, change or delete the data in MySQL. Use separate servers for important data.

Terms and costs

  • You read and accept the terms of MySQL before you confirm.
  • XVer bills only the server, not app accounts or their usage.

Read the terms of MySQL (opens in a new tab)

Full statement

XVer is not the developer or agent of MySQL, and MySQL does not endorse this service. You chose to install MySQL and use it under the terms of MySQL. You run the database and back up its data yourself. Names and logos are trademarks of their owners.

How to access

From outside

Connect from a program on your computer over the public IP, from the IPs you allow, encrypted with TLS.

  1. Show the password in the console after installing

    To start with, connections are accepted from your IP

  2. Put this address in your program

    mysql://xver:••••••@SERVER_IP:3306/xver?ssl-mode=REQUIRED

Replace SERVER_IP with your server’s IP

SSH tunnel

For when connections from outside are off. Connect from your computer through an SSH tunnel.

  1. Open an SSH tunnel in a terminal on your computer and leave it running

    With the same password or key you use for the server

    ssh -N -L 3306:127.0.0.1:3306 xver@SERVER_IP
  2. Connect from another window

    The password is shown in the console after installing

    mysql -h 127.0.0.1 -P 3306 -u xver -p xver

Replace SERVER_IP with your server’s IP

Programs on the same server connect to 127.0.0.1 directly, without a tunnel.

Web terminal

Opens in the browser.

  1. Open the server in my.xver.cloud

  2. Press Web terminal

    No server password

The owner and members who can manage the project can open it.

SSH

From a terminal on your computer, with a password or a key.

  1. Connect over SSH

    ssh xver@SERVER_IP

Replace SERVER_IP with your server’s IP

1 copy the SSH command 2 show the password (sample data, console in Thai)

Web console

For when the web terminal or SSH does not open. Needs the server’s password.

  1. Open the server in my.xver.cloud

    The user name and password are under the Access tab

  2. Press the arrow next to Web terminal and choose Web console

  3. Type the user name and password

A server with only an SSH key has no password: use SSH.

Images

  • Create tables, add rows and query with SQL in MySQL
  • Inspect table structure with SHOW TABLES and DESCRIBE
  • Create a database and switch to it in a few commands
  • 1 copy the SSH command 2 show the password (sample data, console in Thai)

Screenshots taken by XVer

On this page
  1. What it does
  2. Who it's for
  3. What you need
  4. How to install
  5. What is on the server
  6. Connect for the first time
  7. Who can get in
  8. Change passwords
  9. Back up and restore
  10. Remove the app
  11. What it costs
  12. Safety
  13. Frequently asked questions

MySQL screenshots

  • Create tables, add rows and query with SQL in MySQL
  • Inspect table structure with SHOW TABLES and DESCRIBE
  • Create a database and switch to it in a few commands

Screenshots taken by XVer

MySQL is an open-source SQL database developed and supported by Oracle Corporation. It is licensed under the GPL, and a great many websites, back-office systems and apps support it out of the box.

What it does#

Task How MySQL does it
Stores data for sites and apps Tables and SQL. InnoDB tables, the default, have transactions that save all of a change or roll it all back, and recover on their own after a crash
Keeps bad data out Primary keys, foreign keys and UNIQUE are checked on every insert, update and delete
Serves many users at once Locks single rows, not whole tables, and reads see one consistent set of data
Stores JSON The JSON type rejects invalid JSON, and generated columns let you index values inside it
Searches text FULLTEXT indexes on InnoDB tables
Splits up access A user per app, with rights per database or per table

Developer site: mysql.com (opens in a new tab) · Source code: GitHub (opens in a new tab)

Who it's for#

  • Developers whose framework, online shop or ready-made app already expects MySQL
  • Teams moving an existing system off shared hosting that want a database of their own
  • Small teams that need a database for testing or staging, apart from everyone's laptops
  • People who can run a database themselves, including backups and restores

What you need#

Item Details
Account None
Smallest size 1 vCPU, RAM 2 GB, NVMe disk 32 GB, Bandwidth 2 TB
On your computer The mysql client or a database tool that connects to MySQL, such as MySQL Workbench or DBeaver. An SSH client too if you use an SSH tunnel
Cannot share a server with MariaDB, which uses the same port 3306, and WordPress

How to install#

  1. Press Install MySQL on this page
  2. Sign in to XVer, then check the plan and the price
  3. Choose how you get into the server: a password or an SSH key
  4. Read the MySQL terms and tick the box to accept them
  5. Press Create server and install. The server is created and billing starts after this step

When it is installed, the password of the user xver and the database's root password are on the install page in the console. Show them when you need them.

What is on the server#

Item Details
System Ubuntu 26.04, user xver with sudo
Database MySQL 8.4 LTS, database xver
The database user xver Full rights on the database xver only
The database user root All rights, for making more databases and users. It can connect only from 127.0.0.1
Ports open to the internet Port 3306, only from the IPs you allow, encrypted with TLS
Runs in the background MySQL runs all the time and starts when the server boots

Connect for the first time#

From your computer#

MySQL takes outside connections on port 3306 from the IPs you allow. At first that is only your own IP. You can add more in the console. Connections are encrypted with TLS.

Connection string
mysql://xver:PASSWORD@SERVER_IP:3306/xver?ssl-mode=REQUIRED

Connect with the mysql client. A -p with no password after it makes the client ask for one. Paste the password from the console. It is not shown on screen.

On your computer
mysql -h SERVER_IP -P 3306 -u xver -p --ssl-mode=REQUIRED xver

When it works: you see the prompt mysql>. Type SHOW TABLES; to list tables and exit to quit.

In MySQL Workbench or another tool, use the server's IP as the host, port 3306, user xver, database xver, the password from the console, and turn on SSL.

Through an SSH tunnel#

If you keep outside connections off, an SSH tunnel carries port 3306 on your computer to the server. This step needs SSH. The web terminal cannot do it.

Open Terminal or PowerShell on your computer and leave the window open. Use the same password or key you use for the server. After the password, a still screen is normal.

On your computer
ssh -N -L 3306:127.0.0.1:3306 xver@SERVER_IP

Open another window, connect with mysql and paste the password from the console when asked. Use 127.0.0.1, not localhost: localhost makes the client use a socket file on your own computer instead of the tunnel.

On your computer
mysql -h 127.0.0.1 -P 3306 -u xver -p xver

In MySQL Workbench or another tool, use host 127.0.0.1, port 3306, user xver, database xver and the password from the console, while the tunnel is running.

From an app on the same server#

Programs on the server connect to 127.0.0.1:3306 directly, without a tunnel. The connection string looks like this.

Connection string
mysql://xver:PASSWORD@127.0.0.1:3306/xver

Some apps ask for each part separately: host 127.0.0.1, port 3306, user, database and password. Keep them in the app's settings file or environment variables, never in code that goes into Git.

Give an app its own user and database#

The user xver cannot create databases. Use root instead, which connects only from the server itself. Open the web terminal or SSH in, or use an SSH tunnel, then run mysql -h 127.0.0.1 -P 3306 -u root -p and paste the root password from the console.

In mysql
CREATE DATABASE myapp;
CREATE USER 'myapp'@'127.0.0.1' IDENTIFIED BY 'MYAPP_PASSWORD';
GRANT ALL PRIVILEGES ON myapp.* TO 'myapp'@'127.0.0.1';

Replace MYAPP_PASSWORD with a long random password of your own. That app then uses the user myapp instead of xver, and sees only the database myapp.

Who can get in#

Way in Who
From outside People connecting from an IP you allow who know the database password
SSH tunnel People who can SSH into the server and know the database password
Programs on the server Programs that have the database password
Web terminal The owner and members who can manage the project, with no server password
SSH People who hold the server's password or key
Web console People who hold the server's password

Anyone with access to this server, coding agents included, can read the database password.

Change passwords#

What How
The server's password Server page, Access tab, press Reset password. The old one stops working at once
The database user xver Connect as root and run ALTER USER 'xver'@'%' IDENTIFIED BY 'NEW_PASSWORD';. After that, the password the console shows is out of date: keep the new one yourself and update every app that uses it

Back up and restore#

The data is on this server's disk and is not backed up automatically. Deleting the server or uninstalling the app deletes it. mysqldump writes a database out as an SQL file. With --single-transaction, it copies InnoDB tables as they were at one moment, without blocking the apps using them.

Back up to your computer so the file lives off the server. Through an SSH tunnel, change -h SERVER_IP to -h 127.0.0.1 and drop --ssl-mode=REQUIRED. Add --no-tablespaces: without it, mysqldump needs the PROCESS privilege, which the user xver does not have.

On your computer
mysqldump -h SERVER_IP -P 3306 -u xver -p --ssl-mode=REQUIRED --single-transaction --no-tablespaces xver > xver.sql

Restore with the mysql client by feeding the file into the target database. Tables with the same names are replaced by the ones in the file.

On your computer
mysql -h SERVER_IP -P 3306 -u xver -p --ssl-mode=REQUIRED xver < xver.sql
  • This backs up one database at a time. If you made more databases, back up each one with a user that has rights on it
  • While a backup runs, do not run ALTER TABLE, DROP TABLE or TRUNCATE TABLE on the tables being copied, or the file may hold wrong data
  • A backup file holds all your data. Guard it like a password, and test a restore before you need one

Remove the app#

  1. Back up with mysqldump first. Uninstalling deletes MySQL and all its data
  2. Open the server page, Apps tab
  3. Press Uninstall on MySQL, check what will be deleted, and confirm

The server stays and is billed as usual. If you no longer need it, delete the server. Its data is gone for good.

What it costs#

XVer does not charge for the app. You pay XVer for the server only. A server that is off is still billed. Delete it to stop billing. Its data is gone for good.

PlanNVMe diskBandwidthPer hourPer month
1 vCPU · 2 GB32 GB2 TB฿0.38/hr฿229/mo
2 vCPU · 4 GB40 GB4 TB฿0.70/hr฿419/mo

The price you pay is shown before you confirm

Compare every size on Cloud Server pricing.

Safety#

Do this Avoid this
Allow only the IPs you really use Letting every IP connect
A user per app, with rights on that app's database only Apps on the root account
Regular mysqldump backups kept off the server Keeping the data only on the server
  • The server's user xver can use sudo without a password, so anyone who can run commands on the server can reach all the data
  • Do not type the password right after -p in a command: the MySQL docs call that insecure. Do not paste it into a chat or a screenshot either

Frequently asked questions#

Is it free, and do I need an account?

MySQL Community Server is free and open source under the GPL. You need no account with anyone. Oracle also sells commercial editions for people who need a different licence. XVer charges only for the server.

What server size do I need?

s-1vcpu-2gb is enough for a small site or app. For a lot of data, many connections at once, or other databases on the same server sharing its RAM, choose s-2vcpu-4gb or larger.

How do I update it?

MySQL 8.4 LTS gets Ubuntu's security updates. A MySQL LTS series takes only necessary fixes, with no behaviour changes along the way. There is no automatic upgrade to a new major version: moving to the next LTS series means a backup with mysqldump and a restore into the new version.

Can I open it to the internet?

Yes. The server takes connections on port 3306 from the IPs you allow, at first only your own, and you can add more in the console. It needs the password made on the server, and the connection is encrypted with TLS.

I lost the database password. What now?

Show it on the install page in the console, where both the xver password and the root password are kept. If you changed a password yourself, the console still shows the old one.

Is XVer connected to MySQL?

No. XVer is not its developer or agent, and Oracle does not endorse this service.

฿229/mos-1vcpu-2gb

Install MySQL

Related posts

See all apps