A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Flash/MySQL Troubles

  1. #1
    Game Master ConnELITE's Avatar
    Join Date
    Apr 2005
    Location
    United States, DC
    Posts
    474

    Flash/MySQL Troubles

    Hi, I've been making some flash games for awhile that save user data to my servers MySQL database via PHP. I was wondering if and how I could run one of these games on a different server?

    In the PHP I've always used localhost when connecting since it's always been on my server, and I've been searching the forums along with google for a way to connect a server's mysql from another server and can't find anything.

    Thanks in advance for any help.
    BC

  2. #2
    5+5=55 Schfifty Five's Avatar
    Join Date
    Jun 2006
    Posts
    698
    Do you know your server's IP?

  3. #3
    Bearded (M|G)od MyFriendIsATaco's Avatar
    Join Date
    Dec 2002
    Location
    Awesomeville.
    Posts
    3,046
    Yeah, you should only need to know the hostname of the mysql server, but ALSO, you need to make sure that the mysql server allows you to make connections from IP's other than localhost. In some server's control panels, you are allowed to submit "safe" IP's that can connect to the mysql server. For the specifics though, you will need to talk to whoever is hosting the mysql database to see if that will be allowed.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center