◀ 56. SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect string value: ~
エラー内容
SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect string value: ~ |
発生条件/原因/対処法
前提:Laravel, MySQL
絵文字を入力した際に発生するエラー。
対応策は複数あるので以下に挙げるもの全てを確認すること。
1. テーブルの文字コード
「utf8mb4_general_ci」といったマルチバイト(mb4)になっていること。
※対象のカラムに対しての変更を行うこと。データ互換性云々は自己責任で。
2. Laravelの「config/database.php」の設定
'mysql' => [ |
上記のようにテーブルの文字コードと一致しているか確認。
一致していない場合は修正して以下のコマンドを実行。
php artisan config:clear |
- 1071 Specified key was too long; max key length is 767 bytes (SQL: alter table `~` add unique `~`(`~
- 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
人気ページ
最近更新/作成されたページ
- dasdsa (2022-11-13 07:57:24)
- Sydney top independent escorts (2022-11-13 07:56:58)
- 'include' is not defined (2022-06-09 22:05:10)
- 【django】ログイン 認証機能 (2022-06-06 14:30:24)
- [Dockerエラー] WSL 2 installation is incomplete. (2022-06-02 15:34:14)
- 【Laravelエラー】does not comply with psr-4 autoloading standard. Skipping. (2021-11-28 18:13:59)
- 複数のデータベースに接続する方法 (2021-11-16 12:58:24)
- SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect string value: ~ (2021-11-07 07:19:55)
- 【Laravelエラー】Invalid request (Unsupported SSL request) (2021-11-01 04:19:34)
- 【Laravelエラー】Database hosts array is empty. (2021-10-04 00:01:48)
最近コメントのあったページ
- ids for this class must be manually assigned before calling save() (2023-02-07 04:35:52)
- 【Spring Boot (JPA編)】DB接続設定からエンティティおよびリポジトリの作成、値の取得まで (2023-02-07 04:17:19)
- 【Laravel】View::shareを用いて共通の値を各ビューに渡す方法 (2023-02-07 03:35:24)
- 【Spring Boot (JPA編)】DB接続設定からエンティティおよびリポジトリの作成、値の取得まで (2023-02-07 02:54:08)
- 【Spring Boot (JPA編)】DB接続設定からエンティティおよびリポジトリの作成、値の取得まで (2023-02-07 01:32:20)
- jQueryにおける値と要素の削除 (2023-02-07 01:31:24)
- 【Laravel】View::shareを用いて共通の値を各ビューに渡す方法 (2023-02-07 00:18:43)
- 【Spring Boot (JPA編)】DB接続設定からエンティティおよびリポジトリの作成、値の取得まで (2023-02-07 00:09:06)
- 【Spring Boot (JPA編)】DB接続設定からエンティティおよびリポジトリの作成、値の取得まで (2023-02-06 23:49:12)
- 【Spring Boot (JPA編)】DB接続設定からエンティティおよびリポジトリの作成、値の取得まで (2023-02-06 23:48:01)
最近の質問
- 質問です (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)
コメントを削除してもよろしいでしょうか?
No.100 |
guest
| 2023-01-28 12:05:59
Dear itlibra.com admin, You always provide great information and insights.No.99 |
guest
| 2023-01-10 16:46:38
Hello there there! This write-up couldn’t be composed any greater! Looking via this informative article reminds me of my earlier roommate! He constantly saved discussing this. I’ll mail this submit to him. Pretty sure he’ll have an excellent go through. Lots of many thanks for sharing!No.98 |
guest
| 2022-10-08 08:44:18
bunadisisj nsjjsjsisjsmizjzjjzjzz zumzsertNo.97 |
guest
| 2022-10-07 11:25:22
bunadisisj nsjjsjsisjsmizjzjjzjzz zumzsertNo.96 |
guest
| 2022-10-05 14:40:40
bunadisisj nsjjsjsisjsmizjzjjzjzz zumzsertNo.94 |
guest
| 2022-09-02 05:48:25
bunadisisj nsjjsjsisjsmizjzjjzjzz zumzsertNo.2 |
guest
| 2022-03-05 09:00:02
Everything is very open with a very clear explanation of the challenges. It was definitely informative. Your site is very useful. Thanks for sharing! spirulin plusNo.1 |
guest
| 2022-03-05 08:58:38
Excellent goods from you, man. I've consider your stuff prior to and you're just too magnificent. I really like what you've bought here, certainly like what you are saying and the best way in which you say it. You are making it entertaining and you continue to take care of to keep it wise. I can't wait to read much more from you. That is actually a tremendous site. member xxl