473,385 Members | 1,548 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,385 software developers and data experts.

Copy database from one server to another

Does anyone knows how to copy database from one server to another. By
copying I mean literally everything, not just the database. I know we
can dump the database from one server then reload it to another one.
However, I have a specific need for this and here is my problem:

I have my development server as of RedHat 9.0 and I install the
combination of LAMPS (Linux+Apache+MySQL+PHP+SSL). I configure it
works perfectly on my development system under one root directory, for
instance /sysapps, by specifying the --prefix director points to that
system applications root dir. Now my target system is an SBC (Single
Board Computer) which has the capability of PC compatible for Linux
(Linux base SBC with PC memory map 100% compatible). I tar+gzip the
/sysapps on the development PC and gunzip+untar it to the target SBC.

First when I tried to start neither Apache nor MySQL works. It
complains about library and I figured out that the library that
currently on Dev. System is 2.3.2 (eg. libc-2.3.2.so, etc.) and on my
target SBC is 2.2.5. I copied all required libraries (from Dev system
to target SBC) and re-adjust the symbolic links on the target then the
Apache works fine. (I also add needed lines into /etc/ld.so.conf and
rerun /sbin/ldconfig as well)

Second I want to start MySQL then the daemon doesn't start (if I run
"top" then I see the system tries to start the daemon but then it
disappears) but if I look at the
/sysapps/mysql-4.0.21/data/<system_name>.err then I saw it says "mysql
started". I went a little further by running the
/sysapps/mysql/bin/mysqld_safe manually at the command prompt then
here is what I got:

[root@quangngai bin]#./mysqld_safe
Starting mysqld daemon with databases from /sysapps/mysql-4.0.21/data
../mysqld_safe: line 358: 219 Segmentation fault $NOHUP_NICENESS
$ledir/$MYSQLD $defaults --basedir=$MY_BASEDIR_VERSION
--datadir=$DATADIR $USER_OPTION --pid-file=$pid_file --skip-locking
$err_log 2>&1

STOPPING server from pid file
/sysapps/mysql-4.0.21/data/quangngai.ppnetworks.com.pid
040925 12:58:07 mysqld ended

So, it doesn't start at all since I got some problem but I couldnot
figure out what is the problem (I checked the mysqld_safe script and
line 358 doesn't contains very useful info-> that is the line end of
the while-loop).

Here is my general info:

+ MySQL 4.0.21
+ OS -> Linux
+ All neccessary configurations are set (eg. create mysql user,
group, change ownership on directories, etc. are set the same on both
dev. and target.)

and now my questions are:

1. Let's go back to the basic: Can I do this ?
2. From the difficulty above, looks like I can't. If I can't do
this to copy database from a development system to a target system
then what is the way to realize this (provided that my target SBC is
only small system then I can't just put gcc and all other goodies
stuffs on it to make it a development and production env). I am
pretty sure that I don't have to do the cross-compiling since all my
other stuffs I just develop on my Dev. system and it runs fine on the
target SBC (it even works with Apache+OpenSSL+PHP as aforemention)
3. I really need to have MySQL database server run on this target
SBC since it will definitely save me a ton of headache later in
developing my full-feature application suites. (I don't want to run
the client on my target SBC and access some database server somewhere.
My goal is to embed all system applications and user applications
into the same SBC).
4. If this is completely doesn't work, then what is the alternative
? I do want a database that support C-API and PHP (my application
does need these) like MySQL. Any suggestion ?

Thank you very much for all info and pointers to this request in
advance.

Regards,
Khue Pham
Jul 20 '05 #1
1 3444
On 25 Sep 2004 10:16:31 -0700, in mailing.database.mysql
kh**********@yahoo.com (Khue Pham) wrote:
| Does anyone knows how to copy database from one server to another. By
| copying I mean literally everything, not just the database. I know we
| can dump the database from one server then reload it to another one.
| However, I have a specific need for this and here is my problem:
|
| I have my development server as of RedHat 9.0 and I install the
| combination of LAMPS (Linux+Apache+MySQL+PHP+SSL). I configure it
| works perfectly on my development system under one root directory, for
| instance /sysapps, by specifying the --prefix director points to that
| system applications root dir. Now my target system is an SBC (Single
| Board Computer) which has the capability of PC compatible for Linux
| (Linux base SBC with PC memory map 100% compatible). I tar+gzip the
| /sysapps on the development PC and gunzip+untar it to the target SBC.


I would suggest that you install the applications, not just copy them,
and then copy the data across.
---------------------------------------------------------------
jn****@yourpantsbigpond.net.au : Remove your pants to reply
---------------------------------------------------------------
Jul 20 '05 #2

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

Similar topics

1
by: sbh | last post by:
I need to copy data from a table on one Oracle server to another. Scenario: Need to create a stored procedure in server a, database aa that will copy data from server b, database bb, table bbb to...
5
by: Kevin | last post by:
Can anyone recommend the easiest way to get a full copy of a database from one server to another. The servers are not part of the same organization or network. I have received a backup of the...
7
by: lgbjr | last post by:
Hello All, I¡¯m using a context menu associated with some pictureboxes to provide copy/paste functionality. Copying the image to the clipboard was easy. But pasting an image from the clipboard...
4
by: JIM.H. | last post by:
Hello, I am trying to write the data I got from a web service to my table in SQL Server I need to append the dataset wsDS to the dataset ds and do update. PVS.myWS.Loader load = new...
2
by: nosipho | last post by:
Hello guys, I need to copy a database in SQL 2000 to another SQL2000 server. I tried backing up the database to a folder then restore it but it's not happening. Please help to know how to copy...
5
by: Steve | last post by:
Hi; I thought I would rephrase a question I asked in another post to more quickly get to the heart of the matter. My apologies for anyone who is offended by what appears to be a repetition. ...
1
by: ll | last post by:
Hi, I have copied a MS SQL database to my local machine and am testing it with ASP pages, locally, on IIS. I have a db connect page that keeps the current connections for the live database. My...
1
vanc
by: vanc | last post by:
Anyone know the best way to attach a database that is created with SQL Server Studio as a database file in Visual Studio? I created a database with Studio and now decided to copy it to local folder...
2
by: Dev guy | last post by:
Hi all is there a simple command where I can just copy some data from one database server to another? For example, lets say i have two servers that have the same table called "States" If I...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.