php-rql icon indicating copy to clipboard operation
php-rql copied to clipboard

connect with credentials

Open carportar opened this issue 8 years ago • 2 comments

Hello, how to connect specifying username and password?

carportar avatar Mar 03 '17 00:03 carportar

I think its something like this:

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

icecrystal99 avatar Apr 12 '17 13:04 icecrystal99

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

RobIsHere avatar Apr 29 '17 08:04 RobIsHere