ページの作成
親となるページを選択してください。
ページは必ず何かしらの親ページに紐づきます。親ページに紐づくページを子ページといいます。
例: 親=スポーツ, 子1=サッカー, 子2=野球
子ページを親ページとして更に子ページを作成することも可能です。
例: 親=サッカー, 子=サッカーのルール
親ページはいつでも変更することが可能なのでとりあえず作ってみましょう!
エラー内容
SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes (SQL: alter table `~` add unique `~`(`~`)) |
発生条件と原因
767バイト以上を許容するカラムにインデックスを貼ろうとすると発生するエラー。
バイト数は文字コードに依存する。
対処法
・文字コードを変更する
例えばutf8mb4に対してutf8の方がバイト数が少ないので変更する
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
↓
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
カラムをピンポイントで修正する場合は以下のSQLを実行する。
ALTER TABLE users MODIFY email varchar(255) CHARACTER SET utf8; |
Laravelのテーブル定義を変える場合は以下のようにする。
$table->string('email')->charset('utf8')->unique(); |
・カラムの許容バイト数を制限する
・large_prefixを使用する
子ページ
子ページはありません
同階層のページ
- ERROR 1063 (42000): Incorrect column specifier for column '~'
- mysqld: Can't change dir to '...\MySQL\MySQL Server X.X\data\' (OS errno 2 - No such file or directory)
- Install/Remove of the Service Denied!
- Datetime型がNULLに見える
- Warning: World-writable config file '/etc/mysql/my.cnf' is ignored
- ERROR 1698 (28000): Access denied for user 'root'@'localhost'
- Exception: Wrong MySQL configuration
- [Warning] TIMESTAMP with implicit DEFAULT value is deprecated.
- ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.
- ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
- Incorrect column specifier for column 'カラム名'
- BLOB/TEXT column 'description' used in key specification without a key length
- ERROR: /bin/sh: mysql_config: コマンドが見つかりません
- Host ... is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'
- CSVエクスポート時に「ERROR 1045 (28000): Access denied for user 'username'@'localhost' (using password: YES)」
- Cannot execute statement: impossible to write to binary log since BINLOG_FORMAT = STATEMENT and at least one table uses a storage engine limited to row-based logging. InnoDB is limited to row-logging when transaction isolation level is READ COMMITTED or READ UNCOMMITTED.
- 1
- 1
- 1)
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1"'`--
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1)
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1"'`--
- 1
- 1
- SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect string value: ~
人気ページ
最近更新/作成されたページ
- Đồng hồ Baby-G BA-112-1ADR, lưu ý về thương hiệu: NEW! (2024-04-15 11:47:26)
- Top 5 Nuoc Hoa Huong Ruou Khien Nguoi Dung Say Me NEW! (2024-03-30 15:35:15)
- gooブログ(goo blog) | 無料でブログを作成 (2024-03-26 06:50:01)
- 【エラー】トップレベルのコントロールをコントロールに追加できません。 (2024-03-26 01:38:35)
- C# (2024-03-26 01:36:11)
- 【Visual Studio】 C#のForm自動生成時に「値が有効な範囲にありません」エラー (2024-03-26 01:34:48)
- C#のエラー一覧 (2024-03-26 01:34:22)
- Very hot One-way links: Monday, November 15 (2024-03-15 13:00:31)
- Gates of Olympus (2024-03-01 14:22:29)
- Aviator (2024-03-01 01:54:00)
最近コメントのあったページ
- プロジェクトの作成と削除 (2024-04-26 00:19:21)
- トップページ (2024-04-25 17:02:45)
- プロジェクトの作成と削除 (2024-04-24 22:16:15)
- プロジェクトの作成と削除 (2024-04-23 12:34:43)
- プロジェクトの作成と削除 (2024-04-23 00:52:50)
- プロジェクトの作成と削除 (2024-04-22 10:56:50)
- プロジェクトの作成と削除 (2024-04-21 17:26:57)
- プロジェクトの作成と削除 (2024-04-21 15:40:37)
- プロジェクトの作成と削除 (2024-04-20 10:55:56)
- プロジェクトの作成と削除 (2024-04-20 09:00:35)
最近の質問
- How can MyAssignmentHelp UK assist students as an assignment helper? (2024-02-03 19:15:52)
- c.wiki (2023-09-14 10:51:04)
- $(document).ready(function() { ... ってなに? (2023-04-17 11:02:56)
- 質問です (2020-02-20 12:19:36)
- フリーランスの単価って高いですか? (2020-02-12 19:56:16)
- 情報系のaoを受けるつもりなんですが何かおすすめのソフトはありますか? (2020-02-12 19:54:22)
- test3 (2020-02-08 23:50:54)
- セレクトボックスのCSSのcontentで三角の部分が押せない (2019-07-03 13:06:10)
- GCPのwp-config.phpでpermission denied (2019-06-05 20:04:08)
- Spring FrameworkのEntityのカラム名の大文字小文字、アンスコについて (2019-02-01 07:13:49)
- PHP(Laravel)からPythonのプログラムを呼び出したいのですがどうすればよいでしょうか。 (2018-12-06 06:26:57)
- djangoを本番環境にデプロイしたいのですがどのレンタルサーバー or VPSサーバーがよいですか (2018-12-01 12:04:18)
- Django administrationのUsernameとPasswordについて (2018-11-30 11:55:20)
- Google Adsenseでアダルトコンテンツと誤認されてしまいました。 (2018-09-09 17:15:36)
- Google MapsをUnityで使用する方法&料金 (2018-08-28 02:37:26)
- Amazon PA-APIのSort=salesrankが効かない (2018-07-21 08:54:25)
- 楽観ロックと悲観ロックの違い (2018-01-11 05:05:33)
- レンタルサーバーって沢山ありますけどどこがいいでしょうか?AWSってどうなんですか? (2018-01-09 10:03:20)
- ディープラーニングのライブラリってどれがオススメですか? (2018-01-06 05:15:40)
- Webスクレイピングってどこまでが違法なんでしょうか? (2018-01-06 05:09:08)
- 人工知能(AI)、機械学習、ディープラーニングの違い (2018-01-06 02:40:44)
コメント一覧
コメントを削除してもよろしいでしょうか?
コメントがありません