Jump to content
php.lv forumi

MySQL probleema..


SkyD

Recommended Posts

Hey.. Uzinstaleeju MySQL 4.0.18 versiju.. Veru valjaa ../bin/winmysqladmin.exe failu, tur piedavaa ievadiit username un passwordu, ievadu viss OK..

Veru valjaa PHP editoru, rakstu iekshaa

$link = mysql_connect("localhost", "Logins", "Parole")
 or die ("Could not connect to MySQL");

mysql_select_db ("test")
 or die ("Could not select database");

saglabaaju index.php ... eju http://localhost izmet

 

Warning: mysql_connect(): Access denied for user: 'Logins@localhost' (Using password: YES) in d:\lapa\index.php on line 2

Could not connect to MySQL

 

Kas par probleemu??

 

... Lūdzu palīdziet ...

Link to comment
Share on other sites

Nepareizu paroli lieto.

Pamēģini tukšus name/pass atstāt. Vai name=root, un pass tukšu. Ja neiet, tad fig zin ko esi tur sakonfigurējis.

19367[/snapback]

 

Nu ja nav name un pass tad viss iet, bet priekshkam vispaar tad vinji ir vajadziigi ???

Link to comment
Share on other sites

kad instaleeji MYSQL un kad vinsh tev PIRMO REIZI prasiija to login un pass, tad vaidzeeja rakstiit ROOT un ROOT

peec ja scriptaa tu lietotu:

mysql_connect("localhost","root",""); //sheit viss straadaa (paroli NEVAIG)

Edited by Klez
Link to comment
Share on other sites

×
×
  • Create New...