Showing current date and time in YYYY-MM-DD HH:MM:SS format using MySQL :

Current datetime in YYYY-MM-DD HH:MM:SS format
2022-07-07 10:05:42