Crearea unei baze de date MySQL în cPanel este un proces simplu și direct. Urmează acești pași pentru a crea baza de date:
1. Conectează-te la cPanel
- Accesează panoul de control cPanel al contului tău de găzduire web.
- Introdu numele de utilizator și parola pentru a te autentifica.
2. Navighează la secțiunea "Baze de date"
- Caută secțiunea "Baze de date" în cPanel. De obicei, aceasta se află în partea de sus a paginii.
- Fă clic pe "MySQL Databases".
3. Creează baza de date
- În secțiunea "Creează o bază de date" (Create a New Database), găsește câmpul în care poți introduce numele dorit pentru baza de date.
- Introdu un nume pentru baza de date (de obicei, este bine să folosești un nume descriptiv).
- Fă clic pe butonul "Creează baza de date" (Create Database).
4. Adaugă utilizatori la baza de date
- După ce ai creat baza de date, va trebui să adaugi un utilizator care să aibă acces la aceasta.
- Derulează în jos până la secțiunea "Adaugă utilizator la baza de date" (Add User to Database).
- În câmpurile corespunzătoare, selectează un utilizator existent sau creează un nou utilizator (vezi pasul următor pentru detalii despre crearea unui utilizator).
5. Creează un utilizator MySQL (dacă este necesar)
- În aceeași pagină, caută secțiunea "Adaugă un utilizator MySQL" (Add New User).
- Introdu un nume de utilizator (folosește un nume descriptiv).
- Alege o parolă puternică pentru utilizator (cPanel îți va oferi opțiuni pentru a genera o parolă sigură).
- Fă clic pe "Creează utilizator" (Create User).
6. Acordă permisiuni utilizatorului
- Odată ce utilizatorul este creat, selectează-l din meniul derulant din secțiunea "Adaugă utilizator la baza de date" (Add User to Database).
- Alege baza de date pe care ai creat-o anterior.
- Fă clic pe butonul "Adaugă" (Add).
- Apoi, vei fi întrebat ce privilegii dorești să acorzi utilizatorului. De obicei, este recomandat să alegi "Grant All Privileges" pentru a oferi utilizatorului acces complet la baza de date.
- Fă clic pe "Întărește modificările" (Make Changes).
7. Verifică
- Odată ce ai completat acești pași, baza de date și utilizatorul ar trebui să fie create cu succes.
- Poți verifica dacă baza de date apare în lista bazelor de date din cPanel.
Concluzie
Acum ai creat cu succes o bază de date MySQL în cPanel, ai adăugat un utilizator și ai configurat permisiunile. Poți utiliza această bază de date pentru a stoca informații pentru aplicațiile tale web sau pentru site-ul tău. Dacă ai nevoie de ajutor suplimentar, cPanel oferă documentație detaliată și suport tehnic pentru utilizatori.