473,811 Members | 2,190 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

duplicating a database

how would i duplicate a database content into another database

i have ssh access and want to do this without downloading the database and
uploading it again

thanks

Jul 17 '05 #1
9 1819
"chris" <so*****@here.c om> wrote in message
news:41******** @funnel.arach.n et.au...
how would i duplicate a database content into another database

i have ssh access and want to do this without downloading the database and uploading it again

thanks


Login using ssh, type the following two lines:-

echo "create database <new database name>" | mysql -p<password>
mysqldump -p<password> -a <old database name> | mysql -p<password> <new
database name>

And your php question was?
Jul 17 '05 #2
i know it wsnt really a PHP question but i cant find a mysql newsgroup

thanks for your help
"CJ Llewellyn" <sa****@tmslife line.com> wrote in message
news:cf******** **@slavica.ukpo st.com...
"chris" <so*****@here.c om> wrote in message
news:41******** @funnel.arach.n et.au...
how would i duplicate a database content into another database

i have ssh access and want to do this without downloading the database

and
uploading it again

thanks


Login using ssh, type the following two lines:-

echo "create database <new database name>" | mysql -p<password>
mysqldump -p<password> -a <old database name> | mysql -p<password> <new
database name>

And your php question was?

Jul 17 '05 #3
LJR
"CJ Llewellyn" <sa****@tmslife line.com> wrote in message
news:cf******** **@slavica.ukpo st.com...
"chris" <so*****@here.c om> wrote in message
news:41******** @funnel.arach.n et.au...
how would i duplicate a database content into another database

i have ssh access and want to do this without downloading the database

and
uploading it again

thanks


Login using ssh, type the following two lines:-

echo "create database <new database name>" | mysql -p<password>
mysqldump -p<password> -a <old database name> | mysql -p<password> <new
database name>

And your php question was?


PHP/MySQL, they're the same thing aren't they?! They're always mentioned in
the same sentence! Hehe ;)
Jul 17 '05 #4
chris wrote:
i know it wsnt really a PHP question but i cant find a mysql newsgroup

thanks for your help
"CJ Llewellyn" <sa****@tmslife line.com> wrote in message
news:cf******** **@slavica.ukpo st.com...
"chris" <so*****@here.c om> wrote in message
news:41******** @funnel.arach.n et.au...
how would i duplicate a database content into another database

i have ssh access and want to do this without downloading the
database and uploading it again

thanks


Login using ssh, type the following two lines:-

echo "create database <new database name>" | mysql -p<password>
mysqldump -p<password> -a <old database name> | mysql -p<password>
<new database name>

And your php question was?


Maybe alt.php.sql ?
Jul 17 '05 #5
LJR <i_would_but_ i do************@ no-hope.co.uk> wrote or quoted:
PHP/MySQL, they're the same thing aren't they?! They're always mentioned in
the same sentence! Hehe ;)


Will it one day be SQLite, I wonder...?

PHP 5 comes with SQLite - but doesn't even ship with an interface
to MySQL these says - since it comes under too restrictive a license.
--
__________
|im |yler http://timtyler.org/ ti*@tt1lock.org Remove lock to reply.
Jul 17 '05 #6
On Mon, 9 Aug 2004 12:09:35 GMT, Tim Tyler <ti*@tt1lock.or g> wrote:
Will it one day be SQLite, I wonder...?

PHP 5 comes with SQLite - but doesn't even ship with an interface
to MySQL these says - since it comes under too restrictive a license.


Or maybe it will be PHP/Firebird, given that Firebird is truly free,
and always was a more robust and standards compliant DBMS than the
currently preferred alternative.
Jul 17 '05 #7
Noel <no*****@thank. you> wrote or quoted:
On Mon, 9 Aug 2004 12:09:35 GMT, Tim Tyler <ti*@tt1lock.or g> wrote:

PHP 5 comes with SQLite - but doesn't even ship with an interface
to MySQL these says - since it comes under too restrictive a license.


Or maybe it will be PHP/Firebird, given that Firebird is truly free,
and always was a more robust and standards compliant DBMS than the
currently preferred alternative.


I reserve the term "truly free" for software that is in the public domain.

Firebird's license is quite good - but it is still copyrighted
software and (for instance) it forces users to publish the source
code for any modifications they make to it - a condition which may
hinder customising the program for use in commercial environments
if the customisations involve company secrets.
--
__________
|im |yler http://timtyler.org/ ti*@tt1lock.org Remove lock to reply.
Jul 17 '05 #8
On Mon, 9 Aug 2004 12:09:35 GMT, Tim Tyler <ti*@tt1lock.or g> wrote:
LJR <i_would_but_ i do************@ no-hope.co.uk> wrote or quoted:
PHP/MySQL, they're the same thing aren't they?! They're always mentioned in
the same sentence! Hehe ;)


Will it one day be SQLite, I wonder...?

