Jump to content
php.lv forumi

no uz citu hostu


goma smile

Recommended Posts

RTFM:

http://dev.mysql.com/doc/refman/5.0/en/connecting.html

To specify the hostname and username explicitly, as well as a password, supply appropriate options on the command line:

 

shell> mysql --host=localhost --user=myname --password=mypass

shell> mysql -h localhost -u myname -pmypass

 

vai arī: http://lv2.php.net/mysql_connect

Link to comment
Share on other sites

a gadijuma tas nav pie privilegies ? kur host any ....

Jaa protams Mysql jabuut iestaadiitam ka var piekonekteeties no konkreetaas IP VAI * tas noziimee Jeb no kura servera....

[ katram lietotaajam tiek pieskjirts hosts no kura (iem) vinsh driikst pieslegties.... ]

 

 

Aleksejs --> ar GRANT tam nav nekaada sakara ... Userim kas konekteejas no cita hosta var arii nebuut (un biezji vien nav arii) GRANT privilegijas

parasti tam kas konekteejas no cita hosta uzliek minimaalas tiesiibas ....

GRANT --> tomeer ir administresanas tiesiibas , nevis atljauja izmantott DB ....

 

Edit: ups Nesmu vel pamodies :( jaa ja tiesiibu pieskirsanai izmanto atslegvardu GRANT ... , nezkapec es uzreiz aizdomajos par GRANT kaa privilegiju liimeni ...

Edited by Grey_Wolf
Link to comment
Share on other sites

×
×
  • Create New...