怎样还原数据库mysql

mysql -u [username] -p [database_name]

如果您想恢复到以前的时间点,可以使用以下命令:

mysqlbinlog [bin-log-file] | mysql -u [username] -p