User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the MySQL section within the Web Development category of DaniWeb, a massive community of 403,205 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,589 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MySQL advertiser: Programming Forums
Views: 231 | Replies: 6
Reply
Join Date: Jan 2008
Posts: 18
Reputation: mexaros is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
mexaros mexaros is offline Offline
Newbie Poster

Help HELP BUILDING DATABASE!!

  #1  
Mar 7th, 2008
I am relatively new to mysql. I am updating a site for a customer, and I'm using mysql 5 w/ phpMyAdmin. I was supplied an .sql (echeck.sql) script to build the database for this site. I create a database named "echeck" in phpMyAdmin, and once created go to the import tab of phpMyAdmin to import the .sql script...when i click the "go" button i recieve this:

Error

SQL query:

--
-- Dumping data for table `tbl_tax`
--
INSERT INTO `tbl_tax` ( `taxid` , `taxdesc1` , `taxper1` , `taxst1` , `taxdesc2` , `taxper2` , `taxst2` , `taxdesc3` , `taxper3` , `taxst3` , `taxdesc4` , `taxamt1` , `taxst4` , `taxdesc5` , `taxamt2` , `taxst5` , `tax_prt_id` )
VALUES ( 1, 'tax1', 0.00, '1', '', 0.00, '', 'tax2', 0.00, '', 'tax4', 0.00, '1', '', 0.00, '', 26 ) , ( 2, 'taxa', 2.00, '1', 'taxb', 2.00, '1', 'taxc', 2.00, '1', 'taxd', 23.00, '1', 'taxE', 2.00, '1', 52 ) ;

MySQL said: Documentation
#1265 - Data truncated for column 'taxst2' at row 1


The script apparently kicks out and not all the tables are created. Does anyone know the cause of this? should i not be using import to run the script? if so how do i run it then?
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Mar 2008
Location: Holland
Posts: 9
Reputation: space1000 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 1
space1000 space1000 is offline Offline
Newbie Poster

Re: HELP BUILDING DATABASE!!

  #2  
Mar 7th, 2008
Probably your on a uix/linux host. Just edit the file in a ksh session with vi and use ":set list:" (look for the "^M" and "$"
Probably there has been a file transfer where the make up of the file was corrupted.
Just use a binairie file transfer to make shure the make up of the file isn't corrupted
Nil volentibus arduum!
Reply With Quote  
Join Date: Jan 2008
Posts: 18
Reputation: mexaros is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
mexaros mexaros is offline Offline
Newbie Poster

Re: HELP BUILDING DATABASE!!

  #3  
Mar 8th, 2008
No, I am using apache on my local machine. This site is temporarily offline. The .sql files i am importing are coming from my /htdocs folder
Reply With Quote  
Join Date: Aug 2006
Location: Egypt
Posts: 760
Reputation: RamyMahrous is on a distinguished road 
Rep Power: 4
Solved Threads: 58
Featured Poster
RamyMahrous's Avatar
RamyMahrous RamyMahrous is offline Offline
Master Poster

Re: HELP BUILDING DATABASE!!

  #4  
Mar 8th, 2008
Your question should be forwarded to http://www.daniweb.com/forums/forum126.html because we're in MS SQL Server forum not MySQL forum
Last edited by RamyMahrous : Mar 8th, 2008 at 12:01 pm.
B.Sc Computer Science, Helwan University
Microsoft Student Partner
Personal blog http://ramymahrous.blogspot.com/
Arabic technical blog http://fci-h-ar.blogspot.com/
English technical blog http://fci-h.blogspot.com/
Reply With Quote  
Join Date: Jan 2008
Posts: 18
Reputation: mexaros is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
mexaros mexaros is offline Offline
Newbie Poster

Re: HELP BUILDING DATABASE!!

  #5  
Mar 8th, 2008
Whoa...did not look closely enough apparently haha sorry. thanks
Reply With Quote  
Join Date: Aug 2006
Location: Egypt
Posts: 760
Reputation: RamyMahrous is on a distinguished road 
Rep Power: 4
Solved Threads: 58
Featured Poster
RamyMahrous's Avatar
RamyMahrous RamyMahrous is offline Offline
Master Poster

Re: HELP BUILDING DATABASE!!

  #6  
Mar 8th, 2008
No sorry my friend, I just need your interest I want you get fast and correct answer, and I am sorry I couldn't help
Last edited by RamyMahrous : Mar 8th, 2008 at 12:20 pm.
B.Sc Computer Science, Helwan University
Microsoft Student Partner
Personal blog http://ramymahrous.blogspot.com/
Arabic technical blog http://fci-h-ar.blogspot.com/
English technical blog http://fci-h.blogspot.com/
Reply With Quote  
Join Date: Mar 2008
Posts: 1
Reputation: sls is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
sls sls is offline Offline
Newbie Poster

Re: HELP BUILDING DATABASE!!

  #7  
Mar 8th, 2008
the data you are inserting is to long or the field as defined in sql is to small
#1265 - Data truncated for column 'taxst2' at row 1
make the column taxst2 biger or insert less, it looks like it is happening on the first record being inserted
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb MySQL Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the MySQL Forum

All times are GMT -4. The time now is 4:33 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC