怎么样通过 LinqPad 连接到 SBDS - MySQL? How to Connect to Steem Blockchain Database Service (MySQL) using LinqPad?


Image Credit Daly Bing Wallpaper 图片来源: 每日BING桌面壁纸 @superbing

This tutorial is in both English and Chinese

Previously, I have used LinqPad a lot to run a few handy queries to @steemsql server. The @steemsql is a MSSQL server. However, I am more comfortable in MySQL and I found a good MySQL relational database - sbds.privex.io, the Steem Blockchain Database Service

To allow running MySQL queries in LinqPad, you need to Add Connection and click View more Drivers

image.png

Download and Enable the ÌQ driver`which supports MySQL, Sqlite and Oracle.

image.png

Getting back to the Add Connection, following the wizard to start a new MySQL connection.

image.png

Put in the access details for the Steem Blockchain Database Service in MySQL
image.png

Then, we can write queries easily, by selecting the connection from sbds.privex.io.steem.steem

select 
    *
from 
    sbds_tx_comments
where
    author = 'justyy'
order by
    timestamp desc
limit 10

image.png

Reposted to my blog: https://helloacm.com/how-to-connect-to-steem-blockchain-database-service-mysql-using-linqpad/


我一直用的是 LinqPad 来连接 steemsql。在LinqPad 里也可以通过简单的设置就可以连接 MySQL 了。碰巧这几天我在研究类似 steemsql 一样的中心化数据库,找到了 sbds.privex.io, 这是Steem Blockchain Database Service,一个给 steem 用的MySQL 的关系型数据库(开源的)

在 LinqPad 里我们需要 通过 添加新的链接 Add Connection 然后查看更多的驱动View more Drivers

image.png

我们需要下载并启用 ÌQ driver`这是一个支持 MySQL, Sqlite 和 Oracle 数据库的驱动

image.png

回到添加新链接的窗口导向,我们选择IQ驱动,点击下一步。

image.png

然后只需要把 数据库的访问方式点好。
image.png

最后面,选择sbds.privex.io.steem.steem 链接,选择SQL 语言,然后写一个SQL跑跑看!

select 
    *
from 
    sbds_tx_comments
where
    author = 'justyy'
order by
    timestamp desc
limit 10

这条MySQL将查询我的最新10条SteemIt帖子(包括评论)

image.png

同步到博文: https://justyy.com/archives/5918


通过 SP 代理工具 成为 YY银行股东,好处多多。只要代理大于10 SP给 @justyy 即可自动成为YY股东。用同样的工具输入0取消代理退出股东。来去自由,取消代理后系统需要7天才能将您代理的SP退回到您的帐号上。友情提示,不建议把所有SP都代理给银行,因为你需要留一些能量发贴。

猜您喜欢

H2
H3
H4
3 columns
2 columns
1 column
11 Comments