json rpc
访问量: 1851
json rpc 跟 restful api 一样,提供了接口.
网上的例子和说明很多, 有意思的文章见: https://blog.csdn.net/u013096666/article/details/78663940 把 ETH 的命令行模式和 RPC模式都列出来了.
正常使用: (命令行)
1. $mysql -u root ...
2. mysql > create table ...
使用json rpc:
curl -X POST -H 'Content-type:":application/json --data '{"json-rpc": "2.0", "method" : "create table" , params: "students" , id: 888} localhost:3306