mysql

Create a MySQL Database

To create a MySQL database through the command line in a GoPanel environment

Syntax

mysql <Domain> <Database Name> <Database Username> <Database Password> <Remote>

Examples

Here's how to create a MySQL database and assign privileges using the GoPanel via the command line:
$ /go/mysql domain.com dbname myusername mypassword
Replace domain.com, dbname, myusername, and mypassword with your actual values

To create a MySQL database that allows remote connections
$ /go/mysql domain.com dbname myusername mypassword 1

Related GoPanel commands

installmariadb - Install or update MariaDB to the Latest Version
installsqlite - Installi the Latest SQLite Version on GoPanel Server
mysqlsync - Copy MySQL Databases from Local to Remote Server
sql - Create a MySQL database and import an SQL file into it


At Your Service

Our team is on hand 24/7 to not only solve technical issues, but to offer the guidance and technical support you need to succeed online. Give us a ring.

+2 01006931666 Chat
© 2020 - 2025 GoPanel Inc., all rights reserved.