Mysql query date method: first execute the [mysql -u root -p] command; then enter the password according to the prompts; finally execute the [select now();] statement to view the date.
Enter the mysql -u root -p command to log in to mysql
(Recommended tutorial:mysql video tutorial)
Prompt for password, enter the correct password, enter the mysql command line
Enter select now(); Command, press Enter, return to mysql system time
Related recommendations:mysql tutorial
The above is the detailed content of How to query date in mysql. For more information, please follow other related articles on the PHP Chinese website!