473,386 Members | 1,835 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

export local DB to Server DB

Hi,
can anybody refer me to a tool so that i can upload data from my local
mysql DB to server DB without phpmyadmin. I have FTP and other access
to server. my DB is like 100 MB.
Regards
Jaunty
Jul 17 '05 #1
9 2386
On 14 Jul 2004 11:38:19 -0700, sm***********@hotpop.com (Jaunty Edward) wrote:
can anybody refer me to a tool so that i can upload data from my local
mysql DB to server DB without phpmyadmin. I have FTP and other access
to server. my DB is like 100 MB.


http://dev.mysql.com/doc/mysql/en/SELECT.html
See the OUTFILE clause.

http://dev.mysql.com/doc/mysql/en/LOAD_DATA.html

Doesn't involve PHP, so offtopic for these groups, try a MySQL group or
mailing list.

--
Andy Hassall <an**@andyh.co.uk> / Space: disk usage analysis tool
http://www.andyh.co.uk / http://www.andyhsoftware.co.uk/space
Jul 17 '05 #2
Jaunty Edward wrote:
can anybody refer me to a tool so that i can upload data from my local
mysql DB to server DB without phpmyadmin. I have FTP and other access
to server. my DB is like 100 MB.


Hi Jaunty,
Most servers will enforce a limit for PHP scripts way below 100Mb.
Perhaps the best way to import it it to use SSH if your host will allow it.

Export the file using mysqldump on your local server.

FTP the file to your server, log in through SSH and then use
mysql -u <username> -p < whatever.sql

Enter your mysql password at the prompt and the contents of the sql file
will be executed.

Regards,

Andy
Jul 17 '05 #3
Jaunty Edward wrote:
can anybody refer me to a tool so that i can upload data from my local
mysql DB to server DB without phpmyadmin. I have FTP and other access
to server. my DB is like 100 MB.

I use MySQLPHPbak to make backups files (sql files), thise you can then upload
to another server and import into mysql with the
"\. /path/to/mysql_data_file.sql".

It seems like version 0.2.2 was the last version released, but haven't found
any place where to download that one. Zend does have version 0.1.1 on their
homepage, I suggest you make a search for "MySQLPHPbak" at google.com.
//Aho
Jul 17 '05 #4
Andy Barfield wrote:
Export the file using mysqldump on your local server.

FTP the file to your server, log in through SSH and then use
mysql -u <username> -p < whatever.sql

....and I should have said that you need to check the manual pages for
mysql and mysqldump for a list of options...

http://dev.mysql.com/doc/mysql/en/mysql.html
http://dev.mysql.com/doc/mysql/en/mysqldump.html

regards, Andy
Jul 17 '05 #5
> Jaunty Edward wrote:
can anybody refer me to a tool so that i can upload data from my local mysql DB to server DB without phpmyadmin. I have FTP and other access to server. my DB is like 100 MB.

I use MySQLPHPbak to make backups files (sql files), thise you can

then upload to another server and import into mysql with the
"\. /path/to/mysql_data_file.sql".

It seems like version 0.2.2 was the last version released, but haven’t found any place where to download that one. Zend does have version 0.1.1 on their homepage, I suggest you make a search for "MySQLPHPbak" at google.com.
//Aho

J.O.
I am interested in incremental backups of my mysql db’s, since they
are too large. Is this the right solution for that?

--
http://www.dbForumz.com/ This article was posted by author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.dbForumz.com/PHP-SQL-expo...ict129471.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbForumz.com/eform.php?p=432359
Jul 17 '05 #6
> Jaunty Edward wrote:
can anybody refer me to a tool so that i can upload data from my local mysql DB to server DB without phpmyadmin. I have FTP and other access to server. my DB is like 100 MB.

I use MySQLPHPbak to make backups files (sql files), thise you can

then upload to another server and import into mysql with the
"\. /path/to/mysql_data_file.sql".

It seems like version 0.2.2 was the last version released, but haven’t found any place where to download that one. Zend does have version 0.1.1 on their homepage, I suggest you make a search for "MySQLPHPbak" at google.com.
//Aho


Let’s also mention brute force copy of data. You can:
(a) pkzip all the files in your db directory (tables, indecis, etc.)
(b) copy the zipped file to remote server
(c) if you have ssh, unzip the data into the db directory on remote
server
(d) repair tables
If you don’t have ssh, then if you have proper access, you can copy
the files via ftp to remote server. It helps if both servers are
taken down when you are doing the above.

--
http://www.dbForumz.com/ This article was posted by author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.dbForumz.com/PHP-SQL-expo...ict129471.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbForumz.com/eform.php?p=432411
Jul 17 '05 #7
In article <lY*****************@roc.nntpserver.com>, steve wrote:
I am interested in incremental backups of my mysql db’s, since they
are too large. Is this the right solution for that?


You can dump the database to a textfile.
And then use something like duplicity to store only an incremental file
on the backup server.

--
Tim Van Wassenhove <http://home.mysth.be/~timvw>
Jul 17 '05 #8
steve wrote:
Let’s also mention brute force copy of data. You can:
(a) pkzip all the files in your db directory (tables, indecis, etc.)
(b) copy the zipped file to remote server
(c) if you have ssh, unzip the data into the db directory on remote
server
(d) repair tables


This requiers that you

1. Have total controll of the server in question (root access).
2. You don't have other data/users in the database on the remote server.
//Aho
Jul 17 '05 #9
steve wrote:
I am interested in incremental backups of my mysql db’s, since they
are too large. Is this the right solution for that?


Then you need somehow to compare the two databases, if it's possible to adjust
the data on the remote server.

If you use MySQLPHPbak, you could always save the latest file you got out for
the database in question, and when you take out a new one, you just make a
"patch" file, which will then only contain the difference between the two
files and then upload the "patch" and run it in mysql.

There may be a lot better options, but that is what I can think of on short hand.
//Aho
Jul 17 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Mike MacSween | last post by:
My client has an MS Access database application on her local machine. I have full access to that in terms of changing the design. I've got a simple PHP/MySql application on shared hosting, so no...
3
by: Bennett Haselton | last post by:
I'm working on an ASP.Net project where I want to test code on a local machine using a local database as a back-end, and then export it to the production machine where it uses the hosting...
1
by: Dave Crypto | last post by:
Hi there, SUMMARY: 1) When I use phpadmin to export a large database, the file created on my local PC never containes all the tables and information. It seems to max out at about 10mb. 2)...
6
by: maricel | last post by:
Is there anybody out there who have any idea why EXPORT is relatively slower when putting the output file on a network drive - map drive from onother PC compared to putting it on my local PC drive...
1
by: Holly | last post by:
I have a web page in C# that export the crystal report to pdf files. I can export the pdf files on my local driver but if I change the file path to a remote server, the program doesn't give any...
2
by: manmit.walia | last post by:
Hello All, I am stuck on a task that I need to complete. What I have is a SQL 2005 DB running with a Table called Docs. The table structure consists of the following: Table Structure for Docs...
0
by: KNN | last post by:
I am running the frond end Access 2003 application under Citrix. There is no problem running the appcilation in this mode. When I try to export a report and select a drive on the citrix server, ...
12
by: =?Utf-8?B?YXVsZGg=?= | last post by:
i current have a way to read both local and remote machines registry keys and create a textual view (.txt output). i now looking for ways to do export of local and remote mahcine registry keys...
3
by: ll | last post by:
I've exported the tables and data in SQL2000 using the wizard, although I would also like to be able to export the relationships. I've re-established the PKs manually already. Regarding the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.