Intrebare baza de date mysql

Discutii despre tot ce nu se incadreaza in celelalte categorii.

Moderators: Moderatori ajutatori, Moderatori

Post Reply
User avatar
Morthy
Utilizator neserios (tepar)
Utilizator neserios (tepar)
Posts: 61
Joined: 28 Jan 2018, 13:01
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Reputatie: Utilizator neserios (tepar)
Fond eXtream: 0
Contact:

09 Mar 2018, 15:04

Warning: Access denied for user 'nume baza de date '@'localhost' (using password: YES)

Nu stiu cum sa setez toate privilegiile acelea la baza de date mysql,pentru ca este pe centos web panel si nu am mai avut pana acum un astfel de webhost cu asa panel,pe cPanel era mult mai simplu..Cum pot sa dau acele privilegii? Sau trebuie sa dea cei de la webhost?
RoyalServer
User avatar
LondoN eXtream
Membru eXtream
Membru eXtream
Posts: 2755
Joined: 10 Oct 2014, 06:21
Detinator Steam: Da
SteamID: /id/london_extreamcs
Reputatie: Fost scripter eXtreamCS
Fost moderator ajutator
Membru Club eXtreamCS (6 luni)
Fond eXtream: 0
Location: Roman, Neamț
Has thanked: 3 times
Been thanked: 12 times

09 Mar 2018, 15:17

mysql> GRANT ALL PRIVILEGES ON database_name.* TO 'username'@'localhost';
User avatar
Mihail2
Membru, skill +1
Membru, skill +1
Posts: 350
Joined: 14 Oct 2011, 21:42
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 24 times
Been thanked: 16 times
Contact:

09 Mar 2018, 15:35

Pare parola gresita cel mai probabil (sau user).
User avatar
Morthy
Utilizator neserios (tepar)
Utilizator neserios (tepar)
Posts: 61
Joined: 28 Jan 2018, 13:01
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Reputatie: Utilizator neserios (tepar)
Fond eXtream: 0
Contact:

09 Mar 2018, 15:37

Mihail2 wrote:Pare parola gresita cel mai probabil (sau user).
Nu e gresit nimic,trebuie sa setezi niste privilegii.
User avatar
Mihail2
Membru, skill +1
Membru, skill +1
Posts: 350
Joined: 14 Oct 2011, 21:42
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 24 times
Been thanked: 16 times
Contact:

09 Mar 2018, 15:39

Din experienta mea, php intorcea eroare ca nu merge sa execute query-ul in caz ca n-ai privilegii, nu eroare de conectare.

Scuze atunci.
Post Reply

Return to “Discutii generale”

  • Information