devil20 发表于 2018-9-27 06:17:12

再谈MySQL全库备份

# mysql -uroot -p < Master_db_201612051722.sql  
Enter password:
  
# mysql -uroot -p
  
Enter password:
  
Welcome to the MySQL monitor.Commands end with ; or \g.
  
Your MySQL connection id is 9
  
Server version: 5.6.25-log MySQL Community Server (GPL)
  
Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.
  
Oracle is a registered trademark of Oracle Corporation and/or its
  
affiliates. Other names may be trademarks of their respective
  
owners.
  
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
  
mysql> use helei;
  
Reading table information for completion of table and column names
  
You can turn off this feature to get a quicker startup with -A
  
Database changed
  
mysql> select * from helei;
  
Empty set (0.00 sec)
  
mysql> call insert_helei(5);
  
Query OK, 1 row affected (0.01 sec)
  
mysql> select * from helei;
  
+----+----+------+----+---------------------+------------------------------------+
  
| id | c1 | c2   | c5 | c3                  | c4                                 |
  
+----+----+------+----+---------------------+------------------------------------+
  
|1 |1 |    2 |0 | 2016-12-05 17:51:37 | sususususususususususu             |
  
|2 |2 |    1 |0 | 2016-12-05 17:51:37 | sususususususususususususususususu |
  
|3 |4 |    1 |3 | 2016-12-05 17:51:37 | sususususususususususu             |
  
|4 |3 |    2 |3 | 2016-12-05 17:51:37 | sususususususususususu             |
  
|5 |0 |    2 |4 | 2016-12-05 17:51:37 | sususususususususu               |
  
+----+----+------+----+---------------------+------------------------------------+
  
5 rows in set (0.00 sec)
  
mysql>


页: [1]
查看完整版本: 再谈MySQL全库备份