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




How To Copy InnoDB From Linux To Windows


I am trying to copy an InnoDB Database (mysql) from a linux system to a Windows XP machine.. I copied the files under /mysql/data/mydatabase/ files to the same one on my windows machine, and I copied anotehr 3 files from the the /data folder which I read about in mysql.com (indata1, and two log files)...

All the database worked expect for the child tables (that has relation with other tables)..

Did I do anything wrong, or is there another way to transfer the database..




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Windows Vs Linux
We currently run our MySQL on linux. Could someone advise me on the watch outs on moving MySQL to windows and also if there is any performance loss as a result?

From Windows To Linux
I've got a production MySQL database running on a Linux server, but do my development on a Windows laptop.

I recently overhauled an existing app and needed to write data conversion routines in order for my existing data to map to some new data layouts.

I'm running the conversion on my laptop, so I don't mess up the existing production data.  I will be running some tests in parallel before going live with the new app.

When I run the conversion, Windows sets all the table names to all lower case.  So when I load the data to my Linux box, the table names are all wrong.

Is there anyway to force MySQL to maintain it's case on a Windows machine so that I don't have discrepancies from one OS to another?

Windows Or Linux?
I am developing a website using php, MySQL and Apache on my home pc which uses WinXP. I am pretty sure that I will not be able to find a web host who will support Apache on Windows, so I guess I will have to go for one that uses Linux. If I do this, is there a serious difference between the way I need to write the PHP code, or is it just the same.

Mysql, Linux Or Windows?
Does mysql work on windows or it has to be on linux only?

Used Mysql On Windows Now Im On Linux Need Help!
Ok iv changed over to linux running ubuntu 6.06 after installing mysql i tried create a database i did "CREATE DATABASE forums" and got this:

./mysqladmin: CREATE DATABASE failed; error: 'Access denied for user ''@'localhost' to database 'DATABASE''

so how do i logging as root? on windows i just used the terminal thing but now i dont have that (well to the point where it asks you to login)

Windows To Linux Server
I am trying to set up a a Mysql driver on a linux server from a windows machine. I get the following error.

[MySQL][ODBC 3.51 Driver]Host '(server number)' is not allowed to connect to this MySQL server

Is it likely that the windows-linux combination is causing a problem here?

Using Database In Windows By Linux
I am hosting an intranet on a machine with dual boot in both win98 and
RH9 Linux. the intranet was first set up and running in win98. I have
a mysql database in the win98 . The win98 partition is mounted in
Linux and is accessible. I am duplicating the intranet in Linux. the
HTML pages are accessing from the win98 partition. Is there a way to
use the database as such by the intranet in the Linux.

Mysql, Linux Or Windows
Does mysql work on windows or it has to be on linux only?

Windows And Linux Versions
I would like to know what are the main differences between windows and linux versions of this DB system.

I´m using it on linux but i´m planning to migrate to windows...

Is there any performance difference? Is it as solid as linux version? It´s of free use (under GPL) ?

I made a test here in windows and it seems to work well..

Is MySql Syntax Different On Windows Vs. Linux?
On our team, we're working on a database. One copy is on the PC. The other copy is on Linux. I wanted to send a new table to the Linux guy. I went into MySQL Query Browser, did a "Copy CREATE statement to clipboard", and pasted the SQL code into a new email and sent it to my Linux guy. He tells me that the code fails every time. Here's what It looks like:

Connection Problem !!! Windows To Linux
I wrote a program application for windows which can add and delete data
from this application, it working fine with my own MySQL install on the
same windows OS.. Now I try to change the connection this dayabase to
the server whihc runnign under linux, and create the same database, same
user and password. But when I connect the error message said:
[MySQL][ODBC 3.51 Driver] Host'219.95.155.119' is not allowed to
connect to this MYSQL Server.

But form the database, I added the host "%", means hsould be allow any
host... anyone can help me on this? the application I wrote will be
using with dynamic IP everytime user dial-up to the internet connect.

