mysql> show databases;+--------------------+| Database |+--------------------+| information_schema || db_log || db_users || mysql || performance_schema |+--------------------+5 rows in set (0.00 sec)
mysql> use db_log;Database changed
mysql> show tables;
Empty set (0.00 sec)
[root@pre ~]# sed -n '/^-- Current Database: `db_log`/,/^-- Current Database: `/p' all_database_bak_471_2017-12-04_15_36_38.sql > db_log.sql &# 導(dǎo)入庫(kù)中[root@pre ~]# /home/mysql/mysql55_3310/bin/mysql -uroot -p < db_log.sql &mysql> use db_log;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -ADatabase changed
mysql> show tables;+------------------------+| Tables_in_db_log |+------------------------+| api_online_logs || onlinegame || onlinegame_gamestats || onlinegame_playerstats || onlinegame_type || osa_menu_url || osa_module || osa_quick_note || osa_sys_log || osa_system || osa_user || osa_user_group || sample || user_online || user_psw_audit |+------------------------+15 rows in set (0.00 sec)
mysql> # 數(shù)據(jù)已經(jīng)恢復(fù)了