Connect to a MySQL database via Excel online - mysql

We build and deploy excel 'tools' which run queries in VBA from an Access database. However, we want to make this tool available to a client without sending them over an entire database along with the excel file.
Q. Can we store a read-only database online, using MySQL or even SQL Express, and allow any machine with our Excel file (and connection setup) to access this? I.e. we want our Excel file to connect to a 'cloud' database
Background: I've used PhpMyAdmin to connect and query databases, but this has always been in a local development environment.

I think you would use a connection string in Excel to connect MySQL or SQL Express:
In Excel, go to Data, Connections, Add:
MySQL: Server=myServerAddress;Database=myDataBase;Uid=myUsername;Pwd=myPassword;
SQL Express: Driver={SQL Server};Server=myServerAddress;Database=myDataBase;Uid=myUsername;
Pwd=myPassword;

Related

Exporting from MySQL and importing into Microsoft SQL

I exported a MySQL DB, both structure and data, using PHPMyAdmin, with the option of exporting it as MSSQL compatible single file: mydb.sql
The resulting file is large (about 2GB).
I have a DB set up on a Microsoft SQL Server.
How do I import the mydb.sql file, into the Microsoft SQL Server? I installed the Microsoft SQL Server Management Studio, and was able to use it to connect to the Microsoft SQL Server, and connect to the DB, but I can't figure out how to use it to import mydb.sql, to create the table and data.
Any ideas?
Choose File->Open from SSMS menu.
Pick your SQL file.
Once the file is loaded be sure that you are in the context of your database.
Click Execute button.

MS Access's user interface to interact with data from a MySQL database?

On Windows 7, I must connect a MS Access client .accdb, where all the forms, VBA scripts, macro, and reports are, to a MySQL Database instead of a MS Access database .mdb. Here what I have tried so far.
I created a connection with MySQL Connector /ODBC 5.3 Unicode driver to the MySQL database with success.
After in MS Access 2013, I created a new database .mdb by linking to my local machine ODBC Connector. I can see the data in each table I have linked.
However, I didn’t find where to change the connection’s setup of the MS Access client .accdb so it uses the data from the new .mdb file linked to the MySQL database. Where do we do that?
Actually, I had also tried to directly connect the .accdb to MySQL by linking to my local machine ODBC Connector. In that case, the .accdb's forms kept trying to connect to the previous .mdb database. Where can I change this configuration?
Is there another, maybe easier way to use MS Access's user interface to interact with data from a MySQL database?

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.

Connecting MySQL to external data source using proprietary ODBC Driver

I have a cloud-based CRM system that provides a proprietary ODBC Driver.
This has been fully configured, set up as a system DSN, and tested with no errors. The system DSN is called 'servicenowdev'.
I also have a local MySQL server, that I would like to connect to the CRM system and download periodic backups. I can connect to the 'servicenowdev' DSN using i-SQL and run queries fine, but I would like to link the server (MS SQL Server "Linked Server" style), but in MySQL.
Where do I start with connecting my MySQL server to this dsn?
I don't know the internal details of the CRM system to provide a database name, host, port or any other details for a FEDERATED SERVER connection.
Can I create views straight to the dsn's tables, or would I have to import data locally?
I have an alternative, albeit not the most efficient, method. In essence I start with MS Access by creating pass through query using the
ServiceNow ODBC. (SELECT * FROM servicenow.table)
I then perform an insert query into a local access table using the pass through query as the source
(INSERT INTO table SELECT * FROM query)
Then I export the table to the MySQL database using the MySQL ODBC.
Hoping you've found a better method but if not then hope this helps.

How can I migrate my MsSQL database on a hosted website to a MySQL database on a different hosted website?

I have a MsSQL 2008 database hosted on somee.com . I have purchased another hosting under net4.in which is providing me MySQL database. So now, how can I migrate/synchronise my MsSQL database to the MySQL database ?
I have tried below things but in vain :
There is an inbuilt facility provided in the MySQL in net4.in to synchronise two databases on remote servers,where I have tried selecting the target server as "Current Server" and in Source Server, I have selected "Remote Server" and provided connection details which were available to me from somee.com . Unfortunately, the Socket and Port details are not provided on somee.com, I have tried giving various values like "TCP/IP" and "1433"(the default value) but in vain.
There is an import facility in MySQL in net4.in , in which I have given the format of imported file as "SQL" and SQL compatibility mode as "MSSQL" , but it is giving an error showing some encrypted text from my MSSQL database saying that its not able to understand it.
The easiest way is to export a csv or .sql file of your existing database then import it using our web-based DB management tools at http://db.infuseweb.com.
However, this may not always be effective especially if you have very large database files. In which case you will need to submit a support ticket and provide us with a MSSQL .bak file or all the MySQL database files from your old host. You will also need to create an empty database in Helm with the exact same database name and users/passwords that you have with your old host. We will then move the database under your account.