Cant access My SQL Database on Azure VM from outside source

I have Word Press running on an Azure Virtual Machine. It uses My SQL. I would like to read the My SQL databasre from an ASP.Net application.  I have opened the 3306 internal TCP port.  I am attempting to read the My SQL database from Navicat on
my client before I try ASP.Net and I get a Cant connect message. i can access the same database successfully from a local server copy of Navicat.  The credentials are the same on both. The only difference is the external port number.
Is the problem with Navicat? Can you recommend another way to test the connection? I have used Shields Up to verify that the external port is open.

Hi,
The Azure SQL Database
service is only available with TCP port 1433. To access Azure SQL Database from your computer, ensure that your firewall allows outgoing TCP communication on TCP port 1433.
More information:
http://msdn.microsoft.com/en-us/library/azure/ee621781.aspx
Regards,
Mekh.

Similar Messages

  • How to access the sql database in applet?

    How to access the sql database in applet?
    Please help me.

    import java.applet.*;
    import java.awl.*;
    import java.sql.*;
    //other packages
    public class jdb extends Applet
    Connection con;
    Statement stmt;
    String name="drvijay";
    String phoneno="9842088860";
    public void init(){}
    pubilc void stop(){}
    public void destroy(){}
    public void start()
    call();
    public void call()
    try{
              Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
              conn=DriverManager.getConnection("Jdbc:Odbc:emp","sa","");
              stmt=conn.createStatement();
              stmt.executeUpdate("insert into empdetails(name,phoneno) values ('"+name + "',''"+ phoneno +"' )" );
              }catch(SQLException e)
                   System.out.println("error"+e);
                   System.exit(0);
    //<applet code="jdb" height="200" width="200"> </applet>
    u this jdbc statement in any of the method..
    */

  • Accessing a SQL database

    I'm trying to access an SQL database and export the contents as a tab delimitated file. Is there a free program that would allow me to do this?

    Hi,
    the free edition of DBVisualizer http://www.dbvis.com/products/dbvis/features/index.jsp?feature=1 should be sufficient for that.
    Regards
    Stefan

  • Accessing MS SQL database with two Windows accounts simultaneously

    Hello,
    I have ASP.NET web application started under PC\UserName account, and Windows Service Application that runs under Local System Account (NT\System). Both applications should access MS SQL database simultaneously. They are using same connection string:
    <add name="DefaultConnection" connectionString="Data Source=(LocalDb)\v11.0;AttachDbFilename=|DataDirectory|\mydb.mdf;Initial Catalog=mydb;User=MyUser;Password=MyPassword;" providerName="System.Data.SqlClient"
    />
    The problem occurrs every time when second app tries to fetch data from database. So, app which connects first can fetch data normally, but the other one gets "Login for
    MyUser failed" exception every time.
    Everything works as expected when i start windows service app under PC\UserName credentials. But the problem is that i have to do that login every time manually, and when User changes password I have to change it in service settings also.
    Does anyone know how to solve this problem?
    Thanks,
    Mladen 

    add name="DefaultConnection" connectionString="Data Source=(LocalDb)\v11.0;AttachDbFilename=|DataDirectory|\mydb.mdf;Initial Catalog=mydb;User=MyUser;Password=MyPassword;" providerName="System.Data.SqlClient"
    Hello Mladen,
    You are using a User Instance
    of SQL Server and when the first app start this user instance with the MDF in exclusive Access; no other can use this MDF = Single User mode.
    Better attach the database file as a regular database, then you can use several connections to access the database.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Link my website (Zend Framework 1.12) with SQL database on Azure

    Hello community!
    Recently I uploaded my website on Azure portal. I built my website with Zend Framework 1.12.
    My problem comes when i am trying to link my website with my SQL database.
    I have already post a question to Stackoverflow stackoverflow.com/questions/20638706/link-zend-framework-1-12-on-azure-with-a-database-on-azure
    Can anyone help me to running over with this problem?
    Thanks in advance!

    I have already tried this, but i received error and my website doesn't load!
    This is my whole cone in application.ini file
    [production]
    phpSettings.display_startup_errors = 1
    phpSettings.display_errors = 1
    includePaths.library = APPLICATION_PATH "/../library"
    bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
    bootstrap.class = "Bootstrap"
    appnamespace = "Application"
    resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
    resources.frontController.params.displayExceptions = 1
    resources.view.encoding = "UTF-8"
    resources.view.doctype = "XHTML1_STRICT"
    resources.view.contentType = "text/html;charset=utf-8"
    resources.view[] = ""
    autoloaderNamespaces[] = "Skoch_"
    resources.db.adapter="pdo_mysql"
    resources.db.params.host="Server_Name.database.windows.net"
    resources.db.params.port=1433
    resources.db.params.username="login_name"
    resources.db.params.password="password"
    resources.db.params.dbname="Database_name"
    resources.db.isDefaultTableAdapter=
    true
    resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts/"
    [staging : production]
    resources.frontController.params.displayExceptions = 1
    [testing : production]
    phpSettings.display_startup_errors = 1
    phpSettings.display_errors = 1
    resources.frontController.params.displayExceptions = 1
    [development : production]
    phpSettings.display_startup_errors = 1
    phpSettings.display_errors = 1
    resources.frontController.params.displayExceptions = 1

  • Deploying SQL Database to azure fails with VSO

    Hi, I'm trying to publish my Sql project along with my website using Visual Studio Online Build.
    VSO use the pubxml that contains the location of the created dacpac -
    <Object Type="DbDacFx">
                <Source Path=location on the build machine dacpac Action="Deploy" />
    </Object>
    The Database deployment is not working and I don't see any errors.
    Can I make the deployment process more verbose so I can recognize the problem?
    The deployment is working if I publish from Visual Studio 2013 locally to azure.
    I've tried to open the IP's between the build machine and the SQL instance in azure.
    Thanks

    Hi
    Shacharl,
    As the issue is more related to  Visual Studio Online (VSO), for quick and accurate answer, I would like to recommend you post the question in the Visual Studio Online
     forum at
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=TFService .
    You can also check the following similar articles about deployment to Azure via VSO.
    Deployment to Azure from VS 2012 Via VSO
    https://pasp65.wordpress.com/2014/01/10/deployment-to-azure-from-vs-2012-via-tfs/
    Continuous delivery to Azure using Visual Studio Online
    http://azure.microsoft.com/en-us/documentation/articles/cloud-services-continuous-delivery-use-vso/
    Thanks,
    Lydia Zhang
    If you have any feedback on our support, please click
    here.
    Lydia Zhang
    TechNet Community Support

  • Unable to create SQL database in Azure

    Hi, 
    I have an Azure free trial account. However, it doesn't allow me to create a Basic tier SQL database on the management portal, but shows an error saying 'the operation is not supported for your subscription offer type'. My free trial only started today.
    Could you please tell me how I can resolve this issue. Thank you.  

    Hi tinkertest,
    Based on my research, the error you saw should only occur for a subscription used with a free trial offer type. Please use the below link to open a support ticket.
    http://azure.microsoft.com/en-us/support/options/
    You can check the following links for similar issues.
    The operation is not supported for your subscription offer type
    Can't change performance level S1 to S2.
    "The operation is not supported for your subscription offer type."
    Thanks,
    Lydia Zhang

  • SQL Server 2008 R2 - Connection from multiple sources makes the database drop.

    Hey,
    I have a database being accesses from multiple sources - IIS and WPF application.
    Once a user enters the website(which is connected to the database through a Connection String), The WPF application stops its communication with the database, or vise versa.
    The problem being solved once I restart the IIS service or the SQL instance service.
    Thanks in advanced.
    Nir.

    Hello Nir,
    Thank you for your question. I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated. 
    Thank you for your understanding and support.
    If you have any feedback on our support, please click
    here.
    Regards,
    Elvis Long
    TechNet Community Support

  • Run SSIS Package (SQL Database on Different Server) from Data Manager.

    Hi- How to run a SSIS package from BPC Data Manager -This package connects to another SQL Server Database and creates a text file. This text file is the source to BPC custom tasks CONERTTASK and DUMPLOAD task to load to BPC.
    Here is the  flow of the complete package- Dataflow (Create the text file from a SQL Database)
                                                               CONVERT TASK (Convert the file to BPC Format)
                                                                DUMPLOAD TASK (Load the converted file to BPC)
    Any pointer will be a great help.

    Hello Pam,
    When you run SSIS package with BPC DM it runs on the application server. You don't really have to run a package on a different server in order to get data from a remote database and dump it to a file. That task can be done in your SSIS package using various data sources/destinations. If that's what you are trying to do. The only thing is, your BPC admin user (the one you used to install BPC) has to have an appropriate privileges on a remote server.
    Hope that helps.
    Regards,
    Akim

  • Access to Time Capsule in Bridge Mode from outside of the network

    I have a Time Capsule with an external hard drive set up in bridge mode on my home network. The main router and DHCP server is an Actiontec MI424, and is specific to my ISP (Verizon, required for TV Guide info from Fios) so the Time Capsule's AirPort can't be used as the primary. I need to access the external hard drive from outside my network (I.E. the internet), but I'm having trouble figuring out which ports are required for Sharepoint to work.
    So far I've forwarded 548, but I get an error "-36" when I try to connect from the outside. It works fine on the inside. Any suggestions?
    Thanks, JSD

    The Express units can extend wireless on the TC or each other.. but they cannot extend wireless on the Asus anyway..
    So the setup is Asus--TC (that has to be ethernet) The TC in bridge mode.
    Then TC -- express can be done by ethernet in roaming mode as bob listed above or extend wireless.
    I am guessing.. what model are the express units.. they are older Gen1 N model ??
    IMHO the TC is simply no longer viable.. replace it with one express as the AP and extend it with the other Express.. see if that works better.
    But I would be trying to use the wireless just from the AC66U.
    I would also force the Asus back to 20mhz on the 2.4ghz band.. so you can provide adequate channel separation.. 40mhz wireless on 2.4ghz works poorly anyway because you have too much wifi .. there is very limited number of non-overlapping channels.. ie 3. 11, 6 and 1.

  • Accessing a server via the Server app from outside a router firewall

    So I'm trying to access my server using the Server app on a MacBook Pro outside my server network.  I can access it just fine when my client is inside the server network, but I cannot connect when outside the server network.
    I've done the following troubleshooting:
    - I've turned off the server Firewall option available in the server's Server Admin tool
    - I've set up port forwarding on my router
    - I've opened up port 311 on the router
    - I've placed the server outside the router DMZ zone and the Server app connects just fine
    - I've checked the box "Allow remote administration using Server" in the server's Server app Settings tab
    - With the router configured correctly, the Server app cannot access the server
    There's something in the router that is blocking access by the Server app.  Apple Enterprise support says they are sure there is no other port to open up.  Is there something else I should be doing to access the server from outside the router using a client Server app?
    TIA
    ps - this worked fine when I just had the server hanging directly off a cable modem.

    I and I suspect a lot of other admins would argue you should not be making your server accessible via Server.app remotely due to security concerns. Saying that, I and again I suspect a lot of other admins also want/need to be able to remotely administer servers. There is a better way however to achieve this.
    You should be running a VPN server, perhaps using your same Mac server. You should leave the firewall blocking access directly for Server.app but if your remote Mac first connects via the VPN it will then be connected securely to your internal network and then be able to use Server.app

  • 502 Error Calling Azure SQL Database In Another Region From Azure Website

    I run this code which works fine on the desktop or in an Azure VM but fails with a 502 error in Azure Website.  Interestingly, the failure is instant and catastrophic with all exception handling bypassed.  Took a long time to track the code down:
    The failure is in the constructor for SqlConnection which has a valid connection string (tested on the desktop, Azure VM and SSMS).  The originating Azure Website is in South East Asia and the database is in South Central US.
    Does anyone have any ideas why or what can be done about it?
    Code:
    return; // returning here OK
    SqlConnection connUS = new SqlConnection(connectionStringRegionUS); // this connection string works on desktop & SSMS
    return; // returning here throws 502 error

    Many thanks to  Colin Mierowsky who put me onto the right track.  I created a static X509Certificate elsewhere in the same class.  The standard declaration caused this **VERY** misleading 502 error.  Adding the storage flags X509KeyStorageFlags.MachineKeySet
    | X509KeyStorageFlags.Exportable to the X509Certificate constructor made the problem go away.  The correct code for the constructor in Azure Website is:
    X509Certificate2 cert = new X509Certificate2(key
    , password
    , X509KeyStorageFlags.MachineKeySet | X509KeyStorageFlags.Exportable);

  • Silverlight interface to SQL Database on Azure

    Adding a new required column to a table with data in it and specifying a defautl value does not work.
    When is this going to be fixed?

    Could you please detail this? I'm affraid I don't understand the operation...

  • Polulate textfield(s) from a MS SQL Database based on selection from DropDown List

    I am new to LiveCycle Designer. I am trying to create a Master Bill of Lading form. I want the user to be able to enter a Store Number from a in a text field and, based on what they enter I want to populate the address information from a database on my SQL Server.
    When I bind the address fields from the database, I only see the first record in the database.
    I'm not sure where to go from here...
    Thanks in advance,
    Jeremy

    That seemed to fix my error and returned the value to my DDL.
    I have modified the code so it looks at the clone of my dataConnection (dcStoreData)
    CODE:
    btnClear.MainPage.sStNo::change - (JavaScript, client)
    var inStrNbr = xfa.event.newText;
    if (inStrNbr == ""){
    app.alert("You must enter a valid name - try again!") } var nIndex = 0;
    while(xfa.sourceSet.nodes.item(nIndex).name != "dcStoreData")
    nIndex++;
    tfStoreID.rawValue = inStrNbr;
    var oDB = xfa.sourceSet.nodes.item(nIndex).clone(1);
    // the node pertaining to the data connection specified
    //app.alert(oDB.saveXML("pretty"));
    //set up sql call to DB to get specifics about employee
    oDB.nodes.item(1).query.setAttribute("text", "commandType");
    oDB.nodes.item(1).query.select.nodes.item(0).value = "Select * from tblStoreMast_LastVersion where StorNbr = '" + inStrNbr + "'";
    //app.alert(oDB.nodes.item(1).saveXML("pretty"));
    //now connect to DB and get a record
    oDB.open()
    oDB.close();
    it runs with no error and I am seeing the value it has given my DDL.rawValue
    Now I get the "error:"
    GeneralError: Operation failed.
    XFAObject.open:16:XFA:btnClear[0]:MainPage[0]:sStNo[0]:change
    ado2xfa operation failed.  Item cannot be found in the collection corresponding to the requested name or ordinal.
    My Store Number is stored as an int in the database.
    Do I have to somehow cast it as a character?
    Sorry for the headache!
    Jeremy

  • Connecting to Azure SQL database in Access 2010

    I've recently purchased a new computer and I had an OBDC connection set up to link to a sql database in azure through access. I am trying to set it up on my new computer but I'm unable to define the specific database. I'm able to make the connection but
    it only allows me into the master database. I've added my IP address in the configure servers but still can't get things to work. Any help would be greatly appreciated.
    thanks
    Lynn

    Hi,
    The following guidelines apply to SQL Database connections using ODBC:
    • When using SQL Server Native Client from SQL Server 2008 R2 or SQL Server 2008, the connection string must include the server name as part of the user name (user@server).
    • You must use TCP/IP as the protocol when connecting to an Azure SQL Database.
    • You cannot create a table in the master database, so therefore you must create a user database to create a table.
    • You cannot execute a use database command to switch to your user database. You must disconnect and connect directly to the user database.
    • You must have a primary key or clustered index on your table to be able to insert data.
    Ref:
    https://msdn.microsoft.com/en-us/library/azure/hh974312.aspx?f=255&MSPPError=-2147217396
    http://blogs.office.com/2010/06/07/access-2010-and-sql-azure/
    https://support.microsoft.com/en-us/kb/2028911/
    Hope this helps you.
    Girish Prajwal

Maybe you are looking for

  • Badi or Enhancement for Purchase order invoice plan change for ME22N

    Hi ,   I have a req to have a custom tab at the header level with the push button in ME22N , By clicking the push button i need to update the invoice plan detail to all item level by using the 1st line item invoice paln entered while creating PO . I

  • How to detect Shift+MousePress() combination?

    Hi there, I'm trying to detect <mousebutton> + <Keyboard button>. For example Shift + BUTTON1(Mouse left button). I'm using NetBeans and there is only frameMousePress() function from where I can get eventhandler- "evt". Do you know how to do that? Th

  • Apple TV Ethernet Connection

    I have an Apple TV unit that I would like to connect via an ethernet cable. I have a cable DSL modem that is plugged in to my iMac, so I have no available ethernet ports remaining for the ATV ethernet cable. Do I need a switch or router to make this

  • Query on Time Dependent Info object

    Hi , I am trying to create a query out of a time dependent info object.The info object is 0employee and since it is time dependent it has the date from and date to automatically in the infoobject master data. However these fields do not come up as ch

  • How to change the lock/unlock sound on a iPhone

    How do you can the sound of the lock/unlock in an IPhone 4 that hasn't been jail broken and also do not need a computer?