Updates Invisible - Windows Only (Linux OK)
I have one Java app writing records to a database (App A) and another,
a Java web application running under Tomcat, displaying the records.
Call this App B.

When I first log into App B and get a connection, all records in the
database at that point get displayed OK.

But after that, any new records inserted by App A do not get displayed
when I refresh (running the query again).

If I log out of App B and log in again, getting a new conection, I see
all the new records.

This behaviour only occurs if I'm running on Windows. If I run the
database on my Linux box with the same application code, new records
inserted by App B are immediately visible to App B with no need to
close the connection and open a new one.

Moving MySQL From Windows To Linux
Is it possible to develop a database on Windows and then copy it to Linux? In Oracle it's not possible to simply copy the database between platforms, I just wondered if MySQL is the same.

Query Behaving Differently In Windows And Linux
I have a query to find the blog entries that are most commented:

SELECT blog.*, COUNT(blogcomment.id) AS cnt FROM blog, blogComment WHERE blog.ID=blogComment.BLOG_ID GROUP BY blogComment.BLOG_ID ORDER BY cnt DESC

The query works fine on my development machine running Windows mysql 5.0.22 but on my Linux server running the same version of mysql (5.0.22) I get the following error:
#1054 - Unknown column 'blogcomment.id' in 'field list'

Any ideas why it works differently on the two servers? Suggestions on a better written query is ofcourse welcome too

Can A MySQL Database Be Shared Between Windows And Linux?
I've got Windows and Linux running on my computer, on seperate partitions. I also have a shared partition for stroing files, and can be read and written by either system.

I also have MySQL installed on both systems. When I make changes to the database in Windows, I have to do a dump of the database (or single tables) to a text file on my shared partition. I then have to switch into Linux and load that file into MySQL there. This is a bit of a hassle.

Is it possible to somehow store the database file on the shared partition, and use the same database from both OSes? This would be very convenient, since I wouldn't have to maintain two copies of the same database!

Access Linux Mysql Server From Windows?
Can I run a Mysql server on a linux box, and access the databases belonging to it over a lan from a machine running windows xp?

Sharing Database Tables Between Windows & Linux
I'm new to MySQL (using v4.1) and have a dual boot machine with Windows and Debian Linux (Etch).

My goal is to share a table named "wordpress" between Linux and Windows by storing it on a FAT32 mount (I realise this limits me to 4GB in total).

From what I can see at the moment, the "wordpress" tables live under /var/lib/mysql/wordpress.

Numerous searches have revealed how to backup data, but I haven't seen any clues on how to permanently reloate a database to another location.

Moving Mysql Database From Linux To Windows
I have to move my mysql 5 database from linux to windwos system. Can this be done by moving files from data folder or do I have to dump the data then import it back to new system?

Raw Partition With InnoDB On Windows 2000
I have MySQL/InnoDB on Windows 2000 and i want to create a RAW
PARTITION to use InnoDB tablespace...

In Linux the configurarion is:

innodb_data_file_path = /dev/hda1:32Gnewraw
innodb_data_home_dir =

and in Windows 2000 ?? Code:

Raw Partition With InnoDB On Windows 2000
I have MySQL/InnoDB on Windows 2000 and i want to create a RAW PARTITION to use InnoDB tablespace... In Linux the configurarion is:

innodb_data_file_path = /dev/hda1:32Gnewraw
innodb_data_home_dir =

and in Windows 2000,

Raw Partition With InnoDB On Windows 2000
I have MySQL/InnoDB on Windows 2000 and i want to create a RAW
PARTITION to use InnoDB tablespace...

In Linux the configurarion is:


innodb_data_file_path = /dev/hda1:32Gnewraw
innodb_data_home_dir =


and in Windows 2000.

Raw Partition With InnoDB On Windows 2000
I have MySQL/InnoDB on Windows 2000 and i want to create a RAW
PARTITION to use InnoDB tablespace...

