create account

RE: [STEEMSQL] A public SQL database with all blockchain data – UPDATE 1 by arcange

View this thread on: hive.blogpeakd.comecency.com

Viewing a response to: @lukestokes/re-arcange-steemsql-a-public-sql-database-with-all-blockchain-data-update-1-20160921t171529861z

· @arcange ·
Thanks for your comment.
It's quite easy to connect using PHP :
```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));
}
?>

```
👍  
properties (23)
authorarcange
permlinkre-lukestokes-re-arcange-steemsql-a-public-sql-database-with-all-blockchain-data-update-1-20160921t172744010z
categorysteemit
json_metadata{"tags":["steemit"]}
created2016-09-21 17:27:42
last_update2016-09-21 17:27:42
depth2
children2
last_payout2016-10-23 12:04:33
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length426
author_reputation1,146,608,602,483,196
root_title"[STEEMSQL] A public SQL database with all blockchain data – UPDATE 1"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,318,859
net_rshares41,179,603,672
author_curate_reward""
vote details (1)
@lukestokes ·
By default, on my mac, PHP doesn't come compiled with the drivers needed so you end up with this:

> Fatal error: Call to undefined function sqlsrv_connect() 

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.
properties (22)
authorlukestokes
permlinkre-arcange-re-lukestokes-re-arcange-steemsql-a-public-sql-database-with-all-blockchain-data-update-1-20160921t211857650z
categorysteemit
json_metadata{"tags":["steemit"]}
created2016-09-21 21:18:57
last_update2016-09-21 21:18:57
depth3
children1
last_payout2016-10-23 12:04:33
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length454
author_reputation555,178,519,358,062
root_title"[STEEMSQL] A public SQL database with all blockchain data – UPDATE 1"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,321,048
net_rshares0
@arcange ·
Unfortunately not working on OSX. Contact me on  [SteemSQL channel](https://steemit.chat/channel/steemsql) and we will see if we can solve it.
properties (22)
authorarcange
permlinkre-lukestokes-re-arcange-re-lukestokes-re-arcange-steemsql-a-public-sql-database-with-all-blockchain-data-update-1-20160922t071621159z
categorysteemit
json_metadata{"tags":["steemit"],"links":["https://steemit.chat/channel/steemsql"]}
created2016-09-22 07:16:21
last_update2016-09-22 07:16:21
depth4
children0
last_payout2016-10-23 12:04:33
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length142
author_reputation1,146,608,602,483,196
root_title"[STEEMSQL] A public SQL database with all blockchain data – UPDATE 1"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,324,964
net_rshares0