Hosting Management

Managing Databases

Create and manage MySQL databases for your applications

Managing Databases

Learn how to create and manage MySQL databases for WordPress, Laravel, or any other application.

Creating a Database

Steps:

  • Log into CyberPanel
  • Click "Databases" in the left sidebar
  • Select "Create Database"
  • Choose your website from the dropdown
  • Enter a database name (e.g., mysite_db)
  • Click "Create Database"

Creating a Database User

Steps:

  • Go to "Databases" > "Create Database User"
  • Select your database
  • Enter a username
  • Create a strong password
  • Click "Create User"
Save your database credentials! You'll need them for your application configuration.

Accessing phpMyAdmin

For advanced database management, use phpMyAdmin:

text
https://65.108.3.177:8090/phpmyadmin

Login with:

  • Username: Your database username
  • Password: Your database password

Database Connection Details

Use these details in your application configuration:

text
DB_HOST=localhost
DB_NAME=your_database_name
DB_USER=your_database_user
DB_PASS=your_database_password
DB_PORT=3306

Importing a Database

To import an existing database:

  • Open phpMyAdmin
  • Select your database from the left sidebar
  • Click "Import" tab
  • Choose your .sql file
  • Click "Go" to import

Database Backups

Always backup your database before making major changes. Use phpMyAdmin's Export feature or CyberPanel's backup system.

Last updated: January 20, 2025