FireFox! The PHP Forum Loans and Credit
Panama Web Design for Hire Free Insurance Quotes!
Web Hosting Advertise Here $10 a Month Designer Children
Never Pay Taxes Again HGH Domain name registration
Web Hosting and Dedicated Servers Insurance Affordable web-hosting


HomeWatched TopicsRegisterSearchDirectory
FAQMemberlistUsergroupsLog inStoresItemsBank
Google

Reply to topic Page 1 of 1
I have a table at phpMyadmin and an excel file I want to upl
Message  

Reply with quote
Post I have a table at phpMyadmin and an excel file I want to upl 
I have a table at phpMyadmin (Mysql) and an excel file , well I want to upload/import the data to the database table , what to do ? the columns in the db table are the same order as these of the excel spreedsheet ....What if in the excel file I have some special characters like commas, colons, semicolons ?
 How to save hence appear a message that some modifications will happen if save(automatically by excel) ?

View user's profile Send private message

Reply with quote
Post  
First step would be to save your current database. From there, make sure it's saved as a CSV file, and upload via phpMyAdmin. The parsing usually goes well, so there should be little to worry about.

View user's profile Send private message

Reply with quote
Post  
"First step would be to save your current database" in excel ? How in excel setup 'FIELDS ENCLOSED BY '"' ' ? How I export a file in excel as csv to use to import data in a db table ?  what to insert for FIELDS ENCLOSED BY in excel ? ' or " ? What excel can do(FIELDS ENCLOSED BY ), can be configured in excel ? What if I have special characters in an excel cell like commas , can i export as comma separated value - csv file ? the below is valid row in csv get from excel:

'xxxxx','nnn,mmm','kkkkk:c','hh(jj)ll-ooo89',99999

View user's profile Send private message

Reply with quote
Post is the privilege how make this error, or ? 
I try to save excel file as csv and import to phpMyAdmin: but excel says there will be some changes de to special char ...I save anyway . what to insert for ENCLOSED BY '"' ? ' or " ? What excel can do, can be configured in excel the ENCLOSED BY ? below appear when I went to import the file csv:
Code:
Error
SQL query:

LOAD DATA INFILE '/tmp/phpuGokyx' REPLACE INTO TABLE `copy`
FIELDS TERMINATED BY ','
ENCLOSED BY '"'
ESCAPED BY '\\'
LINES TERMINATED BY '\r\n'

MySQL said:

#1045 - Access denied for user 'db1test123'@'%' (using password: YES)


is the privilege how make this error, or ?

View user's profile Send private message

Reply with quote
Post  
If you are compelled to use excel, http://www.softplatz.com/software/excel-csv-mysql/

View user's profile Send private message AIM Address

Reply with quote
Post I make it, I choose as separators[in phpmyadmin] 
I make it, I choose as separators[in phpmyadmin]:
,
 "
\
AUTO      
for a csv. just i didn't know what to choose for " ...

View user's profile Send private message

Reply with quote
Post  
That software should do it for you.

View user's profile Send private message AIM Address

Reply with quote
Post  
Yes but in phpmyadmin I  insert: ' so i get the error ....excel can configue as of " or ' for
FIELDS ENCLOSED BY ?

View user's profile Send private message

Reply with quote
Post  
lse123 wrote:
Yes but in phpmyadmin I  insert: ' so i get the error ....excel can configue as of " or ' for
FIELDS ENCLOSED BY ?

Uhh... huh?

View user's profile Send private message AIM Address

Reply with quote
Post Well excel can be configured as of " or ' for FIELDS EN 
Well excel can be configured as of " or ' for FIELDS ENCLOSED BY ? YES/NO ?

View user's profile Send private message

Reply with quote
Post  
you could do this semi-manually if it's not too large.


_________________
http://www.phpgfx.com
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  



Google

FireFox! The PHP Forum Loans and Credit
Panama Web Design for Hire Free Insurance Quotes!
Web Hosting Advertise Here $10 a Month Designer Children
Never Pay Taxes Again HGH Domain name registration
Web Hosting and Dedicated Servers Insurance Affordable web-hosting


Web Design by PlatinumShore.com & Web Hosting by TradeWebHosting.com