Skip to content

No suitable servers found (serverselectiontryonce set): [connection timeout calling ismaster on '127.0.0.1:3306'] #911

@51yourdream

Description

@51yourdream

No suitable servers found (serverselectiontryonce set): [connection timeout calling ismaster on '127.0.0.1:3306']

use Jenssegers\Mongodb\Eloquent\HybridRelations;
use Jenssegers\Mongodb\Eloquent\Model as Eloquent;

class Goods extends Eloquent
{
use HybridRelations;
protected $connection = 'mongodb';
// protected $connection = 'mysql';
protected $collection = 'tbke_goods';
// zk_final_price 价格
// volume 销量
// tk_rate //佣金比例
/**
* 批量往mongo中存入数据
* @param $datas
* @return bool
*/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions