473,671 Members | 2,194 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

export tables from mysql -> ms access

hi there,

i've got a mysql database with a research data. i would like to get
some information from that database and save it as ms access database.

it will be a client feature. the client clicks a button -and
downloads ms access database with a certain information from the master
mysql database.

is it possible in php? how?

thanks a lot,
richard

Jan 21 '07 #1
4 3013
Richard wrote:
hi there,

i've got a mysql database with a research data. i would like to get
some information from that database and save it as ms access database.

it will be a client feature. the client clicks a button -and
downloads ms access database with a certain information from the master
mysql database.

is it possible in php? how?

thanks a lot,
richard
I would say to do this you're going to need to create an ActiveX control
(you are running on Windows hosting, aren't you?) to create the database
and registers it as an ODBC source. Than you can use the ODBC functions
to add your data (or just put that in the ActiveX control while you're
at it, also).

If you're not running on Windows hosting, you're out of luck.

Alternative, just save it in CSV format and let them do whatever they
want with it.

--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attgl obal.net
=============== ===
Jan 21 '07 #2
Richard wrote:
it will be a client feature. the client clicks a button -and
downloads ms access database with a certain information from the master
mysql database.
This would not be easy. MS Access (MDB) files are a proprietary binary
format. Assuming a Linux/UNIX server, there is virtually no software able
to manipulate them. MDB Tools <http://mdbtools.sf.net/provides a Linux
ODBC driver for MDB databases, but this is read only, so while you can
use this ODBC driver to extract information from Access and insert it into
another database, you can't use it the other way around. They are working
on a read-write driver, but don't expect it any time soon (at least not in
a stable form!).

If you're running PHP on a Windows platform, with the Access DLLs
installed, you might have slightly better luck. The basic technique would
be, in advance, to create a blank database with all the right tables,
views, forms and so forth set up, but not populated with any data. Then,
when required, in PHP you could do a simple file copy of that database,
connect to it through ODBC, populate it with data, using INSERT queries,
then allow it to be downloaded.

Do the client really need it in Access format? Would it be a better idea
to provide them with a read-only phpMyAdmin-type solution, which they
could use to query?

Another idea, if you have control of the server's firewall, would be to
allow the client to connect directly to MySQL on TCP port 3306. You will
need to be very careful with security here. But this will allow them to
hook Access up to your live data, perform queries and run reports on it.
(You can create a special read-only user in MySQL for such purposes.)

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

Jan 21 '07 #3
i've got a mysql database with a research data. i would like to get
some information from that database and save it as ms access database.

it will be a client feature. the client clicks a button -and
downloads ms access database with a certain information from the master
mysql database.

is it possible in php? how?

Not really. But if it is always the same data, and if you do not mind
others to connect with one of your databases, there's an other approach:

You could make the exported tables accessible for others using normal
user management and imports these links through ODBC from MS-Access.

You can control what data is visible and what is not by giving access to
views, separate tables or even a separate database.

Those links can be either links or imports, so once a table is linked
from MS-Access, it can remain up-to date. The downside of this approach
is that you need MyODBC (can be downloaded from the MySQL site) on every
client that wants to link to your database.

Best regards
Jan 21 '07 #4
Richard wrote:
hi there,

i've got a mysql database with a research data. i would like to get
some information from that database and save it as ms access database.

it will be a client feature. the client clicks a button -and
downloads ms access database with a certain information from the master
mysql database.

is it possible in php? how?

thanks a lot,
richard
Richard,
Take a look at Navicat.com. The program is a MySQL front-end
application that has an 'Export Wizard' that features a conversion to MS
Access.

GW.
Jan 21 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
7661
by: ls | last post by:
Hi All, I looking for help with ZODB data export to text file. I have file Data.fs (file becomes from Plone CMS) and I have to display content structure, data like intro, body of article, etc and save it in to simple file. However I can't use Plone XML export because is broken, Zope Corp. set low priority for this bug, so I have to find other way how to digg in to data. Could you point me in to some Python code examples, code...
0
7731
by: Priscilla Walther | last post by:
Hi All - I'm a newbie to the database area, but have inherited a MySQL database to manage along with my development duties. We have a very large MySQL database, and the designer of the database no longer works for us. I need to re-create the same table structure, but without the content, on a separate machine. I know I can do a show tables on the existing db, and also a describe on
1
4031
by: Dave Crypto | last post by:
Hi there, SUMMARY: 1) When I use phpadmin to export a large database, the file created on my local PC never containes all the tables and information. It seems to max out at about 10mb. 2) Will running mysqldump from command line on a live in-use DB (with one table containing 350,000 rows) pose any risks and have any large effect of current use?
1
2724
by: Martin Herrman | last post by:
Hi all, I have installed MySQL on my Linux Mandrake 10 workstation; I didn't change any default values (except for the user-accounts). I used a CMS to create a website which I want to upload to my hosting provider. When I export my database (using PHPMyAdmin) from my workstation to a local file and then on the server (again using PHPMyAdmin) I import the database from the local file, some characters are 'fucked up'.
5
9329
by: Jandre | last post by:
To anyone that can help I have 2 MySQL databases that contain large amounts of tables. I need to be able to compare the data in the tables with older/newer versions of the tables. I figured the easiest way would be to get the info in csv format and then run a comparison. I can get all the data using MySQL front, but this has to be done tabe-by-table, and is too time consuming. I am new to Python and also new to programming.
2
3080
by: martha70 | last post by:
I’m running PHP MySQL (zen-cart) I’m looking for info on CSV files with data sets and how I can import these into MySQL. I found a number of topics involving simple CSV files and I tried a number of programs designed to do this but none addressing data sets and export to multiple tables (three in my case) within a MySQL database. My CSV input text file (see example below) is comprised of lines related to one-another according to their line...
9
5963
by: backups2007 | last post by:
please help. my code displays two errors that I'm having a hard time to resolve. here are the errors: first is: missing name in export statement; it generates an excel file. but this error still pops up for some reason. (I am able to generate an excel file when I directly put a query string.) second is:
4
7781
by: sejal17 | last post by:
Dear Sir, Can you tell me how to export data from MySQL database to a xls file using php code?I have to export data from different tables of mysql database to a single xls file.Please help me!!! Regards, Sejal Mandaliya
15
3297
by: Franz Marksteiner | last post by:
Hi folks, I am looking for the straightest way to export a whole MySql database, but all I can find is SQL statements to export specific tables. Any suggestions? -- Freundliche Grüße, Franz Marksteiner
3
4555
by: Edward Reid | last post by:
OK, I've been watching my DB grow and have known for a long time I would have to move the back end, but of course I waited until I started getting odd behavior (at about 1.92GB). So today I installed MySQL and (after a bit too much time getting the data source working) started exporting tables. I successfully exported eight of my nine tables, and can view them from a linked Access front end. But when I tried to export the final table,...
0
8476
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8820
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8670
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7433
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6223
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5695
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4224
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2810
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1809
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.