Results 1 to 3 of 3

Thread: Allowing remote hosts to connect

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2003
    Location
    Auckland
    Posts
    1,139

    Allowing remote hosts to connect

    I know this is not a good idea but I only want one of my databases to allow this and then a script on my server will get all "good" records and add the "main" secure database.

    My question is using PHP MyAdmin how do I set the Privileges to allow remote hosts to add/edit and delete records??

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Allowing remote hosts to connect

    That would be a question for your web host. Unless your web host is you, in which case you need to forward the MySQL port (3306 by default) and make sure it's not blocked by any firewall. This will allow incoming connections. Then, for security reasons, you should add an account for remote access, and give it only as many priveleges as it needs. I don't know off hand if you can manage accounts in phpMyAdmin but you can do so using the GRANT command.

    Or, alternatively, you could build your own Web API to encapsulate the tasks needed. If you're not comfortable with using SQL then this is probably the easier option. However it does require you to be comfortable with PHP based authentication (using sessions). Otherwise, you can easily make it just as much of a security risk.

  3. #3
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: Allowing remote hosts to connect

    Your web host won't open up the mysql port. Your best bet is to find a web host which gives you an SSH loing and use a tunnel for the mysql port.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

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