bonehead <sendmenospam@here.org> wrote in message news:<40E48FEE.4080900@here.org>...[color=blue]
> Phil Powell wrote:[color=green]
> > I've read some online resources that utilize various MySQL
> > command-line actions to migrate data from Access to MySQL.
> >
> > The situation is this: a group of co-workers of mine will be using an
> > Access db in a shared source (for now, a directory.. ???) to be able
> > to generate reports on the fly. What they want to do is to be able to
> > migrate that data to a MySQL db instance that currently exists on a
> > different server.
> >
> > What would be the best way to do this within a PHP wrapper (if even
> > PHP at all, which I prefer); if so, what are the ways I can ensure
> > security as this is US Federal Government data and thus must be locked
> > down tight?
> >
> > Thanx
> >
> > Phil
> >
> > PS: They're insisting on Access on their end as it is their apparently
> > easiest (and quickest w/o my having to build an entire CMA for them in
> > 3 months) means of maintaining the data locally before migration.[/color]
>
> Hmmm...I wonder how you plan on encrypting and securing the odbc link
> from the Access application to the database server...I've actually been
> kind of curious about this myself. Since mysql typically runs on port
> 3306, is it possible to configure the server to also run ssh on 3306 and
> then tunnel the odbc connection through an ssh shell? Because if you
> don't, isn't the data traveling back and forth across an unsecured
> connection?
>
> If anyone's actually set this up I'd really be interested in hearing a
> step-by-step description...
>
> Meanwhile, migrating the data from Access to MySQL might be a lot easier
> if you just copy and paste each table's contents as text into a separate
> excel file and then save each one as a .csv. You'd want to check each
> file in something like EditPlus to make sure everything actually is
> comma delimited and newlines are terminated with '\n' (you don't really
> absolutely have to, but it helps), then upload the .csvs to the mysql
> server and populate the tables using the LOAD DATA INFILE syntax. In
> fact you could write all your LOAD DATA INFILE statements in one .sql
> file and then just execute the .sql using the 'source' command. Of
> course that doesn't work unless you are using a mysql user account which
> has the FILE privilege turned on.
>[/color]
Actually I thought of just doing that at first but as well am looking
for a more elegant solution, preferably an open-source solution (we're
not IBM y'know!)
Phil
[color=blue]
> I imagine there are probably more elegant ways to accomplish this. But
> just in case, you might want to take a look here:
>
>
http://dev.mysql.com/doc/mysql/en/LOAD_DATA.html[/color]