LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-31-2013, 10:09 AM   #1
thirdshiftguy
LQ Newbie
 
Registered: Jan 2012
Posts: 10

Rep: Reputation: Disabled
connect to azure database


Has anyone successfully connected from a linux box to an Azure database? I am working on some suggestions from another thread, but should that fail, I thought I should ask ahead of time.

I am using php and was able to successfully connect to Azure, but I was not able to use mssql_select_db to change out of 'master' to the desired database.

I have been using the typical LAMP setup for years; it just works! This is my first venture into accessing Azure from linux. Azure does not even play nice with M$'s other software! We had quite a bit of difficulty connecting server 2008 with php To Azure.

Thank you.
Danilo
 
Old 01-02-2014, 11:03 AM   #2
thirdshiftguy
LQ Newbie
 
Registered: Jan 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
Installation suggestions from that other thread have been unsuccessful. If anyone could provide some insight to connect linux to an Azure database, please let me know.

PDO::getAvailableDrivers() returns an array of dblib & mysql. Using "dblib:driver=odbc driver 11 for sql server", I receive error "SQLSTATE[HY000] Unable to connect: Adaptive Server is unavailable or does not exist (severity 9)".
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Drupal or PHP won't connect to database after database is restarted Skaperen Linux - Software 2 09-23-2011 04:04 PM
DBI Connect Failed:Access denied for user ''@'localhost' to database <database> error kaplan71 Linux - Software 3 06-05-2009 12:39 PM
phpbb3: could not connect to database arnuld Linux - Server 2 10-13-2008 07:12 AM
cannot connect to mysql database PAD_LOCK Programming 5 09-01-2006 02:03 PM
why cant i connect to my database? Alexander.s Programming 2 05-02-2005 01:12 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration