suport Posted March 14, 2009 Report Share Posted March 14, 2009 man ir probleema majas lapa staw uz cita pc , bet mysql db staw uz cita .. es itka uz ta kur staw majas lapa uzstaisu unban.php ievadu sito ten lai vinsh db nem no ta pc uz kura nestaw lapa ! mysql_connect('http://sqlhost-3.ctts.lv','root','112'); mysql_select_db('unban'); eju http://adrese/unban.php met Warning: mysql_connect() [function.mysql-connect]: Unknown MySQL Server Host 'http' (11001) in C:\AppServ\www\unban.php on line 29 Warning: mysql_select_db() [function.mysql-select-db]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\AppServ\www\unban.php on line 30 Warning: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in C:\AppServ\www\unban.php on line 30 Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\AppServ\www\unban.php on line 31 Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in C:\AppServ\www\unban.php on line 31 Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in C:\AppServ\www\unban.php on line 31 Ka es varu uzciniit ta lai no ta hosta uz kura staw majaslapa lai vinsh var connecteties tam citam pc hostam kuram staw db ! HELP ! CERU KA SAPRATAT ! Quote Link to comment Share on other sites More sharing options...
marcis Posted March 14, 2009 Report Share Posted March 14, 2009 Ir kaut kāda nojausma, kas ir protokoli? mysql_connect('sqlhost-3.ctts.lv','root','112'); mysql_select_db('unban'); Protams, pārliecinies, ka hostētājs atļauj tev piekonektēties pie datubāzes no ārpuses. Quote Link to comment Share on other sites More sharing options...
suport Posted March 15, 2009 Author Report Share Posted March 15, 2009 kads varetu paskaidrot kas ir protokuli ? un no arpuses pieeja ir .. ! Quote Link to comment Share on other sites More sharing options...
zinatnieks Posted March 15, 2009 Report Share Posted March 15, 2009 konetējoties klāt datubāzei priekšā nav jāraksta "http://" Ja tu izdarīji kā marcis rakstīja, tad vajadzētu strādāt. Quote Link to comment Share on other sites More sharing options...
Morphius Posted March 18, 2009 Report Share Posted March 18, 2009 ir veel taada maza nianse ka datubazei jadod atlauja pieklut no citiem hostiem!!! Ja atlauja stav uz 'localhost' tad nenoviena cita servera datubaazee klaat netiksi! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.