MySQL on remote box & Microsoft Entity Framework tips? - mysql

We have a client with a MySQL database that we need to access over the internet. A port number is open on their end for us to gain access and run queries.
I was wondering if anyone's had experience using the Entity Framework with a MySQL database over the internet and what gotchas and tips you had to share? Is it pretty straightforward getting to the data in your experience? We'll likely be using the most recent version of EF, if that makes a difference. Thanks much for sharing.

Just mentioned this over here
would this be of interest WCF Data Services

Related

Type provider for MySql

I've been searching for an example on how to connect to a MySql database and use F# type providers but I could not find anything online.
Can anyone give me a clue? What - if any - extra packages do I need? Do I use SqlDataConnection or SqlEntityConnection.
Excuse my ignorance but I'm totally lost. Any and all help is appreciated. I love the idea of type providers and have a fair amount of experience with functional programing but it's the setup around this that gets me.
I don't think there is out-of-the box type provider that would work with MySQL at the moment. However, Ross McKinlay has been working on a better type provider for SQL databases (more generally). It currently works with MS SQL server and SQL Lite.
It should be possible to write an extension to support MySQL with fairly small amount of work (but sadly, it has not been done yet). See his blog for details. I'm sure that contributions are welcome!
I haven't tested this, but if Entity Framework works with MySql (it does) and if F# has an Entity Framework Type Provider (it does) then I would expect the Entity Framework Type Provider to work with MySql.
Have you tried that approach?
If you are still interested, I recently added support for MySQL to my SQL type provider, help with testing would be good!
A general SQL database type provider, supporting LINQ queries, schema
exploration, individuals and much more besides.
The provider currently supports MS SQL Server, SQLite, PostgreSQL,
Oracle, MySQL and MS Access. All database vendors except SQL Server
and MS Access will require 3rd party ADO.NET connector objects to
function. These are dynamically loaded at runtime so that the SQL
provider project is not dependent on them. You must supply the
location of the assemblies with the "ResolutionPath" static parameter.
https://fsprojects.github.io/SQLProvider/
I think I actually got it to work!! Here's what I did:
Installed the MySql Connector
Added to and referenced MySql.Data & MySql.Data.Entity in my project
Added and EntityFramework 5.0 to my project
Added both MySql.Data & MySql.Data.Entity to the GAC.
Then I was able to use SqlEntityConnection and get the types!
There's gotta be an easier way to do this though. I particular, adding stuff to the GAC should not be a part of all this process. I mean, am I asking to much for this to work pretty much "out of the box"?!
Unfortunately, I'm extremely unfamiliar with .Net yet, so I couldn't get the whole thing working with the App.config file. Based on my searches here, it looks like I'm not the only one having troubles with this. If anyone has any feedback/suggestions please help!

Data transfer between online Mysql and SQL Server databases

I want to transfer data between Mysql and SQL Server databases, but both are hosted online.
I tried to do this thing using odbc, but it did not work. What is the best solution for this task? ODBC/web services/some other method? Please help me to solve this problem.
You could take a look at the Microsoft Sync Framework, it's very flexible and can deal with different databases.
http://msdn.microsoft.com/en-us/sync/default
There are some database syncing tools already existed. One great tool I can recommend is the Navicat Premium. This tool supports different servers.
Create your own data sync app. It's not so hard to create.

ODBC tools for MySQL

We have ROR site with a MySQL database. There are many tables which we would like read/write access to, but we have not written this function within our current admin panel. I was curious the drawbacks of using an ODBC tool to perform all reading/writing of values to the database from the admin panel. Also, does anyone have any suggestions for ODBC tools that we should look into for an easy to use software.
I think that you haven't actually started using Rails, else you wouldn't ask this question. Go spend some time reading the documentation and a few getting started tutorials.
http://guides.rubyonrails.org/
Rails comes out of the box with ActiveRecord, an ORM layer. Once you get familiar with it, reading/writing to the database will be a breeze, independent of what database you are using.

How to integrate Visual FoxPro w/ MySQL for eCommerce website?

I'm working on an eCommerce website for a small merchant. This merchant uses Opera (which is based on Visual FoxPro) to manage his in-store inventory, and would like the online store inventory to reflect the in-store inventory.
I'm guessing that my first step is to set up a way to regularly transfer the information from the VFP database to a MySQL database on the website's server. Is there an established process for this? Am I even approaching this problem from the right angle? I've heard a lot about ODBC, but am unsure as to how to implement it or if it's what I'm looking for in this situation.
If it wasn't obvious by this point, I'm in over my head here, and would appreciate any and all advice you may have, including links to articles or tutorials that can help improve my general understanding of all the moving parts here.
Thanks much.
Co-worker developed synchronization process between VFP and MSSQL2008. WCF service which took input directly from VFP.
On other project - as far as i remember, when we tried ODBC .NET data adapter, it had problems with encodings and foreign languages. That's why we used COM+, serialization for communication with .NET.
But it seems to me you are using PHP (eCommerce=>Drupal=>PHP) so you are in completely different situation.
In your case, i would start with checking out if Opera (i guess it's this Opera) provides built-in export and eCommerce provides built-in import. Mostly because it might be tedious work to sync data manually from 2 apps coded by someone else. Then i would research if i/o can be joined and automated (something like scheduled task on win environment). Unfortunately, can't help much more because i'm unfamiliar with those tools, products and technologies.
Anyway - it seems to me like quite hard and dirty task and i wish you good luck. :)
Depend on what is that you are using to implement the website.. in general it is pretty easy with ODBC (In Java , I did it using the jdbc-odbc bridge)

How to use dbdeploy with SQL Server?

I need help in setting up dbdeploy for my SQL Server database and MySQL Server.
The example in the dbdeploy website does not tell me how to set the drivers for SQL Server and MySQL. Am a bit lost.
Sample scripts will be appreciated.
Thanks
As part of some ReadyRoll market research we commissioned a poll in the Simple Talk newsletter which revealed that DBUp is now the most adopted database migrations tool after EF migrations, so it would be worth considering this solution as an alternative to DBDeploy.
(Simple Talk's audience is primarily people who use the .NET/SQL Server stack)
Disclaimer: I work for Redgate and the research described above was focused on understanding how ReadyRoll could provide additional value on existing OSS migrations-based solutions.
I tried to use dbdeploy for my project with MSSQL 2008
But I didn't like it and now for MS SQL we use Agile DBRIRE