Laravel 5.0 Documentation
property on the schema builder: Schema::create('users', function($table) { $table->engine = 'InnoDB'; $table->string('email'); }); Dropping Indexes Dropping Timestamps & SoftDeletes Storage see a redis array containing the Redis servers used by your application: 'redis' => [ 'cluster' => true, 'default' => ['host' => '127.0.0.1', 'port' => 6379], ], The default server configuration environment. Simply give each Redis server a name, and specify the host and port used by the server. The cluster option will tell the Laravel Redis client to perform client-side sharding across your Redis nodes0 码力 | 242 页 | 1.44 MB | 1 年前3
Laravel 5.6 中文文档$table->increments('id'); }); 要设置表的存储引擎、字符编码等选项,可以在 Schema 构建器上使用如下命令: 命令 描述 $table->engine = 'InnoDB'; 指定表的存储引擎(MySQL) $table->charset = 'utf8'; 指定数据表的默认字符集(MySQL) $table->collation = 'utf8_unicode_ci'; org */ public function boot() { Schema::defaultStringLength(191); } 作为可选方案,你可以为数据库启用 innodb_large_prefix 选项,至于如何合理启用这个选项,可以参考数据库文档说明。 本文档由 Laravel 学院提供 Laravel 学院致力于提供优质 Laravel 中 Redis 配置的 options 中进行指定: 'redis' => [ 'client' => 'predis', 'options' => [ 'cluster' => 'redis', ], 'clusters' => [ // ... ], ], Predis 除了默认的 host、port、database0 码力 | 377 页 | 14.56 MB | 1 年前3
Laravel 6.0 中文文档562 应用 ID 即可。config/broadcasting.php 文件的 pusher 配置还 允许你指定额外的被 Pusher 支持的 options,例如 cluster: 'options' => [ 'cluster' => 'eu', 'encrypted' => true ], 使用 Pusher 和 Laravel Echo 的时候,需要 在 resources/js/bootstrap Echo 实例时,还可以指定一 个 cluster 以及连接是否需要加密: 本文档由学院君提供 学院君致力于提供优质 Laravel 中文学习资源:https://xueyuanjun.com 582 window.Echo = new Echo({ broadcaster: 'pusher', key: 'your-pusher-key', cluster: 'eu', encrypted: 要使用 redis 队列驱动,需要在配置文件 config/database.php 中 配置 Redis 数据库连接。 Redis 集群 如果 Redis 队列连接使用 Redis Cluster(集群),队列名称必须包 含 key hash tag,以确保给定队列对应的所有 Redis keys 都存放到 同一个 hash slot: 'redis' => [ 'driver'0 码力 | 1442 页 | 14.66 MB | 1 年前3
Laravel 5.1 中文文档要设置表的存储引擎,在表结构构建器上设置 engine 属性: Schema::create('users', function ($table) { $table->engine = 'InnoDB'; $table->increments('id'); }); 5.2 重命名/删除表 要重命名一个已存在的数据表,使用 rename 方法: Schema::rename($from Redis 配置位于配置文件 config/database.php。在这个文件中,可以看到包含被应 用使用的 Redis 服务器的 redis 数组: 'redis' => [ 'cluster' => false, 'default' => [ 'host' => '127.0.0.1', 'port' => 6379 264 ], 默认服务器配置可以满足开发需要,然而,你可以基于环境随意修改该数组,只需要给每个 Redis 服务器一个名字并指定该 Redis 服务器使用的主机和接口。 cluster 选项告诉 Laravel Redis 客户端在多个 Redis 节点间执行客户端分片,从而形成节 点池并创建大量有效的 RAM。然而,客户端分片并不处理故障转移,所以,非常适合从另 一个主数据存储那里获取有效的缓存数据。0 码力 | 307 页 | 3.46 MB | 1 年前3
Laravel 3.2 Documentationthe engine on both tables has to be set to InnoDB, and the referenced table must be created before the table with the foreign key. $table->engine = 'InnoDB'; $table->integer('user_id')->unsigned();0 码力 | 139 页 | 1.13 MB | 1 年前3
09 MySQL 杨亮 《PHP语⾔程序设计》����� character_set_connection MySQL Architecture �� �有�� �����������有�� ��������有��� MyISAM InnoDB ����� ���� ����� ���� select���� �要���� MySQL�� ����� .CSV � ��� �� �� �� 1997 Ford E350 ac0 码力 | 27 页 | 2.10 MB | 1 年前3
Laravel 5.2 中文文档要设置表的存储引擎,在表结构构建器上设置 engine 属性: Schema::create('users', function ($table) { $table->engine = 'InnoDB'; $table->increments('id'); }); 重命名/删除表 要重命名一个已存在的数据表,使用 rename 方法: Schema::rename($from Redis 配置位于配置文件 config/database.php。在这个文件中,可以看到包含被 应用使用的 Redis 服务器的 redis 数组: 'redis' => [ 'cluster' => false, 'default' => [ 'host' => '127.0.0.1', 'port' => 6379 ], ], 默认服务器配置可以满足开发需要,然而,你可以基于环境随意修改该数组,只需要给每 个 Redis 服务器一个名字并指定该 Redis 服务器使用的主机和接口。 cluster 选项告诉 Laravel Redis 客户端在多个 Redis 节点间执行客户端分片,从而形成 节点池并创建大量有效的 RAM。然而,客户端分片并不处理故障转移,所以,非常适合从 另一个主数据存储那里获取有效的缓存数据。0 码力 | 377 页 | 4.56 MB | 1 年前3
Laravel 5.3 中文文档}); 创建一个使用 pusher 连接器的 Echo 实例时,还可以指定一个 cluster 以及连接是否需要加密: window.Echo = new Echo({ broadcaster: 'pusher', key: 'your-pusher-key', cluster: 'eu', encrypted: true }); 本文档由 要设置表的存储引擎,在 schema 构建器上设置 engine 属性: Schema::create('users', function ($table) { $table->engine = 'InnoDB'; $table->increments('id'); }); 重命名/删除表 要重命名一个已存在的数据表,使用 rename 方法: Schema::rename($from 配置位于配置文件 config/database.php。在这个文件中,可以看到包含被应用使 用的 Redis 服务器的 redis 数组: 'redis' => [ 'cluster' => false, 'default' => [ 'host' => '127.0.0.1', 'port' => 63790 码力 | 691 页 | 9.37 MB | 1 年前3
CmlPHP v2.x 开发手册
AUTO_INCREMENT, `name` varchar(255) NOT NULL DEFAULT '' COMMENT '应 用名', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8; CREATE TABLE `pr_admin_access` ( `id` int(11) NOT NULL0 码力 | 245 页 | 720.67 KB | 1 年前3
CmlPHP v2.x 开发手册
AUTO_INCREMENT, `name` varchar(255) NOT NULL DEFAULT '' COMMENT '应用名', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8; CREATE TABLE `pr_admin_access` ( `id` int(11) NOT NULL0 码力 | 143 页 | 1.54 MB | 1 年前3
共 59 条
- 1
- 2
- 3
- 4
- 5
- 6













