Compatibility between VBA and MySQL on Excel for Windows and Mac - mysql

I'm coding an app in VBA which is linked to an Access Database. My app is already functional. I import the data from the Access DB in Excel sheets, and use it, classic isn't it.
As you may know, Access ins't available for MacOs, so I can't update or get any data from my Access DB when my VBA app runs on Mac.
I know that you I link MySQL with VBA using ADODB, replacing my Access DB by doing so.
My question is: if I have a MySQL DB on a Mac, and I want to pass it to a Windows computer, is it possible? Do I need to simply copy/past a database file?
Will there be any incompatibility in the files format between the 2 Os which could cause any problems?
My app will be used by several people who use both windows and Mac, and need to work on the latest updated database, so Access isn't a viable option.
Thanks!

MySQL is happy to run on both OS. So, as long as the end user is and has a running copy of MySQL, then I see little reason why the database file can't be transferred. You never opening or connecting to a file, but to that of MySQL server database. In fact, it don't matter if MySQL is running on a Linux server - windows or Mac clients can connect to such databases without issues.
So, the only real issue here is that you have to have MySQL database server up and running - and you have to have as such in all cases, since you not connecting to a file like MS-Access but are in fact making a socket tp/ip connection to a database server.
So you need more then just a transfer of the MySQL database file - you need MYSQL as as sytem/server running in all cases. But as far as I know, MySQL database files are compatible between different platforms running MySQL. The only common issue is that of having a running server instance of MySQL.

Related

How can i grant access to mySQL database to other computer within my house?

I'm a beginner in SQL so i'm sorry if the question is too basic.
I just created a database in MySQL Workbench in my computer and i would like to be able to access and modify the database from another computer within my house. I read some solutions but they all require using some external product, is there a way and how can i do this by the MySQL Workbench GUI, or maybe other functionalities from MySQL?
I also installed MySQL community server on the other computer that i would like to connect my database to.
Thanks!
If it's a home network, and both of you are connected via same router, then you can connect to mysql server on the other device using http://ip_of_machine_running_mysql:3306.
ip_of_machine_running_mysql should be the ip of the machine running mysql server.
Worth to note that you need to allow remote connection to mysql if you haven't already done so when you were doing mysql installation.
The steps for enabling remote access differs for your os(windows, ubuntu, mac), but you can easily find tutorials and how to's for changing such configuration.
https://www.brightfunction.co.uk/connecting-to-mysql-server-across-a-local-windows-network/
https://www.techrepublic.com/article/how-to-set-up-mysql-for-remote-access-on-ubuntu-server-16-04/

Transfer or Dump from Azure MS SQL Server Database

I am trying to transfer a Microsoft SQL Server database stored on Azure to a different database (e.g. MySQL, Postgres) to access it locally on a Macbook.
I have tried various methods with no success. Does anyone know a sure-fire way to transfer or dump this type of database?
Op didn't specify a budget.
sure-fire way
I get that you said a different database(s), however you didn't explicitly say you did not want to xfer to SQL Server, and it occurs to me perhaps you were not aware you could xfer to SQL Server on Mac.
Buy VMWare's Fusion, install Windows OS in the VM on your Mac; install SQL Server on the Windows VM, backup and restore to your local hard drive.
Warning
backup and restore to your local hard drive.
This can be easier said than done, you might do some research on this aspect prior to making any purchases.

How to convert '.bak' file into '.sql' file in order to import the database in MySQL phpMyAdmin?

I'm a PHP developer by profession. I'm using Ubuntu Linux on my machine.
I don't have any idea about .Net framework and MS SQL Server Express database.
I've received a file titled project_db.bak and I have to convert it into project_db.sql in order to import the same database into MySQL.
I searched over the Internet for the solution. I found couple of answers but they are asking to use MS SQL server tools which I can not. I have to achieve this conversion in some other way.
Can someone please help me in this regard?
MS Sql Server typically generates binary backups, so what you have I guess is a backup. To restore it to a "querable" state you will need MS tools or RESTORE statment someway executed against the Motor (that you will need). Once it was "restored" (that is the reverse to a MS backup) you can dump (in MySql terms) with a tool or with a script
Create a Virtual Machine Windows 7 or better.
In the VM make sure you have a second network card that's set to a private network with your Host so you can connect to your Host MySQL you will need a User in your MySQL Server setup that allows connections from your remote network
in this VM install SQL Server, and SQL Server Management Studio & Navicat from that you can then restore the .bak file, once you have it restored. you will need another external tool that allows you to export as another format for this i use Navicat export is as another format. you can then connect to your MySQL Server and import that exported file.

How can I copy a table from one database to another on the same server without shell (command line) access?

I do not use the Shell interface.
I have my own shared Linux server at SoftLayer with WHM and CPanel for my two joomla website installations.
I would like to start migrating populated tables from the old site to the new one.
BUT I don't know how to use shell access, and I prefer a graphical interface anyway.
I am working on installed extensions one at a time.
I saw a mention about MySQL Workbench 6.0.7
http://dev.mysql.com/downloads/tools/workbench/
but am unsure of it's operation on my server.
Any insight on making this task easier or more foolproof would be appreciated.
Export your tables from PHPMyAdmin on your cpanel, then import them to your new server via PHPMyAdmin too.

MS Access Linked Tables to MYSQL via ODBC refreshes on some machines but not all

Here's the deal.. I have a MS Access DB with a number of linked tables to a MYSQL DB. I was having issues running queries on my c# program only to find out the machine I was coding from is clearly not reading the DB properly.
So to make things simple I open the Access DB with Access and tried to open a table where I knew what the data should be. The machine I'm coding from does not get the latest data from the MySQL DB.
I open the SAME Access DB from two other machines on my network that I know my c# program works correctly. From there the Access DB shows all the updated data from MySQL.
Unfortunately I've come into this project in the middle. I'm only just learning about linked tables. I see there's tons of info about it and how to do it programatically but I just don't understand how it works fine on two machines.. but the other machines see some data, just not the latest. It has nothing to do with my c# program since I see the issue with I'm reading the DB via access.
Is there something... some code or something installed on the two working machines that allows it to keep up to date that I'm missing? If there is.. I just simply don't know where to look.
Thanks!
I wonder if your MySQL drivers are up to date on that machine. Also are you using DSNs to access the Access database? If so that machines DSN may be pointing to an out of date development Access database.