I like the features of Woocommerce and the extensibility that you won with this plugin. I saw that Woocommerce actually has a REST API, but is there another way to make the things more seamlessly and simple. I would like to have these features but with the data of my API or Backend-Database, not the other way, because actually others Apps consume my current API.
This is an overview of the architecture of my app (I exclude other stuff like Load Balancers, cache servers, CDN, etc... for making things simple).
SERVER ONE (front-end -- public ip)
E-commerce Website (Wordpress with Woocommerce)
SERVER TWO (front-end DB -- private ip)
MySQL Database for SERVER ONE
SERVER THREE (Back-end -- private ip)
E-commerce App (Rails)
SERVER FOUR (Back-end -- private ip)
Oracle Database for SERVER THREE
SERVER FIVE (Back-end -- private ip)
API based on SERVER THREE E-commerce App
So, in general, I would like to know if there is a way to still use Woocommerce in my E-commerce Wordpress site either with the API of SERVER FIVE or a direct access to the Oracle Database of SERVER FOUR.
We have integrated Woocommerce and Oracle. We don't use rest or the api, we talk directly from Oracle to the Woocommerce MySQL database. We have setup an Oracle database link using ODBC to the MySQL database and we read and write from Oracle to MySQL. We also have customised Woocommerce and talk directly from Woo to Oracle. As Woo is PHP there is no problem connecting to the Oracle database.
So for example we create(register) clients records from Oracle in WooCommerce and we pull orders out of Woocommerce and process them in Oracle with the ERP system.
Google database links Oracle and MySQL on how to set it up. One other hint, you will need the "SQLPASSTHROUGH" call if you need to do sql statements which require for example a mysql function. You also need to be aware that object names can be only a maximum of 29 characters in Oracle. So if you access a table in MySQL which has a long name you need to define a view with a shorter name for that table.
Related
I am new to MS Azure just with some SQL Server Background and now we are facing some design / architecture questions and I am somehow lost.
One the one hand, there is a DataWarehouse and a small SQL-Database in Azure and they store all the structured or not structured incoming data. Works fine!
Now we think of moving the MySQL Database for the first version of the website (we need to stay at MySQL for the web-service) to Azure. In version two of the website, we like to integrate some of the Data from SQL-Database and DataWarehouse so it sounds good to have all the stuff at one place.
As much as possible from all the structured Data, we would like to store at the SQL-Database and not in MySQL. MySQL should stay lightweight. But what will be the beste way to create some interaction between Webservice, MySQL und SQL-Database?
Our Webdesigner asked for some APIs and as the users should be able to change some settings in their account we would need a lot of get and set APIs. And those APIs will just handle traffic within Azure, no external Access is needed. I just discovered the option of external Tables in Azure MySQL but cant find use-cases or best practice of that.
I am looking for a solution, in which I can deliver the necessary data for the Webdesigner / Frontend and they do not need to work with any databases (as they do not like to do that).
The traffic between MySQL and SQL-Database will be low (our stream goes into Datawarehouse, some analysis in there and we save the results as structured Data in the SQL-Database) and up to now we do not need a connection between Datawarehouse and MySQL/Webservice.
Any suggestions? How would you design such a connection?
Using Azure Data Factory you can maintain both databases and transfer (called as COPY in Data Factory) from SQL DB to Azure DB.
I am building a CRM app using vb.net in asp.net. My app is still on my local machine, but I intend to deploy it later when it's finished.
At the other hand, I have a hosting plan that gives me unlimited MySQL databases where I created a database for my app to use.
My app connects to the database, writes and reads info from it with no problem. it also creates new tables for each new Customer (each user has 9 tables in database that contain his info).
After adding a few customers, the database gets messy, containing dozens of tables in one place.
As a solution for that, I thought it will be more clear, tidy and secure if I can create a seperate DB for each user/customer from my app.
Is there a way to do this using vb.net and asp.net? If so, could you provide some sample code that can achieve this?
okay. before we begin our project I just want ask
does the vb.net 2013 and web(online) can have a 1 database only one database(my sql)?
the name of our project is library system using barcode and the panel added a website for the user to reserved a book online
and the panel said that both system and the website must have only one database.. is that possible?
and before we begin what (mysql) database should i use in our system, what should i download in this site http://dev.mysql.com/downloads/ ??? do we need a sql connector ???
or can i use the mysql in wamp to connect both system and web? is that possible for vb.net 2013 and web?
I really lost about this,, so pls help me thanks....
You can connect any amount of items to a database provided that your server can handle the connections. All that is needed is the connection string to open a connection, then you need to handle data readers and the such (I prefer to use entity framework).
As for having only one database, think about what would happen if there were two databases. I go online, reserve the book in one database, but then you go to the physical library 5 minutes later and check out the book that I reserved because it does not show reserved in that database. See the problem? Both need to use the same database for book tracking or else you run into situations similar to what I just mentioned.
We would like to be able to publish Filemaker data on our Wordpress website. The website is up and running and the filemaker database is set up. We do not need a live connection between both systems so we chose to export the FM data to .csv so we can import it to the mysql database on the server and from there we would like to display in on the website.
Now are my questions, since this kind of development is new to us:
can I setup an automated import to the mysql database from a source like dropbox or something? For example can we make the mysql database import and overwrite the existing database each 24 hours from a .csv file located somewhere? We need this automated overwrite option because the FM data changes often and we need up to date info on the website)
How can we display the data from the mysql database on the WP frontend?
I've been looking into this myself and couldn't find any clear answers or guides. Can you guys point me in the right direction?
(btw, I know there are table plugins I can use for WP but they do not fulfill our needs, and I think it's exciting to do it all by ourself with help from this great community)
Update 01
I've successfully connected FM with my MySQL db using ODBC and can now select tables from the MySQL db in FM's relational graph.
I was wondering how I can write the data from my existing FM file to the MySQL db using ODBC, can anybody help me on this?
I would like to display the data in some MySQL tables so I can fetch them using php on my website.
Thanks!
It is possible to write directly into (and read from) a remote MySQL database from FileMaker via ODBC.
You need an MySQL account which allows remote access. There are providers where this is not allowed.
On the local box the odbc driver needs to be installed. On Win you can use the open source version (http://dev.mysql.com/downloads/connector/odbc/), on Mac it works better with the Actual Tech (http://www.actualtech.com/de/product_opensourcedatabases.php) drivers.
An odbc system dsn (not user dsn) is set up. Be sure to use the 32-bit odbc manager on Win.
Now you can create the external data source within FileMaker and read and write into MySQL tables.
Once you have made the connection to the MySQL database, and you can see the shadow tables, you can write to the fields directly via Filemaker layouts. It's as simple as that.
Once the layout contains the fields from the MySQL database you can move through records, find stuff all as if the data were native in your FM database. Of course, for more automated processing, you can create scripts, relationships etc and manipulate/synchronise data. Be warned though, the connection speed can limit complex relationships and large databases. I would advise 'baby steps'.
I'm considering an option to use Oracle Database as web services provider and implement web service logic via PL/SQL stored procedures. I used to code stored procedures some time ago, though I'm not sure what direction should I go in order to use most up to date solutions:
I would like to use amazon cloud for oracle solution. After creating oracle instance, what else should be done in order to use it for serving as web server. I didn't find Amazon Cloud for Oracle Application Server or Glassfish. Also, I need to use JSON but it's unclear does Oracle have such support out of the box. Currently, I found the only option to use Soap 1.1 with Oracle XML DB
Should there be two DB instances for security issues: one node serving as data source and the other one serving as web service provider.
Would appreciate for any ideas and info :)
You might want to review the Oracle Rest Data Services Developer Guide
Amazon provides Oracle access in their product "RDS", but I've never tried it. However, I doubt that you'd be able to use the Oracle web listener directly.
JSON support is not included in Oracle AFAIK, but it should be easy to implement on your own.