473,569 Members | 2,698 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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+M ySQL+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>.e rr 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_BAS EDIR_VERSION
--datadir=$DATADI R $USER_OPTION --pid-file=$pid_file --skip-locking
$err_log 2>&1

STOPPING server from pid file
/sysapps/mysql-4.0.21/data/quangngai.ppnet works.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 3459
On 25 Sep 2004 10:16:31 -0700, in mailing.databas e.mysql
kh**********@ya hoo.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+M ySQL+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****@yourpant sbigpond.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
8608
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 server a, database aa, table aaa. Let's say I have a user on server b, database bb named userB (password pw) that has rights to table bbb. Can...
5
7952
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 database created with enterprise manager but am unable to restore it into a database of the same name on my server. Thanks, Kevin
7
11608
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 is proving to be more difficult. These pictureboxes are bound to an AccessDB. If the user wants to add an image, they select an image using an...
4
2467
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 PVS.myWS.Loader(); DataSet wsDS=load.WsLoad(); dataGrid1.DataSource=wsDS; string strConn = ConfigurationSettings.AppSettings;
2
4533
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 database to another SQL server, or a disk and restore it to another SQL server.I don't know whether this was discussed before If it was, please forgive...
5
34033
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. My company has two identical web sites. One copy is for our customer, and one copy is for us to test our code changes on. We developed a hard to...
1
2412
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 question is, as the local db is named 'local,' is there another name I need to give it and thus call from the connection page? Also, when copying a...
1
1243
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 and attach it to VS but it doesn't allow me to do so. Error: The database with the same name exist, or specified file can not be opened or it is...
2
21607
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 have all the state names in server1 but want to copy the all the data to Server2, how would I write a command for this? INSERT INTO ..states
0
7698
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7612
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7924
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8122
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
5513
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1213
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
937
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.