I may have to install a VM to figure out how to connect to this db via PHP, but I really am interested in figuring it out eventually. Thanks again for this hard work!
You are viewing a single comment's thread from:
I may have to install a VM to figure out how to connect to this db via PHP, but I really am interested in figuring it out eventually. Thanks again for this hard work!
Thanks for your comment.
It's quite easy to connect using PHP :
<?php $serverName = "sql.steemsql.com"; $connectionInfo = array( "Database"=>"DBSteem", "UID"=>"steemit", "PWD"=>"steemit"); $conn = sqlsrv_connect( $serverName, $connectionInfo); if( $conn ) { echo "Connection established.<br />"; }else{ echo "Connection could not be established.<br />"; die( print_r( sqlsrv_errors(), true)); } ?>
By default, on my mac, PHP doesn't come compiled with the drivers needed so you end up with this:
I spent a long time this past weekend at the RESTfest hackathon trying to get the PDO stuff to work on my mac. It turned into a big pain, unfortunately.
Are you running PHP on windows, already compiled with
php_sqlsrv_53_ts.dll
? If you could get this working on OSX, that would be fantastic.Unfortunately not working on OSX. Contact me on SteemSQL channel and we will see if we can solve it.
You can get Uniserver, it's a nice lightweight server with httpd & sql, Apache 2.0(which supports PHP, javascript and the likes) and MySql respectively. Which works on Windows. Nice security, but i wouldn't use it for a production website, i only use it for development and having my own intranet(for having a family website so we can write each other, post news, chores, appointments, etc.. that's just on our own network) . I don't work for Uniserver, i just like their product. I just read you have a mac, so um ya, windows isn't mac, but i'll keep the post up incase anyone else may find it useful.
There are several Mac alternative to SQL Server Management Studio:
DbVisualizer
RazorSQL
SQLPro for MSSQL