CR Servers home
CR Servers home
HostingWeb Hosting
VPSVPS Servers
DedicatedDedicated Servers
ColocationColocation
Contact Us
HomeHomeServicesServicesDomainsDomains
Data CenterData Center

Network Connectivity

Power Infrastructure

Climate Control

Physical Security

SupportSupport

Open Support Ticket

Knowledge Base

Security Overview

Anti-Spam

Abuse Policy

AboutAbout Us

Partners

Privacy

InsightsIndustry Insights
  1. Home
  2. Support
  3. Knowledge base
  4. Hosting
  5. Create MySQL databases and users

​
​

Create MySQL databases and users

Create a MySQL database and user in the hosting control panel, grant or revoke permissions, and delete a database after you have a backup.

Shared hosting stores site data in MySQL / MariaDB. Create one database per application, then a user that can only reach that database.

Create a database

  1. Open the hosting control panel from the client area.
  2. Open Databases / MySQL.
  3. Create a database. The panel adds your account prefix to the name (for example account_shop); use the full name in the app config.
  4. The database host is localhost for sites and apps on your CR Servers hosting. To connect from outside the server, open a ticket.

Create a user

Create a database user with a strong password. Do not reuse the hosting or client-area password. The user also gets the account prefix (for example account_shopuser).

The panel doesn't show the password again after you set it. If it's lost, set a new one for that user and update the app config.

Grant, edit, or revoke permissions

  1. Open the user ↔ database permissions screen.
  2. Grant the user access to the new database (typically all privileges for that one database).
  3. Edit later if you need a read-only user for reporting.
  4. Revoke access when a user should no longer reach that database.

The application’s wp-config.php or equivalent needs the full database name, user, password, and host.

Connect from PHP

<?php
$pdo = new PDO(
    'mysql:host=localhost;dbname=account_shop;charset=utf8mb4',
    'account_shopuser',
    'the-database-password',
    [PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION]
);

Keep these values in a config file that visitors can't download: a .php file outside the html folder, or, if your FTP access is limited to a folder inside html, a .php file in a subfolder (for example private/) with an .htaccess containing Require all denied. Never put the password in JavaScript or HTML.

phpMyAdmin

If the panel offers phpMyAdmin (or another SQL browser), use it to inspect tables and run one-off queries. Prefer application backups and imports for large changes.

Delete a database

Download or confirm a backup first. Deleting a database removes its tables permanently.

  1. Confirm no live site still points at that name.
  2. Revoke users from the database if the panel asks you to.
  3. Delete the database from the same MySQL list.

Open a ticket if you need a restore from a hosting snapshot after a mistaken delete.

On this page

    Create a database
    Create a user
    Grant, edit, or revoke permissions
    Connect from PHP
    phpMyAdmin
    Delete a database

Related articles

    Hosting control panel overview
    Create and manage FTP accounts
Back to HostingAll guides

Need hands-on help?

Open a ticket and a CR Servers engineer will follow up with clear next steps.

Open a support ticketContact sales

On this page

    Create a database
    Create a user
    Grant, edit, or revoke permissions
    Connect from PHP
    phpMyAdmin
    Delete a database

Related articles

    Hosting control panel overview
    Create and manage FTP accounts

SERVICES

Web HostingAI ConnectDomainsVPS ServersColocationDedicated ServersResellersRefer a Friend

ABOUT CR SERVERS

About UsSupportClient AreaFAQTerms of ServicePrivacy PolicyData Center

Call us directly:

+506 2256-3944

WhatsApp:

+506 6059-2405

#509 Trifami, Avenida 1, Calle 2

San José, Costa Rica.

Secure payment methods:
Copyright © 2026 CR Servers - Sistemas Edenia Internacional S.A. | All rights reserved