Jump to content

Recommended Posts

Posted

I have MySQL databases that hosted in a hosting server.

Is it possible building a command line backup utility using AutoIT so I can schedule it to run every day from my PC ?

I have no physical access and have no shell access/account on the server

Thank you :)

Posted

It's interesting that you "have" databases, but don't have access to them. How is that possible?

I've never used mysqldump.  Can you access the database files directly from a web browser?

Posted

@Artisan: I mean i dont have a physical access to the server, I only have a access through cpanel.

I cant access the database files directly from a web server, but I can access it using MySQL function/statement.

Thanks :)

  • Solution
Posted

Answering my own post, this is not connected with AutoIT, but hopefully this post can help somebody somewhere who landed on this page:

mysqldump.exe that come with MySQL server has a ability to backup from a remote server:

c:>mysqldump -u MyUserName -pMyPassword -h my-server.com --all-databases > c:backupalldbs_of_myserver_dot_com.sql

Note that between "-u" and MyUserName has a space, but between "-p" and "MyPassword" has no space.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...