![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 47 Pomógł: 0 Dołączył: 4.04.2009 Ostrzeżenie: (0%) ![]() ![]() |
Próbuję z bazami mysql i na localhost, mi to jakoś idzie. Problem gdy założyłem bazę na unl.pl
Po rejestracji pokazało że host to : sql1.wmfreehost.com, hasło i user- to moje (IMG:http://forum.php.pl/style_emoticons/default/winksmiley.jpg) zalożyłem bazę i tabelę, i teraz próbuję połączyć się. Mam webserv'a i napisałem skrypcik do połączenia : Kod <? $dbhost = "http://sql1.wmfreehost.com"; //host $dbuser = "blabla"; // nazwa uzytkownika $dbpass = "blabla"; // haslo user $dbname = "baza"; // baza danych $dbc = @mysql_connect($dbhost, $dbuser, $dbpass) or die ('Nie moge polaczyc sie z Mysql'); //laczymy z baza mysql_select_db ($dbname) or die ('Nie moge wybrac bazy'); //wybieramy baze danych ?> i oczywiście po uruchomieniu pokazuje 'Nie moge polaczyc sie z Mysql' I czemu tak, mądrzy przyajciele? Ten post edytował marecki33 30.06.2009, 21:38:37 |
|
|
![]() |
![]()
Post
#2
|
|
Newsman Grupa: Moderatorzy Postów: 2 033 Pomógł: 290 Dołączył: 21.12.2007 Skąd: Łódź ![]() |
Jak dla mnie, to host sql1.wmfreehost.com nie istnieje:
Cytat blooregard@Acer:~$ ping -c 1 sql1.wmfreehost.com ping: unknown host sql1.wmfreehost.com blooregard@Acer:~$ hping2 -S -p 3306 sql1.wmfreehost.com [resolve] Could not resolve address: Connection timed out blooregard@Acer:~$ whois sql1.wmfreehost.com Whois Server Version 2.0 Domain names in the .com and .net domains can now be registered with many different competing registrars. Go to http://www.internic.net for detailed information. No match for "SQL1.WMFREEHOST.COM". >>> Last update of whois database: Tue, 30 Jun 2009 20:54:43 UTC <<< root@Acer:/home/blooregard# xprobe2 sql1.wmfreehost.com Xprobe2 v.0.3 Copyright Š 2002-2005 fyodor@o0o.nu, ofir@sys-security.com, meder@o0o.nu [+] Target is sql1.wmfreehost.com Can not resolve sql1.wmfreehost.com: Unknown host root@Acer:/home/blooregard# nmap sql1.wmfreehost.com Starting Nmap 4.76 ( http://nmap.org ) at 2009-06-30 23:00 CEST Failed to resolve given hostname/IP: sql1.wmfreehost.com. Note that you can't use '/mask' AND '1-4,7,100-' style IP ranges WARNING: No targets were specified, so 0 hosts scanned. Nmap done: 0 IP addresses (0 hosts up) scanned in 0.10 seconds Dlatego nie bardzo sie możesz połączyć chyba... //EDIT: Cytat Ok. Już się dowiedziałem, ma blokadę. A sam skrypt uruchamiany z tegoż serwera działa i bazę otwiera.
Tak zadziałało? Ten post edytował blooregard 30.06.2009, 22:05:17 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 8.10.2025 - 05:13 |