console.log("return value from debouncedValue ( old )", debouncedValue);function useLatestValue(val) {
const ref = useRef();
useEffect(() => {
ref.current = val;
});
return ref;
}
root@box-715950:~# cat /var/log/mysql/error.log
2022-11-28T11:58:13.608899Z 0 [System] [MY-013169] [Server] /usr/sbin/mysqld (mysqld 8.0.31-0ubuntu0.20.04.1) initializing of server in progress as process 1683
2022-11-28T11:58:13.642418Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2022-11-28T11:58:16.565699Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2022-11-28T11:58:22.966473Z 6 [Warning] [MY-010453] [Server] root@localhost is created with an empty password ! Please consider switching off the --initialize-insecure option.
2022-11-28T11:58:27.878388Z 6 [System] [MY-013172] [Server] Received SHUTDOWN from user boot. Shutting down mysqld (Version: 8.0.31-0ubuntu0.20.04.1).
2022-11-28T11:58:34.219417Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.31-0ubuntu0.20.04.1) starting as process 1734
2022-11-28T11:58:34.311422Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2022-11-28T11:58:37.511489Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.31-0ubuntu0.20.04.1) starting as process 1876
2022-11-28T11:58:37.593973Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2022-11-28T11:58:40.198876Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.31-0ubuntu0.20.04.1) starting as process 1992
2022-11-28T11:58:40.280916Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2022-11-28T11:58:42.282268Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.31-0ubuntu0.20.04.1) starting as process 2227
2022-11-28T11:58:42.324368Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2022-11-28T11:58:43.837061Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.31-0ubuntu0.20.04.1) starting as process 2355
2022-11-28T11:58:43.943555Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2022-11-28T11:58:45.395408Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.31-0ubuntu0.20.04.1) starting as process 2393
2022-11-28T11:58:45.608825Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2022-11-28T11:58:47.428921Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.31-0ubuntu0.20.04.1) starting as process 2417
2022-11-28T11:58:47.636624Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2022-11-28T11:58:49.944050Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.31-0ubuntu0.20.04.1) starting as process 2439
2022-11-28T11:58:50.060890Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2022-11-28T11:58:52.595294Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.31-0ubuntu0.20.04.1) starting as process 2456
2022-11-28T11:58:52.676111Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2022-11-28T11:58:53.992346Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.31-0ubuntu0.20.04.1) starting as process 2487
2022-11-28T11:58:54.012315Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2022-11-28T11:58:55.169586Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.31-0ubuntu0.20.04.1) starting as process 2510
2022-11-28T11:58:55.187328Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2022-11-28T11:58:56.451401Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.31-0ubuntu0.20.04.1) starting as process 2532
2022-11-28T11:58:56.476247Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2022-11-28T11:58:57.636715Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.31-0ubuntu0.20.04.1) starting as process 2556
2022-11-28T11:58:57.661802Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
root@box-715950:~#