Welcome to the { mindfrost82.com } forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Software > Adobe Software > Dreamweaver

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-03-2008, 09:13 PM
Squonk64
 
Posts: n/a
OT: Excel to MySQL @ Low/No Cost

I am a small, zero budget, small business owner who needs to know how to
convert Excel files into MySQL files that I can upload to my web host. We have
more than 2000 product items that we need to publish on our web store. Part of
the data is already in SQL, things like item number, description, size, and
price. Excel does a dutiful job of importing these files. But I need to add
to the SQL table my POS software provides, the "picture name" for instance.
Some other things I need to be created in a new table, like the "long
description," and "long description number." (Numerous items get the same long
description.)

I can't be the first person to have faced this problem, so I throw it out
there. Please help.

Background: I am an old school programmer (think punch cards and FORTRAN)
that learned Dreamweaver CS3 from "no experience' and built a 50-some page
website in less than two weeks. I also know relational databases well enough.
But, being away from computers for so long, a lot of the lingo gets lost on me.
Don't be afraid to challenge me, but don't assume I know the buzz words you
know.

PS: A mentor is ABSOLUTELY welcome. Volunteers?

~ Scott
http://oldcountrypeddler.com

Reply With Quote
  #2 (permalink)  
Old 03-03-2008, 09:20 PM
Michael Fesser
 
Posts: n/a
Re: OT: Excel to MySQL @ Low/No Cost

..oO(Squonk64)

>I am a small, zero budget, small business owner who needs to know how to
>convert Excel files into MySQL files that I can upload to my web host.


CSV (comma separated values) might be an option. In Excel export as CSV,
in MySQL you can import it.

Micha
Reply With Quote
  #3 (permalink)  
Old 03-03-2008, 09:36 PM
David Blomstrom
 
Posts: n/a
Re: OT: Excel to MySQL @ Low/No Cost

Michael Fesser wrote:
> .oO(Squonk64)
>
>> I am a small, zero budget, small business owner who needs to know how to
>> convert Excel files into MySQL files that I can upload to my web host.

>
> CSV (comma separated values) might be an option. In Excel export as CSV,
> in MySQL you can import it.
>
> Micha


Yes, that's how I do it. I used the Microsoft Works (sub-Excel)
spreadsheet on my PC and just recently switched to a Mac and installed
Microsoft Office for Mac so I can use Excel.

It's a pretty simple process, though I had to iron out a few small kinks
on both my PC and my Mac. Using phpMyAdmin on my Mac, I click Import,
then choose "CSV using LOAD DATA where it says "Format aof imported
file." (I don't remember doing that on my PC, but it might just be a new
feature on the newer versions of phpMyAdmin.

Under "Options for CSV import using LOAD DATA, I change the first
setting from a semi-colon to a comma, then change the last setting from
"auto" to \r, which is what I end my rows with on my spreadsheets - on a
Mac. On a PC, it would be \r\n, I believe.

When I saved a spreadsheet as a CSV file on my PC, it saved it as in
Notepad, which I could easily open and edit. On my Mac, the CSV file
looks like a stripped down spreadsheet. I have to close it, then open it
again with a text editor, like TextEdit.

Then I import it into my database table, after which I export the table
as a SQL file and import the SQL file to my online database.
Reply With Quote
  #4 (permalink)  
Old 03-03-2008, 09:44 PM
Squonk64
 
Posts: n/a
Re: OT: Excel to MySQL @ Low/No Cost

Thank you, Michael. What I knew as "comma delimited text" can be exported from
Excel, but I still don't have a program to save it as a MySQL file. I must be
overlooking something you younger people understand.

When I goto MySQL.com and look at the "downloads" page, I don't see anything
related to a program called "MySQL" that can import a CSV file. I know, this
might be a stupid, simple question. But I was able to figure our how to
download a free Apache server software that can understand PHP and SQL. I just
can't find this answer by myself.

That's what I need. That program. Please
help.http://mysql.comhttp://mysql.comhttp://mysql.com

Reply With Quote
  #5 (permalink)  
Old 03-03-2008, 09:53 PM
Murray *ACE*
 
Posts: n/a
Re: OT: Excel to MySQL @ Low/No Cost

> but I still don't have a program to save it as a MySQL file.

