HELP! PHP guys - how do I back up a database????

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Antonio
    Too lazy to set a custom title
    • Oct 2001
    • 14136

    #1

    HELP! PHP guys - how do I back up a database????

    Ok, I want to back up my whole database for one site.
    I have FTP access but no phpMyAdmin access, no control panel either.
    I want these fields "checked" when expoerting the database:



    I have the dabase name, username, password
    I'm guessing this can be done with PHP?

    Pseudo PHP code:
    connect to the database
    export the whole database to a sql file
    done


    ???

    Thanks in advance
  • Sam Granger
    Confirmed User
    • Dec 2004
    • 3958

    #2
    http://phpminiadmin.sourceforge.net/

    Try that - 1 php file, works really good.

    Sort of phpmyadmin but lightweight.

    $35-40 Per Signup, 60-70% Rev Share, over 80 Sites, Exclusive Sites, tons of free content
    14,000+ Free hosted Galleries, RSS feeds, Domain Hosting, Embedded Flash Movies
    Join Fetish Hits now!
    ICQ: 358652230

    Comment

    • 2012
      So Fucking What
      • Jul 2006
      • 17189

      #3
      Easy, I don't have the code in front of me but easy to google ... just connect and dump to a file ?

      Probably better ways but that works ...
      best host: Webair | best sponsor: Kink | best coder: 688218966 | Go Fuck Yourself

      Comment

      • woj
        <&(©¿©)&>
        • Jul 2002
        • 47882

        #4
        install your own phpmyadmin, problem solved...
        Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
        Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
        Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager

        Comment

        • SmokeyTheBear
          ►SouthOfHeaven
          • Jun 2004
          • 28609

          #5
          $query = "SELECT * INTO OUTFILE '$backupFile' FROM $tableName";
          hatisblack at yahoo.com

          Comment

          • 2012
            So Fucking What
            • Jul 2006
            • 17189

            #6
            you might have a problem with write access ... maybe just email it
            best host: Webair | best sponsor: Kink | best coder: 688218966 | Go Fuck Yourself

            Comment

            • Antonio
              Too lazy to set a custom title
              • Oct 2001
              • 14136

              #7
              Originally posted by Sam Granger
              http://phpminiadmin.sourceforge.net/

              Try that - 1 php file, works really good.

              Sort of phpmyadmin but lightweight.
              downloaded! thanks!!!!!!!!!

              Comment

              Working...