How to import existing database on Azure? - azure

I have completed with the process of creating webapp + mysql with different deployment slots. I have also configure bitbucket on Azure new portal (https://portal.azure.com). I have Linux system.
I want to import existing Database, from local to Azure. I have tried with Mysql workbench but its giving me Failed connection.
So my question is, How to import existing Database on Azure portal?

In regards to your comment from yesterday, you either try to connect to an Azure SQL Database with the MySQL Workbench, which will not work.
Use another tool like SQL Server Management Studio or JetBrains DataGrip for that.
Or you're using the ClearDB MySQL offer.
Then your connection string should look like this "Server=eu-cdbr-azure-north-b.cloudapp.net;Port=3306;Database=myDataBase;Uid=myUsername;Pwd=myPassword;", which I was assuming when you wrote that you used the webapp+mysql template.
Or you're hosting your own MySQL Server as a Virtual Maschine, which would also be a different server name, e.g. yourpublicipdnsname.northeurope.cloudapp.azure.com

Related

Azure database file location

There is Azure SQL server with name xxxdb10.database.windows.net that is up and running. I am trying to create DB there and I have to use specifics application in order to have proper DB structure. Everything works with SQL Server Express as you can see below, program add file location automatically. But when I try to point to Azure SQL server and do the same application does not recognizance path and I got this error below. What to use for database file location in case of Azure SQL server please, can you help?
With SQL Server Express:
With Azure SQL server:
• I would suggest you use Microsoft SSMS (SQL Server Management Studio) tool to connect to the Azure SQL Server created in Azure instead of SQL Express. Since SSMS is only a tool for managing various types of SQL Databases locally or in Azure, thus it should be promptly used for creating such Azure databases. Please refer the link below on detailed documentation and information regarding this as well as refer to the snapshots depicting the usage of SSMS as a prompt tool for connecting to Azure SQL databases and server.
https://learn.microsoft.com/en-us/azure/azure-sql/database/connect-query-ssms
In the above snapshots, you can see that we can connect to an Azure SQL Server and creating a database in it through SSMS.

Creating an Azure server Database failed

I just signed up with Microsoft Azure. I want to upload my existing database onto the cloud. I don't see any create any server instance in the Sql Server menu. I have tried using the add new database procedure. I have completed all the steps but the process keeps failing. This is my status error message:
{"error":{"code":"DisallowedProvider","message":"The operation is not
permitted for namespace 'Microsoft.Sql'. List of permitted provider
namespaces is
'Microsoft.Resources,Microsoft.Authorization, Microsoft.Insights, Microsoft.Web, Microsoft.Support, Microsoft.VisualStudio, SuccessBricks.ClearDB, Microsoft.NotificationHubs'."}}
Can anyone please help me?
If you are using dreamspark account that currently Microsoft don't support SQL for dreamspark account users.
What version of the portal are you using? Since there are a few different ways you can proceed about creating a SQL database, I recommend following this tutorial to start with Azure SQL Database: https://azure.microsoft.com/en-us/documentation/articles/sql-database-get-started/
If you have an existing SQL Server database and would like to migrate it to SQL Azure you can use SQL Migration Wizard, or script your existing database and execute the script with SSMS. A few more alternatives can be found here: https://azure.microsoft.com/en-us/documentation/articles/sql-database-cloud-migrate/
Hope this helps!
Thanks,
Luis

Creating a Base VM Image with SQL on Azure

We would like to utilize Azure VM's to do some testing on one of our applications. The application runs on Windows Server and uses a SQL DB. We would like to get everything setup on a base VM image and then have the ability to use this base image to create multiple VM's that could be used for various testing.
The part that I'm struggling with is in regards to SQL. If I start up a Windows 2008R2 VM with SQL 2012 SP1 Web and get everything setup on that VM and then run sysprep, when I fire up a VM based on that base image I have issues with SQL (logging in with Window auth for example). Do I need to be using a SQL Server login instead of using Windows Auth?
Is there a step I'm missing when sysprepping the base image for getting SQL setup/configured to be a base image?
Thanks for the help.
The issue is that When SQL is installed, Azure gives the user who is provisoning the VM admin access to SQL
When a VM is created from an Image, SQL is already installed with Image admin and still has the same.
As a workaround start the sql server in single user mode, login and then add the required logins to the sql server.

Is it possible to attach a MDF file to an Azure SQL database?

I have just created an Azure Website and Linked SQL Database.
I have a SQL Server 2008 SP2 database on my local machine. Is it possible to detach the local .mdf file, FTP it to Azure and then attach it as a SQL database in Azure? The only other way is to export the scheme and load this, followed by the data.
In the absence of detaching and attaching DBs, I have come across "SQLAzureMW" which looks very useful in guiding me through this process.
Thank you in advance.
You can deploy an database from Management studio to Azure.

Migrating from "SQL Server" to "SQL Azure, while already using "Linq to SQL"

I want to migrate an existing application from SQL Server to to SQL Azure. I am using "Linq to SQL". The application is local, what i assume is that i will only have to change the connection string and the application will be connected to the cloud instead of local database and no change is required at code level.
If you already have your database migrated to SQL Azure, then yes all you will need to do is change the connection string and open the SQL Azrure firewall to allow your clients to access the DB (this you can do in the portal).
However, while SQL Azure is very close to SQL Server, it isn't exactly the same. Lots of links to official variations can be found in this article or you can try running the SQL Azure Migration Wizard

Resources