How to Create a Database (MySQL) and Make Connection Settings?
Yayınlanma: 24 Şubat 2026 • Yazar: Kadir Gülmez
1 dk okuma
MySQL Database Creation Guide
Learn the 3 basic steps needed to run your scripts.
The place where the data on your website (posts, members, settings) is stored is MySQL Database. Creating the database information requested when installing a script is actually very simple.
01. STEP
Create Database
Enter cPanel and click on the "MySQL® Databases" icon. Write a name in the "New Database" section (Ex: site_db) and create it.
02. STEP
Set User and Password
On the same page, scroll down and create a username and a strong password from the "Add New User" section. Make a note of this password!
03. STEP
Assign User to Database
Select the user and database you created from the "Add User To Database" section and press the "Add" button. On the screen that opens, check the "ALL PRIVILEGES" box.
💡 Connection Setting (Config): In the settings file of your script (usually config.php) "localhost" is often written in the DB_HOST section. The database name and username are the full name you created in the panel (Ex: username_database).
Do everything right and database connection errors will be history!