Remote acces to mySQL with facebook -
i'm working in facebook app , want access mysql database. have installed xampp because has php, apache, mysql , others. need access mysql database app i've been looking how access in remote mode dond't found solution.
the general method acces mysql database php this: mysql_connect("localhost","user","password"); have been configured info base of operations without pass , take user name don't know set in first, 1 ip, general ip? how know server ip? if simple programme in localhost works good, if same in app have problem: error connecting database
in search of solution found have modify "my.ini" form mysql this: #bind-address="127.0.0.1" or bind-address = "0.0.0.0" have same problem.
if helps, i'm work heroku , git bash.
https://devcenter.heroku.com/articles/facebookhttps://devcenter.heroku.com/articles/facebook
thanks
in first part of mysql_connect function, can set in domain name server, e.g. mysql_connect( 'mysqlserver.com', 'user', 'pass' );
, should work (if have domain name it, is).
using ipconfig
command on server give it's ip address. don't need alter of mysql settings except allowing remote access database.
mysql facebook
No comments:
Post a Comment