473,809 Members | 2,797 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Migrating from 4.0.12 to 4.1.12

I did a mysqldump --opt database -u username -p > outputfile.txt on
Machine A, which is running 4.0.12.
Then on Machine B, which is running 4.1.12 I did the following,
mysql -u username -p database < outputfile.txt

It loaded about 20 tables file, but then I got an error saying there is
a syntax error. Please help.

Thanks,
Yasaswi

Jul 23 '05 #1
2 1126
yasaswi wrote:
I did a mysqldump --opt database -u username -p > outputfile.txt on
Machine A, which is running 4.0.12.
Then on Machine B, which is running 4.1.12 I did the following,
mysql -u username -p database < outputfile.txt

It loaded about 20 tables file, but then I got an error saying there is
a syntax error. Please help.

Thanks,
Yasaswi


Can you provide us with some information from the sql file you try to
import. Saying that you get an error is not very precise and now you
leave us guessing for what error where occured.

My guess is that the program terminates with some sort of error message
somewhere along the line stating that there was an error somewhere in
the mysql syntax as you say that 20 tables were imported and then the
error occured.

Jonathan

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
Jul 23 '05 #2
Hi Jonathan:
I was getting a syntax error, something like error in line number 2859
....
Therefore I wrote a script which will mysqldump each table separately
and load each table individually. Now I don't have the problem any
more. The error might have occured because the database is very big,
may be....
Thanks,
Yasaswi
Jonathan wrote:
yasaswi wrote:
I did a mysqldump --opt database -u username -p > outputfile.txt on
Machine A, which is running 4.0.12.
Then on Machine B, which is running 4.1.12 I did the following,
mysql -u username -p database < outputfile.txt

It loaded about 20 tables file, but then I got an error saying there is
a syntax error. Please help.

Thanks,
Yasaswi


Can you provide us with some information from the sql file you try to
import. Saying that you get an error is not very precise and now you
leave us guessing for what error where occured.

My guess is that the program terminates with some sort of error message
somewhere along the line stating that there was an error somewhere in
the mysql syntax as you say that 20 tables were imported and then the
error occured.

Jonathan

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?


Jul 23 '05 #3

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

Similar topics

0
2049
by: Zvika Glickman | last post by:
I'm migrating DB2 to ORACLE 9I. In the DB2 schema each table defined in diferrent tablespace. Few tablespaces are define on the same STOGROUP (there are few STOGROUP). It's a big db (few terra bytes). There are tousands of tables, so also thousands of tablespace. When i'm migrating to Oracle: Is it right to define oracle tablespace for each DB2 tablespace (so i'll have thousands of tablespaces)?
0
1783
by: steve | last post by:
I am having huge problems migrating large db’s from one server to another. I use phpmyadmin to dump the data into a file, and then migrate it to my production server. Then I try to use this: mysql dbname < filename but if the tables are too large, it simply does not work. So I tried the following two work-arounds, which work but are tedious. Is there a nicer way to do it: Solution A: Create a dump file with subset of all the...
4
8522
by: Bernardo Robelo | last post by:
Hi, I am interested in migrating Microsoft Access database to Postgres database. But I do not have idea of like initiating. Maybe some tool exists for this problem. Thanks you. Bernardo
4
1725
by: Juan | last post by:
I'm migrating a VB.Net app to c# and found the following: Private m_State(,) As Integer If anyone knows what is the analogous in c#... is it an array? Thanks, Juan.
6
2771
by: Shai Levi | last post by:
Hi, I'm trying to migrate native c++ class to managed c++ class. The native class header definition looks as: class NativeClass { public: typedef void (CbFunc1)(int n,void* p);
3
1830
by: BobRoyAce | last post by:
I would really appreciate recommendations for sources of materials on migrating ASP applications to ASP.NET (books, URL's, etc.). Also, is there a magazine that is particularly good for .NET stuff. I am just starting my journey into the .NET world, moving from a pure ASP one.
2
3246
by: Jean-Claude Adams | last post by:
Hi Folks. I need some tutorial or some expertice about the subject. Because, i'm have a customer, need's change the actual appl, but the only issue is a dbf database, and the GUI is the older blue screen. You know, it's very old and huge data to migrating. Well, the challenge for me now, it's create the structure and change thhe interface, well, is the same menu, but other screen for the user. i'm always like for backend the...
4
2633
by: Collin Peters | last post by:
I have searched the Internet... but haven't found much relating to this. I am wondering on what the best practices are for migrating a developmemnt database to a release database. Here is the simplest example of my situation (real world would be more complex). Say you have two versions of your application. A release version and a development version. After a month of developing you are ready to release a new version. There have...
12
4672
by: jdokos | last post by:
Does anyone know of any good sources (white papers, etc.) regarding migrating from Teradata to DB2 UDB EEE? We are in the very beginning stages of investigating this as an option for some of the smaller projects that are going to Teradata presently. Thanks in advance for any and all information. Jeff
34
4079
by: subramanian100in | last post by:
Is there any difference between porting and migrating. Kindly explain
0
9721
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
10639
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10383
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,...
0
10120
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6881
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5688
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4332
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
3861
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3015
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.