I have the following situation:
I have to integrate a website (php on linux server) with an old app (Delphi and Paradox (.db file) on Windows)
I need get data from paradox database and show them in the website. I can get transfer the .db file by FTP.
I don't think that I can install external libraries.
I did not find any command line program on Windows to convert from .db file to mysql or any format that supports PHP.
In addition, Paradox database is updated daily.
Does anyone have any solution or tip or anything?
Probably best is to write a new stand-alone application for the Windows host that is linked against both the Paradox libraries and the PostgreSQL libraries; make queries against the Paradox database and write the data to the PostgreSQL database.
If you wanted to go half-way and write a tool that dumps the Paradox database into a CSV format for later import on the PostgreSQL end, that could work too, but there is enough hassle in CSV formats that doing the entire transition Paradox -> PostgreSQL in one application seems like the best approach to me.
I found here the solution to get data from a paradox .db file without DBE.
Regards.
Related
I need to make a connection with PHP to a database created with Paradox (about the year 2004, I think). It is a very old database and there is no way to find information online.
I have tried with xampp, wamp but they do not bring by default any library that can read that type of database from PHP. I have read on the internet that xampp (for example) stopped giving support to Paradox on the year 2008. I imagine that wamp the same.
So, does anyone have any experience with this type of database? I would appreciate any kind of guidance on this subject.
I answer to myself in case someone else has to work PHP (4, 5.x, 7...) with the Paradox database and they have this problem too.
The first is to create a connection odbc with the tool: "ODBC data source". This program comes installed in windows by default.
In the tab: "System DSN", optcion "Add".
Search for the connection "Microsoft Paradox Driver (* .db)", accept it. Add a name and select the directory where we have our database.
Finally, edit the php.ini file and add (or uncomment) these lines:
extension = php_odbc.dll
extension = pdo_odbc
With this we will be able to work with paradox databases in any version of PHP.
My client wants to change application from MSAccess into Linux base with PHP/Mysql.
I got big file which is .BAK or (Binary (application/octet-stream)). I learnt it is backup file of MSAccess.
I am using Ubuntu and never had idea of Microsoft MSAccess. It would be very helpful if there is way to convert .BAK backup into MySQL.
All I want is MySQL which can be easily imported into Mysql.
Let I have developed a dictionary application in mysql using php in xampp. That is i can access it using localhost from my browser. But i do not want it to be online. I want to release an offline version of it. So that I can distribute the project using cd or pendrive and user just take it and run it. That is I want to make it portable in offline.
How can I do that. That is should I install xampp in all the cd and import my database ? Or is there any smart solution?
By it's very nature, XAMPP is portable. You can just extract it and run it. When you run it it will run Apache, mySQL and you can access it by http://localhost or by a different address according to your host file configuration if it has been changed from the default.
So put it on a laptop or onto a pen drive and you can run your code and database from it.
Here's the description of XAMPP:
XAMPP is an integrated server package of Apache, mySQL, PHP and Perl (the AMPP in XAMPP) that all run from a removable drive. Everything is pre-configured and ready to go just by unzipping or installing it.
Why not to search first? )
There is similar question: https://stackoverflow.com/a/12272455/2792335
I think you should first migrate database from MySQL to something like SQLite to avoid need of db server installation.
Then use something like http://www.nusphere.com/products/phpdock.htm or one of applications referenced in the above mentioned answer.
PHP and mysql is not a good platform for such task. PHP to operate need running sever(i.e apache) with support for right version of php. an mySQL is commercial product, you can use it for free, but if you want to include it with your product as you described you need commercial license. I would suggest to rewrite product to another platform. In example you can use JavaScript and HTML5 storage instead for data. or pick different database.
I generally use linux servers and program in PHP (plus other associated technologies) with mysql databases. A client has existing ASP sites using MSSQL databases on a Windows server and wants some new sites created on their server using their MSSQL database as the main data source. I have used ASP in the past but much prefer PHP so would rather use this.
I just wanted to confirm that i'm right in saying as long as the server has PHP installed (which it does) then there's no reason I can't create a PHP site on the Windows server and just use different connectors to connect to the MSSQL db (rather than what i would usually use for connecting to a MYSQL db). Presumably (other than the different connect/query code) this would work in pretty much the same way as with a linux setup with mysql and i could then code the site in PHP but use their existing datasource?
I would be extremely grateful if anyone could confirm i'm right in saying this and if there's any other issues that might cause any problems?
Thanks so much for your help as ever,
Dave
You can enable MSSQL support in PHP on Windows. The default Windows PHP install has the php_mssql.dll extension commented out in the php.ini file. Uncomment that line, restart Apache, and it should work.
There is a supporting DLL called ntwdblib.dll that you may need to find a replacement for, as the version included with PHP may be outdated and won't work with newer versions of SQL Server. (I had this problem when setting it up.)
There are two different libraries to connect to SQL Server from PHP:
The legacy mssql extension, which has been discontinued on Windows
Microsoft's sqlsrv extension, which only works on Windows
I've basically worked with the second one and I can say it's a very interesting product. It's robust, it has a very nice interface and it's totally up-to-date. But what I like most is that it has very nice features. E.g.:
It can return dates as PHP DateTime objects
It provides a PDO driver
The only drawback of using SQL Server is that there isn't an easy way to write a cross-platform app but I understand it isn't problem in your case.
Yes, it is rather straight forweard.
You need to have the mssql library activated in php.ini. Which can be troublesom.
MSSSQL docmentation
I'm looking for some tips on how to export a mysql database into a .mdb file that is readable by Microsoft Access 2007+ (and editable too!). It needs to be a script that can run on a Linux server (maybe using PHP?).
I can't seem to find out anything anywhere. Any ideas?
Cheers!
Thanks for your tips :)
I have since found out we're already using this product elsewhere:
http://dbconvert.com/convert-access-to-mysql-pro.php?DB=1
It's running under Wine on our server, although I don't think it supports the latest versions of Access.
Install the ODBC driver from MySQL.
Create the ODBC system DSN entry.
On Access, execute a query like this:
SELECT * INTO AccessTable
FROM [ODBC;DATABASE=Database_Name;DSN=DSN_Name;OPTION=2059;PWD=MySQL_Password;PORT=0;UID=MySQL_User].MySQLTable
(Replace accordingly: AccessTable, MySQLTable, Database_Name, DSN_Name, MySQL_Password, MySQL_User)
You could create a a CSV file from MySql and then import that into Access. You can use OLEDB or ODBC connection to access and should be able to do the inserts that way.
Are you also trying to create the mdb file on the fly? I'm assuming that you have one built already and just want to export the data from mysql and import into access.
I have not tried this.
The unixODBC Project goals are to
develop and promote unixODBC to be the
definitive standard for ODBC on non MS
Windows platforms. This is to include
GUI support for both KDE and GNOME.
-- http://www.unixodbc.org/