انتقل إلى المحتوى

الدروس cPanel مبتدئ1 دقائق قراءة

How to Create a MySQL Database and User in cPanel

Create a MySQL database, a database user and assign privileges in cPanel — the details apps like WordPress need to connect.

بواسطة فريق تحرير ZSOLNET آخر تحديث

هذه الصفحة غير متاحة بالعربية بعد، لذا تُعرض بالإنجليزية.

أهم النقاط

  • A database, a user and privileges are all needed for an app to connect.
  • cPanel prefixes database and user names with your account name.
  • The host is usually localhost.

Most web apps store their content in a database. In cPanel you create three things: a database, a user, and the link between them.

The quick way: MySQL Database Wizard

  1. Open Databases → MySQL Database Wizard.
  2. Step 1: enter a database name and click Next Step.
  3. Step 2: enter a username and a strong password (use the generator), then Create User.
  4. Step 3: tick ALL PRIVILEGES and click Next Step.
yourdomain.com:2083

MySQL Database Wizard — Step 2: Create Database Users

Create User2
2 The wizard creates the database, then the user, then lets you grant ALL PRIVILEGES in one flow.

Note the full names

cPanel prefixes names with your account username. If your account is acme and you typed shop, the real names are:

Database: acme_shop
User:     acme_shopuser
Host:     localhost

Use these full names in your app’s configuration.

Manage existing databases

In MySQL Databases you can:

  • Change a user’s password.
  • Add an existing user to another database.
  • Check and repair a database.

Import or export data

Open phpMyAdmin, select the database, then use Import to load a .sql file or Export to download one. For large databases, ask support or use the command line on a VPS — browser uploads have size limits.

شارك X LinkedIn Facebook

الدخول إلى حسابك

أدِر نطاقاتك واستضافتك وفواتيرك من مكان واحد.

اتصال آمن مباشرة مع منطقة العملاء في ZSOLNET.

افتح لوحة تحكم ZSOLNET

ليس لديك حساب؟