PHP 5 comes with SQLite - but doesn't even ship with an interface
to MySQL these says - since it comes under too restrictive a license.


But it does ship with an interface to MySQL. Just not a copy of the source of
the MySQL client library any more.

It doesn't ship with a PostgreSQL client or Oracle or SQL Server client
library either, and never has, but still ships with interfaces to them.

(Actually, the Windows .zip distribution of PHP 5.0 still does ship with a
binary copy of the MySQL client library DLL from MySQL 3.2).

--
Andy Hassall / <an**@andyh.co. uk> / <http://www.andyh.co.uk >
<http://www.andyhsoftwa re.co.uk/space> Space: disk usage analysis tool
(v1.4.0 new 1st Aug 2004)
Jul 17 '05 #9
Andy Hassall <an**@andyh.co. uk> wrote or quoted:
On Mon, 9 Aug 2004 12:09:35 GMT, Tim Tyler <ti*@tt1lock.or g> wrote:

Will it one day be SQLite, I wonder...?

PHP 5 comes with SQLite - but doesn't even ship with an interface
to MySQL these says - since it comes under too restrictive a license.


But it does ship with an interface to MySQL. Just not a copy of the
source of the MySQL client library any more.

It doesn't ship with a PostgreSQL client or Oracle or SQL Server client
library either, and never has, but still ships with interfaces to them.

(Actually, the Windows .zip distribution of PHP 5.0 still does ship with a
binary copy of the MySQL client library DLL from MySQL 3.2).


My bad - the client library was what I intended to refer to:

http://www.php.net/manual/en/faq.dat...ses.mysql.php5
--
__________
|im |yler http://timtyler.org/ ti*@tt1lock.org Remove lock to reply.
Jul 17 '05 #10

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

Similar topics

5
12822
by: DB_2 | last post by:
I was wondering if there was a way to create a copy of a table in a single SQL statement, together with its column structure and data. In Oracle, there is a "CREATE TABLE new-table AS select-statement" that I can use to accomplish this. Is there a similar statement in DB2? I found a similar syntax structure under materialized query tables, but it appeared that the new table would remain tied to the original source in some way. Perhaps...
7
2107
by: Paolo | last post by:
I know I should not be doing this, but I find it very useful. I have a database in Access which stores data for a small company. Sometimes we need to add similar information to different tables. Currently I am already doing something similar by copying certain records into the same table. The only thing that changes is one field. Please look at the code: Dim MyDb As DAO.Database, MyRs As DAO.Recordset Dim strCode As String
6
2510
by: Robin S. | last post by:
**Eric and Salad - thank you both for the polite kick in the butt. I hope I've done a better job of explaining myself below. I am trying to produce a form to add products to a table (new products). Tables: tblCategoryDetails CategoryID SpecID
2
1110
by: Todd Plambeck | last post by:
I have an ASP.net order entry system that will occasionally insert duplcate orders into the database. We are using SQL Server for the session state. This also only seems to happen when the server has not been rebooted for a long period of time. When it starts duplicating, it will do so about 3 or 4 times and it's not every order. Some will come in fine the next one gets duped, the next couple are fine, then another dupe or two, etc. ...
3
1068
by: RSH | last post by:
I have a situation where I have almost 100 databases that when we get a new client we need to 'copy' the template databases and rename them and I would like to be able to write a VB .Net application to quickly make copies of the databases and then transfer the data to the new databases. I have the data transfer script written, i just need some way of copying the databases one at a time with all of the table structures and renaming the...
4
2041
by: Karim Nassar | last post by:
I need to have an exact copy of a postgres install on a testing computer. I don't want to do slony. Is it feasible/reasonable to think that I could just rsync to the devel boxen from the pg server? Or is slony "The Way to Do It"(tm)? \<. ---------------------------(end of broadcast)--------------------------- TIP 2: you can get off all lists at once with the unregister command
0
1069
by: rmli | last post by:
Duplicating a Database using RMAN http://quickdba.blogspot.com/2006/05/duplicating-database-using-rman_22.html
5
1206
by: JohnC | last post by:
I have a webapp that allows users to delete/add content on a webpage. The webpage is accessed like this: www.abc.com/app/user1/ www.abc.com/app/user2/ where index.aspx is the default page. To do the above though requires creating a new user subfolder, copying the index.aspx page from the app folder and renaming it. This can be problematic when I need to update templates.
0
928
by: Jonathan Wood | last post by:
When a GridView performs a row edit, edit controls appear without needing to display a different page, or, apparently, needing to refresh the existing page. Does anyone have tips on duplicating this functionality. I'm guessing it involves a bunch of javascript, which my abilities are limited with. I need to edit some data that will exist in an array and not directly in a database. I know I can use an array as the GridView's datasource,...
0
9728
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9605
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10402
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7670
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5554
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5692
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4339
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
2
3867
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3018
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.