Personal Account
Registration and access
Payments & Finance
Communications and Notifications
Notifications
Integrations and bots
Status & Reference (Policies, Limits, Terms)
Restrictions & Policy
Terminology and Metrics
Servers: VPS/VDS and dedicated
Start and management
Providers: Hetzner
Providers: Contabo
Linux: access, administration, security
Access and Accounts
Software and Environments
Backups and FTP
Networking and Diagnostics (Linux)
Windows: Access, Administration, Networking
Connection and Access
Web Stack and Databases
Languages and PHP Environment
Certificates and Domains
VPN & Privacy
Client: Access and Applications
Game Hosting: Minecraft
Server Setup
AI and ML
Model Deployment
Reselling
MySQL installation
MySQL is a free relational database management system.
First, update the system package and repository lists:
sudo apt-get -y update && sudo apt-get -y dist-upgrade
Â
Add the MariaDB repository:
curl -sS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash
Â
Install MariaDB:
sudo apt-get -y install mariadb-server
Â
Next, start the client using the following command:
mysql -u root -p
Â
The ";" character is required in SQL queries!
Select the MySQL system database:
USE mysql;
Â
Create the first user:
CREATE USER 'spacecore'@'localhost' IDENTIFIED BY '123456';
Â
Now create a database:
CREATE DATABASE server;
Â
Use the following two commands to grant the user access to the database:
GRANT ALL PRIVILEGES ON server.* TO 'spacecore'@'localhost' WITH GRANT OPTION;
FLUSH PRIVILEGES;
Â
Opening the database for external access:
If you need to connect to MySQL from a host other than localhost, edit /etc/mysql/my.cnf and find the bind-address line so that it looks as follows:
#bind-address = 127.0.0.1
Â
Restart MySQL:
service mysql-server restart