You don't. You save it as a CSV file. Then you feed it to MySQL using
either the MySQL client, Navicat, or PHPMyAdmin.

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"Squonk64" <webforumsuser@macromedia.com> wrote in message
news:fqhrg8$p6v$1@forums.macromedia.com...
> Thank you, Michael. What I knew as "comma delimited text" can be exported
> from
> Excel, but I still don't have a program to save it as a MySQL file. I
> must be
> overlooking something you younger people understand.
>
> When I goto MySQL.com and look at the "downloads" page, I don't see
> anything
> related to a program called "MySQL" that can import a CSV file. I know,
> this
> might be a stupid, simple question. But I was able to figure our how to
> download a free Apache server software that can understand PHP and SQL. I
> just
> can't find this answer by myself.
>
> That's what I need. That program. Please
> help.http://mysql.comhttp://mysql.comhttp://mysql.com
>


Reply With Quote
  #6 (permalink)  
Old 03-03-2008, 10:05 PM
Michael Fesser
 
Posts: n/a
Re: OT: Excel to MySQL @ Low/No Cost

..oO(Squonk64)

>Thank you, Michael. What I knew as "comma delimited text" can be exported from
>Excel, but I still don't have a program to save it as a MySQL file. I must be
>overlooking something you younger people understand.


You don't need an extra tool, MySQL can understand the CSV format. David
gave a solution with phpMyAdmin, but you could also do the same command
on the MySQL command line.

Micha
Reply With Quote
  #7 (permalink)  
Old 03-03-2008, 10:52 PM
zerof
 
Posts: n/a
Re: OT: Excel to MySQL @ Low/No Cost

Squonk64 escreveu:
> I am a small, zero budget, small business owner who needs to know how to
> convert Excel files into MySQL files that I can upload to my web host. We have
> more than 2000 product items that we need to publish on our web store. Part of
> the data is already in SQL, things like item number, description, size, and
> price. Excel does a dutiful job of importing these files. But I need to add
> to the SQL table my POS software provides, the "picture name" for instance.
> Some other things I need to be created in a new table, like the "long
> description," and "long description number." (Numerous items get the same long
> description.)
>

.............................................
>
> ~ Scott
> http://oldcountrypeddler.com
>

------
Take a look at: http://www.educar.pro.br/i_en/GeoIP/ , where I've
developed a simple method to convert CSV to MySQL using MSExcel or
OpenOfficeCalc, using a CSV from MaxMind as example.
----
zerof
Reply With Quote
  #8 (permalink)  
Old 03-04-2008, 03:25 PM
Squonk64
 
Posts: n/a
Re: OT: Excel to MySQL @ Low/No Cost

Thank you all. I knew I didn't need to rebuild the wheel or plunk down $200-$500 for database software. I'll give it a try in a couple of days, after I become proficient enough with PHP.
Reply With Quote
  #9 (permalink)  
Old 03-04-2008, 07:15 PM
PhredBear
 
Posts: n/a
Re: Excel to MySQL @ Low/No Cost


"Squonk64" <webforumsuser@macromedia.com> wrote in message
news:fqhplc$n6k$1@forums.macromedia.com...

Just one thing you might bare in mind, excel has a will of its own with csv
files in formatting the columns. You might avoid some grief by using a tab
rather than a comma but make sure your text to import doesn't have any tabs
in it or you will get some errors.


Reply With Quote
  #10 (permalink)  
Old 03-08-2008, 07:25 PM
Squonk64
 
Posts: n/a
Re: OT: Excel to MySQL @ Low/No Cost

Thank you folks for bearing with me. I am surprised how simple the PHP part of
all this is. Now if the database side would just be explained a bit better....

I filtered out all the unnessary data from the Excel file and added a few new
columns that I need to make the PHP work. All in all, my "Inventory.csv" sheet
is 13 columns by 2053 rows, including the header row.

I followed David's instructions about importing the file, but when I look at
the "Format of imported file" area, the only button available is for SQL. I
don't see a button called "CSV using LOAD DATA" I am using version 2.11.4 of
phpMyAdmin, a January 2008 release, so I don't think that's the problem.

When I tab over to "engines" in phpMyAdmin, I see CSV listed, but apparently
it is not active because "This MySQL server does not support the CSV storage
engine." I am running MySQL version 5.0.51a, which sounds current enough.
That leads me to think maybe I am either running the wrong Apache software or
the emulation is pretty poor. Can anyone suggest a better AMP program to use
that will allow me to load me CSV data? That will at least get me to the next
step without a few days worth of trial and error.

Again, that you for bearing with the pathetically basic questions I have.
Until next time, from zero budget/DIY-land...

Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Software > Adobe Software > Dreamweaver


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 04:44 PM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0


Sponsors:
0 Credit Cards | Mortgage Calculator | Myspace Layouts | Per Insurance | Mortgage Calculator



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114