Access and mySQL

Prince

Member
Apr 12, 2001
27
0
0
I have two questions.
Is mySQL completly different as compared to SQL (in terms of stored format)? [in other words, can SQL file be used in mySQL DB?]

How can I convert Access DB to mySQL? (I don't suppose there is any way to use PHP with Access DB)
 

Armitage

Banned
Feb 23, 2001
8,086
0
0
Ok, to start, your terminology is a little confusing. When you say an "SQL file" do you mean a the files in which MS Access stores database data, or do you mean an SQL script file?

From the context, I think you mean the former. For reference, SQL is an acronym for a language specification (Structured Query Language). It is not a file format.

In any case ... no, the data file format for Acess is not compatible with MySQL. You can't directly open a database created in Access with MySQL. There are tools to help you make the conversion though. Take a look at the MySQL website. Here's a link.

You might also have a look at the MySQL mailing list archives. The topic comes up fairly regularly.
 

joinT

Lifer
Jan 19, 2001
11,172
0
0


<< There are tools to help you make the conversion though. >>


I found one on tucows :) Haven't tested it yet though.

Also, FYI - I assume you could connect to an Access DB using PHP, so long as you find the script to open a connection.


 

Workin'

Diamond Member
Jan 10, 2000
5,309
0
0
You can use an Access .mdb file with PHP. Access is ODBC compliant, all you have to do is figure out how to make that work. I don't know how to do that using PHP, but I do know that it can be done without any more difficulty than using MySQL.