Access local MySQL database via LAN through Visual C++ DLL - mysql

I'm writing a wrapper for a local MySQL database. So far, I've made a Visual C++ DLL that opens a connection to the database from the local computer using MySQL's C connector. How can I extend the DLL to access the database remotely through a LAN connection?

it is the same concept, but you need to enable remote access on your remote database. This is not really safe if you are doing it over public connection.
http://www.cyberciti.biz/tips/how-do-i-enable-remote-access-to-mysql-database-server.html

Related

Azure Data Factory - connect to onprem accdb

I need to retrieve data from Access onprem database by using adf. I have integration runtime installed on azure vm. Access database is on the other virtual machine. I know that on the azure virtual machine I should have a path to that Access database but how to do that?
I know that on the azure virtual machine I should have a path to that Access database but how to do that?
To connect on-premises Access database with Data factory you need to install SHIR on that particular Virtual Machine. Only for port 443 outbound traffic. This may be open by default.
The Integration Runtime Machine needs to have the Microsoft Access ODBC driver installed for the data storage.
Microsoft Access 2016 version of ODBC driver doesn't work with this connector. Use Microsoft Access 2013 or 2010 version of ODBC driver instead.
In linked service select that particular SHIR hosted on that particular Virtual Machine.
Provide correct values to the linked service properties like connectionString, authenticationType.
Reference- Copy data from and to Microsoft Access using Azure Data Factory follow this official document.

How to connect to an Access database remotely?

I tried to connect with ODBC, and after the ODBC configuration was successful, the way you added external data using the local Access database could not be connected successfully.                                   
Error message:odbc--call failed
[ODBC Driver Manager]The architecture mismatch between the driver and the application in the specified DSN(#0).
The local computer is installed with 64-bit access 2016,The remote computer is installed with 32-bit access 2010.
How to solve, thank you very much!
You can't do that. It is beyond the scope of Access which is intended to connect/link via a LAN.
You may be able to link those remote table, but that will only work via a very reliable and high-speed connection like a 100/100 fibre WAN.

Windows client - MYSQL server on linux

I have a Winforms desktop app that need to read/write data from/to a MYSQL database. The MYSQL server is on a machine that runs on Linux OS. I need to know if a .NET connector is to be used or an ODBC connector?
Also, considering that I do not need remote access to MYSQL server, is a connector sufficient to access the server from the windows desktop? Do I need to do something on the server side? I've been looking around and getting mixed signals, some people said a web service is required while others said no.
I need to know if a .NET connector is to be used or an ODBC connector?
I never connected to MYSQL before, but i think you can use these data provider or, ODBC too.
Is a connector sufficient to access the server from the windows desktop?
Yes. A valid address to your server is all you need to access it, using data providers or ODBC. Of course, your database need to be up and running too.
Do I need to do something on the server side?
Just install your MYSQL database.
Maybe this link will help you.

VB.net Project using MySQL user locally

Need Help.
I made a vb.net project, it is already finished. but my problem is, after i install the project i made to another computer. it can't connect to the database unless the WAMP server is open. is there a way to user without opening WAMP server?
WAMP stands for Windows Apache MySQL PHP. It runs MySQL server, so you need it to access database. Option is that user on another computer runs some MySQL server or connects to web server that runs database required for application.
You could also consider using Microsoft Access database. In this case you don't need server. All database is just in one MS Access file.

ODBC connection to MS-Access on Ubuntu

One of our employees created a Microsoft Access Database and has built a Joomla! module around it. It is currently running on a WAMP server, with an ODBC connection to the accdb file.
How can I create an ODBC connection on Ubuntu for the Access database?
At this point, I'm open to having the DB live locally on my Ubuntu server, or on an SMB share somewhere.
Moving it from Access to MySql has already been proposed. It may come down to that, but I'm really being pressured to find another option.
Does anyone know if this is possible and how to accomplish it?
I'm sorry if this question has already been asked; I truly did look for it already, but couldn't find anything specific to connecting Access via ODBC on Linux.
I'm not entirely sure I understand the use case here, but here are a few thoughts:
Access databases are file-based databases and therefore server-less.
This means that the database file itself can reside on a local Windows machine, a windows network share or a SMB share on a linux box.
However, the application that queries the database must have access to the necessary drivers to manipulate the database.
On Windows, this is not an issue: All Windows version come pre-installed with the Jet drivers for the old .mdb format.
For the new .accdb format, you must have one of MSOffice 2007/2010/2013, Access 2007/2010/2013, Access Runtime 2007/2010/2013 or the standalone ACE driver installed to be able to use the new database format.
On Linux, the mdbtools package provides some degree of compatibility with the .mdb file format, allowing such a database to be queried and modified by a Linux application directly.
Another Open Source library (java) for manipulating (.mdb and .accdb) databases is jackcess.
ODBC drivers for Linux exist, but as far as I know, they are commercial and can be fairly expensive, see the easysoft Access ODBC Driver.
See also this SO question: Connecting to access database from linux
Basically, if you are looking for an easy solution that would be Open Source, going to MySQL or using a local SQLite database will be a lot more workable on Linux.