In Linux the configurarion is:


innodb_data_file_path = /dev/hda1:32Gnewraw
innodb_data_home_dir =

Custom InnoDB Table Space In Windows
In Windows, there are lots of config files for MySQL. When installing MySQL, the config wizard created a single, autoextending ibdata1 file for InnoDB tablespace. However, I want to customize the tablespace. Instead of

innodb_data_file_path = ibdata1:10M:autoextend

I would like to have something like this

innodb_data_file_path = ibdata1:650M;ibdata2:650M;ibdata3:650M

But when I make this change in the file my-innodb-heavy-4G.ini the server fails to start. How can I change the default config for InnoDB and customize it to my needs?

Linux Server V/s Windows Server ( WebServer - LAMP V/s WAMP)
My client wants to use WAMP ( Windows + apache + MySQL + PHP ). But the
site performance is very slow on windows. I dont know the exact
reasons.

I have seen some benchmark details on internet. But still they are not
having concrete facts to support LAMP as a better alternative to WAMP.
Allmost all the search done on google melts down to IIS vs Apache, My
main concern is "Apache on LINUX" v/s "Apache on Windows" and similarly
for PHP/MySQL.

JOIN Issue On WIndows Install But Not Linux Install
I am using MySQL 5.0.15 on windows and cannot run this query:

SELECT a.*,b.name, c.fullname,d.fullname FROM access_authorization a, building b
LEFT JOIN users c ON a.createdby=c.id
LEFT JOIN users d ON a.modifiedby=d.id
WHERE a.sortcode=b.sortcode AND a.sortcode like '1,2,1,6%' LIMIT 0, 25

I receive:
ERROR 1054 (42S22): Unknown column 'a.createdby' in 'on clause'

But this query DOES work under my linux 5.0.0-alpha!

I can modify the SQL Statement to the following and it works fine:

SELECT a.*,b.name, c.fullname,d.fullname FROM access_authorization a
LEFT JOIN users c ON a.createdby=c.id
LEFT JOIN users d ON a.modifiedby=d.id
RIGHT JOIN building b ON a.sortcode=b.sortcode
WHERE a.sortcode like '1,2,1,6%' LIMIT 0, 25 .

Mysql Linux To Mysql Windows
i have been running mysql on rehl4 and now the powers that be want to move the databases to a central windows 2003 server running the windows version of mysql.

how on earth do i import my dump file in the window version? i am familiar with doing it in linux but i cannot figure out the mysql command line tool that comes with the windows package.

How To Copy A Row?
is there an easy way to copy a data row with one different value?
assume I have a table with 20 fields, one row has to be copied with a field 9 different.

Copy A Row
I need to duplicate a long series of records, just modifying one value.
i think insert from select clause only works for recent versions of mysql.
Does anybody knows if there is a way to do it with my old mysql version: 3.23.58 ?

Copy From 3.23 To 5.0
What I have to do for copying all databases incl. mysql database from one machine (Fedora, MySQL 3.23) to another machine (Fedora, MySQL 5.0) preserving the settings from 3.23 (users, grants, ...) ?
Are there any steps or tool?

Copy A Db
My website uses php/mysql/linux and is hosted by a local web-hosting
company. I access the db via cpanel/phpmyadmin and currently perform
all testing and changes on the live db and website ( not good!).

I would like a copy of the db on my own machine at home so I can test
locally rather than on the live db.
I have successfully installed mysql at home (on windows) and now I'd
like to get a copy of the db and data and would like to put this on my
db at home.

Copy Row
Does anyone know of an efficient way for copying one row from one table to another instead of using 3 queries. Nearly Identical tables of course.

SELECT
DELETE
INSERT

Copy Of Database
i have created MySQL database as apple in my PC with 10 tables and indexes.
I need to copy this database to my friends PC without recreating the tables.
How do I do that?
I tried to copy the whole database from its MySQL folder,but it didnt open the tables on the friends PC.

