Запустил в docker, нужно что то настроить?
dump
-- phpMyAdmin SQL Dump
-- version 5.2.0
-- https://www.phpmyadmin.net/
--
-- Хост: db
-- Время создания: Авг 13 2022 г., 11:32
-- Версия сервера: 8.0.28
-- Версия PHP: 8.0.22
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- База данных: `app`
--
-- --------------------------------------------------------
--
-- Структура таблицы `user`
--
CREATE TABLE `user` (
`id` int NOT NULL,
`email` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`birthday` date NOT NULL,
`gender` enum('1','2') COLLATE utf8mb4_general_ci NOT NULL,
`firstName` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`lastName` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`password` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`updated_at` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
`created_at` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
--
-- Индексы сохранённых таблиц
--
--
-- Индексы таблицы `user`
--
ALTER TABLE `user`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `IDX_e12875dfb3b1d92d7d7c5377e2` (`email`);
--
-- AUTO_INCREMENT для сохранённых таблиц
--
--
-- AUTO_INCREMENT для таблицы `user`
--
ALTER TABLE `user`
MODIFY `id` int NOT NULL AUTO_INCREMENT;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
version: '3.9'
services:
db:
image: mysql:8.0.28
container_name: mysql1
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
MYSQL_ROOT_PASSWORD: root
ports:
- '3306:3306'
phpmyadmin:
image: phpmyadmin
container_name: phpmyadmin1
restart: always
ports:
- '8080:80'
environment:
- PMA_ARBITRARY=1
INSERT INTO `user` (`id`, `email`, `birthday`, `gender`, `firstName`, `lastName`, `password`, `updated_at`, `created_at`) VALUES (NULL, 'email', '1995-01-18', '1', 'firstName', 'lastName', 'password', 'CURRENT_TIMESTAMP(6).000000', 'CURRENT_TIMESTAMP(6).000000')
Ответ MySQL: Документация
#1292 - Incorrect datetime value: 'CURRENT_TIMESTAMP(6).000000' for column 'updated_at' at row 1