Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End accessing mysql remote database from local computer

  • This topic is empty.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #154654
    Anonymous
    Inactive

    Im trying to create an admin panel for my website and the admin panel will upload new data to the mysql database. Is it possible and secure to keep my admin panel in my local computer and access the database that is in mysql hosting provider? so my admin panel will only be accessible with my computer .

    #154657
    Alen
    Participant

    It should be fine.

    #154658
    __
    Participant

    This will depend on your host, and what they allow. The most obvious solution would be to use something like phpMyAdmin – almost all hosting providers (IME, that offer MySQL at all) have something like this set up by default.

    The next option would be to SSH to your database server and use the MySQL command line interface. If you literally want your DB to be accessible “only” from your computer, this is what you would need. Adding a GUI on top of this would be more complex, though, and more dependent on what your host wants to allow/accommodate.

    = = = = = edit = = = = =

    I think I misunderstood your question. Are you looking to create a web-based admin panel, but only have it on your local version of the site (and not on the “live” site)? If so, yes, that should work just fine.

    #154671
    Anonymous
    Inactive

    Yes that is what i meant. i will need something like xampp to run php on my computer right?

    #154675
    __
    Participant

    yeah, xampp is one of the simplest ways to go about it.

    #154819
    Anonymous
    Inactive

    So i am able to access any remote mysql database as long as i know the password, host, and username? i thought only files that are in the domain can access the domain database.

    #154822
    Alen
    Participant
    • Install whatever you need on your local machine.
    • Configure your app/site to use your remote MySQL credentials
    • Make sure you have internet connection
    • Done
    #154909
    Anonymous
    Inactive

    Set privileges? wouldn’t i just need to log in normally in my php file like this?
    what privileges do i need to set?

    $connect = mysql_connect("host", "username", "password");

    #154960
    __
    Participant

    It would depend on the database user/ database host. For example, some hosts restrict how you can connect to your DB from computers other than your website server; or give you a different user (with different privileges) for such access. Or, you might have no problems/restrictions at all. Have you tried yet?

    #154973
    Anonymous
    Inactive

    I haven’t tried it yet but ill make sure that the host i use allows remote connections. Thank you.

Viewing 10 posts - 1 through 10 (of 10 total)
  • The forum ‘Back End’ is closed to new topics and replies.