danielmewes / php-rql

A PHP client driver for the RethinkDB query language (ReQL).
http://php-rql.dnsalias.net/
339 stars 60 forks source link

connect with credentials #151

Open carportar opened 7 years ago

carportar commented 7 years ago

Hello, how to connect specifying username and password?

icecrystal99 commented 7 years ago

I think its something like this:

$conn = r\connect(array(host=>"localhost", "port"=>28015, "db"=>"xxx", "user"=>"xxxx", "password" => "xxx"));

RobIsHere commented 7 years ago

Docs: https://www.rethinkdb.com/api/javascript/connect/

It's defined here for php: https://github.com/danielmewes/php-rql/blob/master/rdb/Connection.php#L48