Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    MYSQL


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Moving Multiple Databases From Different Servers To One Db Server


I'm trying to move three MySQL databases, currently residing on two different servers, on a third dedicated database server:

Old Server 1: db1a, db1b
Old Server 2: db2a
New Server 3: <move db1a, db1b, db3a here>

All three databases are quite large, 8+ gigs in size, so I was suggested to copy over the data directories, containing these databases, to /var/lib/mysql on the New Server 3. I can foresee potential conflicts due to files and directories with same names on both Old Server 1 and Old Server 2 (specifically, ib_logfile0, ib_logfile1, /mysql/*, etc.).

Are there any MySQL tools available that would allow me to either fix the databases afterwards, or consolidate the overlapping data? Maybe a better way to achieve this?




View Complete Forum Thread with Replies

Related Forum Messages:
Moving Databases Across Servers
I just found out that my host is running an old version of mysql, and I think that's why alot of the things I've written aren't working. I've got host space at another server with a newer version of MYsql, and I'd like to transfer most of my work over there.
...But I don't want to have to completely rebuild all my databases and their entire contents.Is there some simple way anyone knows to download the tables & contents of a database from one host and then put it back up on another?

View Replies !
Moving MySql From Development Server To Other Servers
I am using Dreamweaver with php, mysql and Godaddy for Hosting. I have a website developed that runs fine locally using the localhost for both the Web app and MySql. What is the process that I go to to move or export the databse from the development server to Godaddy's MYSQL server. I have not found an "export" function using MySQL Adminstrator, or MySQL Control Center.

View Replies !
MySQL Databases And 2 Servers
We are planning to reprogramm our search machine and website. Since we
have call agents who query the same database as the customers do, we
had the idea of splitting the database to 2 servers.
The call agents can update customer data with our intern webinterface,
which not only concerns tables that are for the call agents, but also
concerns tables of the search machine, holding company data such as
address, search words, etc. Since the customer himself can administer his
own data, as well as the call agent (or media agent), I was thinking
of doing following:

* I have 2 servers. Server 1 is responsible for the search machine and
just serves customers searching for a company or for products. The
MySQL database is there just for querying.
* Server 2 serves call agents, as well customers who want to change
their data, reading and writing.
* Since the search machine should of course show updated data the call
agent or the customer have eventually changed, the data from server 2
must be synchronized with the MySQL databese of server 1. (e.g. at
midnight)

Questions:
-------------
0. Is the above described the right way?
1. What do I have to consider when planning the database structure?
2. How do I synchronize? Can I copy specific tables from one server to
another using cronjobs (crontables)? Since this is absolute newland to
me, how?

Any expert knowledge or experience with MySQL replication or MySQL
clusters? I think replication is just thought for mirroring, or am I
mistaken?

View Replies !
Scripts, Databases And Servers
Is it possible to have a script in server1 calling a database located in server2 (both remote servers)?
I made a try but it didn't work.
PHP Code:

 $hostname_owner = "mysql.server.com"; // this is remote
$database_owner = "database";
$username_owner = "owner";
$password_owner = "passw";
$owner = mysql_connect($hostname_owner, $username_owner, $password_owner) or trigger_error(mysql_error(),E_USER_ERROR); 

View Replies !
SELECT From Different Databases/servers Tables
I can't find the exact MySQL instructions to get data from tables located on a different database in the same engine and/or on different databases in different engines. I am working to a migration from Informix. In Informix a table name is defined as:

<tbl_name> (as usual)

or

<db_name>:<tbl_name> (same engine, different db)

or

<db_name>@<server>:<tbl_name>
(different engine, different db)

How can, if possible, replicate this syntax in MySQL ??

View Replies !
Can You RIGHT JOIN A List? (from Two Different Servers And Databases)
One database provides a list of items to be used in a query against another database's table. The two different database are on two different servers.

Can I get the list from one query and use it as a LEFT JOIN query in another?

Like:

select items from database1.table1

<loop through in php to get list>

select fish from database2.table2
RIGHT JOIN <somehow add list here from table1>

I've tried using the list in an IN where clause but I need ALL those in the list and only those from table2 where there's a match, else, NULL.


View Replies !
What Makes Two Mysql Databases In Two Different Servers Connect?
what makes two mysql databases in two different servers connect? Is it enough with mysql sintax? Do i need another application? Which?

View Replies !
Link Two Mysql Databases On Two Diffrent Servers
I have 2 different MYSQL databases on two different servers.I want to link the two databases.Is there any mechanism for this like we have database link in oracle.

View Replies !
Connect/ Join Query Multiple Dbs Multiple Servers
Struggling to connect simultaneously to remotehost@my_ip_address
AND localhost@my_field_db FROM my_field_tablet_pc to affect
a custom sycnchronization that SQLyog will not allow.

Both remotehost and localhost are built on WAMP stacks.

View Replies !
Moving Databases As File
I am currently devoliping a project using my desktop, Now that I am finished I have to move de Database to the Web Server, but I can´t see a particular file to move, how can I do that?

Example: In Access you have a particular file: myDB.mdb, so you just copy and paste that particular file and you got it.

View Replies !
Moving Databases From One Host To Other
I am planning on moving hosts quite soon and am wondering how to go about moving my database from my current host to the new one. What should I do?


View Replies !
Moving Databases For Forums
Just how do you go about moving a database?

I have a forum linked to a MySQL db, which is on one site, and the main site is on a completely different server. If I were to move the main site to my now main hosting package, how would I reconcile the URLs?

I've searched the web, and talked to my host, but I'm none the wiser on the process involved. I'm not really after a detailed explaination here, just how you would go about it. I can work from there really.

View Replies !
Moving Databases From One Hard Drive To Another ?
I have a hard drive that fails to boot with some mysql 4.1 data I would like
to keep.

Have slaved that drive to another PC (with mysql 4.1.12 loaded) and have
saved other data and am able to access its MYSQL folder ...

I tried to copy the data folder into corresponding directory on new drive
but when I try ot look at any of the databases I get errors like:

#1017 - Can't find file: 'master_name.MYI' (errno: 2)

... I look for corresponding .MYI files but cant find any on the old drive.

Have I lost my database files or is there another way of porting the
database to the new drive.

View Replies !
Moving Table Data Between Databases
I've recently got a 2 new domains and with that 2 new databases. The name of one of the new databases is different from the database on my old host and I have 2 sites incorporated into that old database. What I'd like to do is split the old database into 2 newly named databases seperating the tables so I end up with the 2 databases ready for the new sites.

The old site doesn't have phpmyadmin installed which is what I'm used to using and this DBTools software doesn't appear to allow me to select the tables I want to dump and export to a new .sql file in multiples.

View Replies !
Moving Mysql Databases From Laptop To Workstation
does anyone know how to migrate a mysql database from place of creation(my laptop) to a workstation. I am using mysql browser and when i open it up and try and select on the databases this error appears for each of the tables.

Can't open file: <tablename>.InnoDB (errno:1) .

View Replies !
Multiple Servers On The Same Host
Well i want to run multiple servers on the same host, has somebody a Howto for this?
Code:

View Replies !
How To Target 1 Of 2 Servers On The Same Windows Server
With the end of the year came the time to do upgrades on my server. I try to stay back a revision in conservative fashion. So MySQL 4.11 was upgraded to 5.0 then 5.1 on Dec 31st.

We just found out that one of our clients sites can not work with 5.1 so we rolled back to 4.11

But MySQL allows you to run multiple SQL servers without problem on the same server. So 5.1 was reconfigured to run on a different port than default.

Now I have phpMyAdmin with two configurations able to access both DBs.

The question is, How do I target one DB or the other with my scripted pages? Connection string? IIS config based site to site or based on the ext like PHP files will use one port and .ASP files will use another?

View Replies !
Replication With Multiple Servers In Mysql ?
I want to establish replication between multiple (currently three) servers.
Updates/inserts/deletes may happen on all of them. The idea I came up with
was to do a "circle"-replication. The problem with this is, that if one
server fails the rest may not get updates (until the server is back,
obviously).

Does anybody have an idea how to establish such a replication in a fail-save
manner ? Code:

View Replies !
Replication With Multiple Servers In Mysql
I want to establish replication between multiple (currently three) servers. Updates/inserts/deletes may happen on all of them. The idea I came up with was to do a "circle"-replication. The problem with this is, that if one server fails the rest may not get updates (until the server is back, obviously).Does anybody have an idea how to establish such a replication in a fail-save manner?

View Replies !
Installing Multiple MySQL Servers
If you need multiple MySQL servers running, what's the difference between installing MySQL once and running multiple servers (by issuing multiple mysqld commands with their own options), versus actually installing two or more DIFFERENT instances of the same version of MySQL?

What is typically done? What are the advantages/disadvantages of either method?

View Replies !
Multiple Mysql Servers On Linux RedHat
I am trying to figure out how to install 2 different versions of MySQL, 4.x and 5.x on a Redhat 3 server.

View Replies !
Moving DB To Another Server
I am moving a web site with a MySql database to another server. Can I create a database on the new server with the same name and then move the tables there, or is life not that simple? Or can I create tables with no data and then replace them with the files from the other server? I know I can export them as text files and them import them, but that is a lot of trouble.

Also, using my FTP program I can't access the mysql folder on the server, but I can using SSH as the root user. If I can indeed just move the table files, can I FTP to another folder then use the mv command in SSH to move them, or will I run into permissions problems there too?

View Replies !
Moving A Db From My Server
I did a search, but didn't find what I was looking for exactly.
When I build sites, I build them on my test server at home. Oftentimes, I end up with php scripts & MySQL databases.
In those cases, what I always end up doing when I finally put the site on a remote webhost is copying the script files, then rebuilding whatever database/tables it needs all over again.
Is there a way, in phpMyAdmin that I can export an entire database from my server, and simply input it into MySQL on my webhost through the phpMyAdmin there?

View Replies !
Moving From One Server To Many
First off Ive never really worked with databases that have been spread out amongst many servers. However I am currently working on a project where we are considering doing so sometime in the near future (in the next 6 to 12 months). So at the moment I really want to investigate how this would be done so I can start planning for this. The project is mainly done in PHP (however I have written a few C extensions to boost the efficiency of some routines). Anyway, I'm just wondering how one goes about doing this. We are thinking of breaking the database up amongst four or five servers to spread out the load. Also, is it possible to do a query that joins tables that are located on multiple servers or would these need to be done as separate queries?

View Replies !
Moving Files From PC To Server
I am looking for a little help since I am new at this. I am using a PC running windows xp pro, Dreamweaver 8, and XAMPP 1.5.4a. I constucted a webpage that would be a "log in" page to allow certain viewers to an area of our site. I set up a test database with passwords and converted into a slq data file. I can run this page on my PC using XAMPP as the testing server. It works fine. I have FTPed my files to our server and placed them relatively in the same locations as on my PC. These files included a .PHP page with the login boxes, a connection file, and the database files.

When I log on to our site via the web, I can bring the log in page up and type in data, but after submitting, I receive a notice that says "No Database Selected". That notice is not something that I created it is coming from my server. Clearly, the log in request is not finding the database when this is run on the server. Yet the log in works while on my PC.

Is there something more than moving files to the server that I must do? or should the location of the database on the server be different than the location on my PC? Or are there more files that need to be transfered?

View Replies !
Moving From Localhost To Server
Hello, everyone. I am very new to MySQL. I purchased and went through a FriendsOfEd book called "Foundation PHP for Flash". In it, it got PHP, MySQL, and phpMyAdmin installed on my computer, then continued to go through a number of tutorials on PHP and MySQL...

...everything runs fine on my local machine. Much of the stuff is involving pulling data from phpMyAdmin and putting data into it as well. When I load the same files that work locally onto my server (which supports PHP and MySQL), nothing works.

I'm certain this is because everything was being tested locally, but that doesn't help me to figure out what I need to do to get the files to work on my server (i use doteasy.com for my hosting). This is frustrating because I completely understand everything I've learned in the tutorials, but none of it does me any good, since I can't put it to practical use (since everything only works off of my local machine!)...

Any help would be GREATLY appreciated. Also, I don't know if this helps, but this is instructions from my hosting provider about setting up a MySQL database or something (again, I'm so novice that I'm not sure what it means!):

View Replies !
Moving Mysql To Another Server
I'm looking to move my website to a new server. Is it easy to backup, install and restore mysql? Is there a step by step process I can follow? I've had a look around but can't find anything specific for mysql.

View Replies !
Moving DB/website To Another Server
I exported my database so that I can move my website to another server PC. Upon importing into the new MySQL server I get this error messsage. I had a look at MySQL website but to no avail I still did not know what it means or how to solve it. Code:

View Replies !
Moving Table From One Server To Another
I have a table with data on my mysql database (ver 3.1) I wish to shift the data to an external server. I dont know the version of the external server

My web provider just provides me an interface to change the password. How am i supposed to shift the table with the data.


View Replies !
Moving Database To New Server
One of my clients is moving to a new server. The site has a MySQL database, so I need to export it from the current server and then import it to the new server, correct? The current server has PHP Admin for a utility tool, but offers a bunch of settings I have no clue about. What are the appropriate settings to make the trasition to the new server as quickly and easily as possible? See attached image.

View Replies !
Moving Database To The Live Server
I have an asp application that is currently using Access as a backend database. I have installed mysql on my computer and converted the Access database to mysql. I will be changing the connection string to make it work with asp.

My question is that I need to move the database to a live server. What do I need to have on the live server and how do I move the database from one server to another.

View Replies !
Multiple Instances: Moving Database?
I have two mysql instances on the same box. I would like to move one database to the 2nd instance.

Does anyone know of an easy way to accomplish this, preferably without going through the dump/import process?

View Replies !
DB Moving To New Server, Requesting Upgrade Advice
I currently have an older dedicated server with about 10 MySQL 3.23 databases on it. All but one of the DBs are for Wordpress. One is for Invision Power Board. The server is in need of an upgrade because it isn't handling the traffic very well so I've aquired a new, and much more powerful one.

The new server has MySQL 4.1.20 on it so right away I'm in trouble because I can't seem to figure out how to get my tables converted. I'm trying to follow the instructions at http://dev.mysql.com/doc/refman/4.1/en/upgrading-to-arch.html, specifically:

"You can also store the dump in a file, transfer the file to the target machine, and then load the file into the database there. For example, you can dump a database to a compressed file on the source machine like this:
shell> mysqldump --quick db_name | gzip > db_name.gz"

But when I try to do this with any of my databases while logged in as ROOT I get the following:
"Got error: 1045: Access denied for user 'root@localhost' (using password: NO) when trying to connect."

I tried using the help file to figure out how to specify the password but either I couldn't get the syntax correct or it just wasn't working. So, my first request would be for a little guidance here if possible.

Assuming that problem is solvable, I have question. If I'm already going to have to import the data into the new 4.x format, would it make more sense to have the MySQL on the new server upgraded to 5.x now - while it's still brand new and before it gets all loaded up?

What would be the benefits or drawbacks to doing so? It seems to me that since I have no experience with this that it would make sense to do the upgrade to 5 now so I don't have to go through the pain of another DB upgrade down the road so soon.

View Replies !
Mysqldump? Moving A Database To Another Computer / Server?
I want to move a mysql database called "widget_corp" to another computer.

Actually, it's currently on a PC and I'm moving it to a Mac (10.3.9).

The instructions here are not working:

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

How does one do this?

View Replies !
Moving Average With Multiple Items In Table
Try to get a moving average on a table with multiple items. i found a query that works fine when you use it on 1 item....

View Replies !
Multiple Databases Or Multiple Tables
I have an application that is supposed to make multiple connections [around 10 connections per second] to a mysql database. The connections are done by mutlitple users at potentially the same time.

I have to decide if I should use :

1)one database with one table for all users.
2)one database for each user.
3)one database with one table for each user.

I would really appreciate if you can tell me what choice is best and why.

View Replies !
One Or Multiple Databases
is there any performence-effect whith the way that tables are assigned to databases??
i.e. i have to options to eiter create several databases A, B, C and in each database i have tables x, y, z.
instead i also could do only 1 database and call the tables A_x, A_y, A_z, B_x, B_y, B_z, C_x, C_y, C_z.

brings me any of those options any performence advantage?
I use all tables permanently all day.arranging them in different databases gives me a better systematicly overview. but then i permanently need to switch database.

View Replies !
Multiple Databases
Can you create more than 1 database in a single MySQL installation? If so, how would you do it?

View Replies !
One Or Multiple Databases?
Just a quick question. My site uses three (potentially four or five databases) MySQLs, having no more than half a dozen tables each (one database just has ONE table). This was done because I wanted to keep different information distinct, and seperate from each other, to reduce database size, and to be somewhat more secure (if one db gets corrupted, the rest don't, heh). I've got a daily backup of these databases, the total size is about 4mb.

The databases hold text, no big blob/file fields as yet. However, they do hold duplicate data, for example I've got a database for 'users' and one for 'forums', but if a user posts on a forum (to the 'forums' database), they need to pull their user data (avatar, custom sig, etc) from the 'users' database. This involves two database connections, and the usual tripe.

Still in the same users/forums example, it'd be easier to have ONE database, but would this be safer/more efficient? I know that now, to retrieve a post, it's just a simple SELECT, since all the data's in the row. If they were in the same database, I'd use a JOIN using the userID in the posts table, plus the options for that post (avatar, sig, blah blah).

What's the recommended practice? I can see which is easier, but would there be a perfomance hit using the JOIN (one which we'd notice, heh)?

And while we're on that subject, how LARGE can a single MySQL database get? My project's fairly small, but could get bigger, I wouldn't like to have it slow down suddenly, because it's working pretty well now. Or would the differences be negligible, unless we get in the thousands of rows league?






View Replies !
Retrive All DataBases In A Server
I need a SQL STATEMENT TO RETRIVE ALL DB"S FROM A SERVER USING PHP

SHOW DATABASES; Fails

View Replies !
Drop Multiple Databases?
I'm using 4.1.13a of mysql. Want to know if there's an easy way to dro
pall databases that share a common prefix, using a single command. So
if my databases are:

uesr1_coolDB1
user1_another_db_2
user1_db3

I'd like to be able to drop them all with something like:

DROP DATABASE user1_*;

Possible? Other ways to do the same thing?

View Replies !
Multiple Databases Creation
I know that Mysql handles large database very well, but there is a project
that requires more than 2000 small databases(about 20 talbes with a few
rows) to be created within a Mysql server. Could somebody tell me does it
make sense?

View Replies !
Matchin Multiple Databases
I have a list of usernames and associated user_id's in a table in one database. In another database I have some data stored that is related to each user. The user_id for the user is stored with the data. Is it possible to have a query that joins the 2 and allows me to get the corresponding username alongside the users data?

View Replies !
Multiple Databases Documentation
Can anyone point me to any good documentation on how to handle multiple identical databases?
We host differents websites and each has their own database, but they are all defined the same way (same tables, different data).
Anybody know of good way to keep all the databases synched. Right now it kind of a pain if we need to add a table, cause we need to add it to 15 databases.

View Replies !
Performance And Multiple Databases
Are there performance issues when a SELECT query involves more than one database?

Is there any performance hit associated with specifying the database name in front of your table names? (Even if all tables come from the same DB, and if that db is the currently selected one)

Is it faster to change the current db and then perform a query with "locally-specified" table names?

View Replies !
Search Across Multiple Databases?
I recently changed the layout of a script's backend funcionality which ment that I went from 1 database to lots of them (I used to have like 30k tables in that database, now I have around 50 tables in each database).

Its all working fine and everything is smooth and nice, but now I dont know how to find something across all of those databases. How can I search for a specific table in all the databases?

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved