Access

This is a discussion on Access within the PHP Language forums, part of the PHP Programming Forums category; How do I to move our data stored on an external server (over the Internet) in a mySql database to ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-27-2005
Ken
 
Posts: n/a
Default Access

How do I to move our data stored on an external server (over the Internet)
in a mySql database to
MS Access on our office computer. I would like to remove the data from the
Net and store it on our computer for security reasons.

Thanks.

Ken





Reply With Quote
  #2 (permalink)  
Old 04-27-2005
Alvaro G Vicario
 
Posts: n/a
Default Re: Access

*** Ken wrote/escribió (Wed, 27 Apr 2005 17:54:40 GMT):
> How do I to move our data stored on an external server (over the Internet)
> in a mySql database to MS Access on our office computer.


You need to install the MySQL ODBC driver (available at mysql.com), create
an ODBC source and then use the Access import tables feature.

> I would like to remove the data from the
> Net and store it on our computer for security reasons.


Use your favourite MySQL client to create an SQL dump and store the
resulting file in your hard disk.


--
-- Álvaro G. Vicario - Burgos, Spain
-- http://bits.demogracia.com - Mi sitio sobre programación web
-- Don't e-mail me your questions, post them to the group
--
Reply With Quote
  #3 (permalink)  
Old 04-27-2005
micha
 
Posts: n/a
Default Re: Access

easier approach if you don't have to move data that often:

phpMyAdmin has an export feature that exports data out of mysql in many
formats, for instance xml or csv, which can easily be imported into
access.

micha

Reply With Quote
  #4 (permalink)  
Old 04-28-2005
Ken
 
Posts: n/a
Default Re: Access

I successfully installed the ODBC drive in Windows 2000
During the configuration, the Connector is asking for the server name.
Data Source Name: I just typed in any name. OK?
Description: not important
Server:
If I use localhost, I expect the connector will look at my computer. How do
I call out a website address plus the server name?
host282.domainname.com/~xxxxx/localhost ????
https://host282.domainname.com/~xxxxx/localhost ???

The database is at host282.domainname.com/~xxxxx Do I move the 282 to the
port option?

Ken


"Alvaro G Vicario" <alvaro_QUITAR_REMOVE@telecomputeronline.com> wrote in
message news:fy1zalhsqps4.102kfdw2bhzzk$.dlg@40tude.net...
> *** Ken wrote/escribió (Wed, 27 Apr 2005 17:54:40 GMT):
> > How do I to move our data stored on an external server (over the

Internet)
> > in a mySql database to MS Access on our office computer.

>
> You need to install the MySQL ODBC driver (available at mysql.com), create
> an ODBC source and then use the Access import tables feature.
>
> > I would like to remove the data from the
> > Net and store it on our computer for security reasons.

>
> Use your favourite MySQL client to create an SQL dump and store the
> resulting file in your hard disk.
>
>
> --
> -- Álvaro G. Vicario - Burgos, Spain
> -- http://bits.demogracia.com - Mi sitio sobre programación web
> -- Don't e-mail me your questions, post them to the group
> --



Reply With Quote
  #5 (permalink)  
Old 04-28-2005
Alvaro G Vicario
 
Posts: n/a
Default Re: Access

*** Ken wrote/escribió (Wed, 27 Apr 2005 23:19:34 GMT):
> Server:
> If I use localhost, I expect the connector will look at my computer. How do
> I call out a website address plus the server name?


You don't call a website address. You are to connect to a MySQL server, not
a web server. They're different services.

> The database is at host282.domainname.com/~xxxxx


Weird... MySQL databases are not accessed through directories, they're
merely accessed through their names. What happens if you use
host282.domainname.com as server name?

Also, please note that your hosting service does not necessarily allow
remote connections to database server.

> Do I move the 282 to the port option?


Why should you?


--
-- Álvaro G. Vicario - Burgos, Spain
-- http://bits.demogracia.com - Mi sitio sobre programación web
-- Don't e-mail me your questions, post them to the group
--
Reply With Quote
  #6 (permalink)  
Old 04-28-2005
Ken
 
Posts: n/a
Default Re: Access

"Alvaro G Vicario" <alvaro_QUITAR_REMOVE@telecomputeronline.com> wrote in
message news:tkq97ucgpokl.xymvzal3w9g9$.dlg@40tude.net...
> *** Ken wrote/escribió (Wed, 27 Apr 2005 23:19:34 GMT):
> > Server:
> > If I use localhost, I expect the connector will look at my computer.

How do
> > I call out a website address plus the server name?

>
> You don't call a website address. You are to connect to a MySQL server,

not
> a web server. They're different services.
>
> > The database is at host282.domainname.com/~xxxxx

>
> Weird... MySQL databases are not accessed through directories, they're
> merely accessed through their names. What happens if you use
> host282.domainname.com as server name?
>
> Also, please note that your hosting service does not necessarily allow
> remote connections to database server.


I just received the following email from my hosting service. You were right
on the mark.

>>We do not support ODBC and DNS connection. But you can use DSN-less

connection.

I know how to move data into and out of a MySQL database. But can a script
automatically append the data into Access?

Ken



Reply With Quote
  #7 (permalink)  
Old 04-28-2005
Gordon Burditt
 
Posts: n/a
Default Re: Access

>>>We do not support ODBC and DNS connection. But you can use DSN-less
>connection.
>
>I know how to move data into and out of a MySQL database. But can a script
>automatically append the data into Access?


Use mysqldump. It produces a series of SQL statements that puts
the data into a database. If you use the right options (e.g.
--compatible=mssql on MySQL 4.1 or higher) you can probably get
mysqldump to leave out the MySQL-specific stuff so MS Access can
swallow it.

Now, is there a way (command-line utility) for MS Access to take a
file full of SQL statements and run it? If so, do this from your
script.

Gordon L. Burditt
Reply With Quote
Reply
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

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




All times are GMT +1. The time now is 11:18 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0