How Do You Copy And Load A DB
I want to mirror a database as a new database name so I have;

orginal_db
copy_orginal_db

How do I do this?

Copy Row With A Sql Sentence
Is there any easy fast way to copy a row in MySql? I got a row with id 10 and I want 200 rows of it. I'm using auto_increment. I know I could use phpMyAdmin and export the row, and then insert it like 200 times. But I'm looking for a sql syntax to do this.

Copy A Database
I have a database that I want to copy. How do I do that? I need both databases and thats why I can't use the backup facility. When a new year starts, I have to change to a new empty database with identical tables as the previous one.

Copy Some Columns From A DB To A New DB
I had a database with a products table.. and now I want to move everything
in a new database wich the Table products has a different structure but I
want to copy from one to the other the basic Columns... like the id the
prod_name and the prod_image

How can I do that... everything is in the same machine. it is MyISAM MySQL
database...

MySql Copy
How could I get a copy of MySql to learn how to use it?  Do MySql already contains stored procedures and triggers?  How do it compares with SQL Server?  Could I access it from products such as VB or Access as front ends?

How To Copy A Database
I need to:

1)Copy an entire mysql database, including table structres and data
2)install it into anotehr mysql db on another machine

How?

How Do You Copy One Field To Another?
I have a table with 3 fields - the unique identifier, name and rank. I have 500 records so far in the table.

I want to make a 4th field called rank2. Is it possible to copy all the data in the rank field over to the rank2 field in one command?

How Do I Copy A Database?
I have a Database on my server that runs a website. I want to make the same site with a new name. Is there a way to make a copy of the database and change to name also, Is still want the old site to use the old database.

Copy Db From One Server To Another
I am trying to copy my db from my host provider to my home pc. I have ftp'd the files and saved them to the serverdata dir, but when I try to view the catalog in mysql administrator, none of the tables appear. It's an InnoDb db. Am I doing something wrong?

How To Copy A Database
I need to

1)Copy an entire mysql database, including table structres and data
2)install it into anotehr mysql db on another machine

How?

How To Copy Row(s) Into Same Table
Is there some easy way to copy row(s) from/to same Table?

MySQL HELP says (in 13.1.4.1 INSERT ... SELECT Syntax): "Currently, you cannot insert into a table and select from the same table in a subquery."

Copy Tables Into Each Other
I want to copy all the rows from one table to another.

Insert into table2 select * from table1;

Doing this i received an error : Duplicate entry '3751' for key 1.

I can solve this problem doing the follow :

Insert into table2 select null, t.field1, t.field2, ..., t.fieldn from table1 t;

Since I have many fields and many different tables, this isn't a good idea.

Copy Tables From One DB To Another
I have a MySQL InnoDB setup with various tables.  I am working to split out these tables into related databases.  For Example, I have a segment of books that I need to seperate out of the Development DB and want to place into a seperate DB called Books.  I created the DB for Books and have a Tables section, just wonderin how to copy the table(s) and it's information from Main to Books using either MySQL Admin or Control Center?

Table names = books_master, books_main, books_pages ..

Copy Database Via ASP
its possible to export a mySQL database into a .sql file and saving it via ASP
How to copy a entire database via ASP
Is there functions for this?

Copy Password
What is the correct method for copying the password for a user from mysql 4.0 to a 4.1 database? I know with 4.0 to 4.0 you can just use the same encrypted value, but I'm not sure when trying to setup the same user/password on 4.1 and not knowing the actual password.

Copy First Two Fields
i have a table with 200 rows called solutions the first two fields are ID and user
i want to create a new table with the all the information i have on this two fields and their rows.how do i do that if im using phpmyadmin?

Copy Specific Row
I have a database that host a "user login data," and i have built a new script to expanse the service in other computer's database.
I want to know are there any methods to copy the user data row from the "user login data" to the new computer's database that i have just built?
I am not talking doing this manually by hand, but doing this like replication a specific of row.


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