posts - 88, comments - 3, trackbacks - 0, articles - 0
            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理
          MySQL 5.5多出了兩個新數據庫 information_schema performance_schema

          mysql> show databases;
          +--------------------+
          | Database           |
          +--------------------+
          | information_schema | 
          | mysql              | 
          | performance_schema | 
          | test               | 
          +--------------------+
             

          但是用mysqldump去備份這兩個數據庫的時候都會報錯

          mysqldump: Got error: 1044: Access denied for user 'root'@'localhost' to database 'information_schema' when using LOCK TABLES

          mysqldump: Got error: 
          1142: SELECT,LOCK TABL command denied to user 'root'@'localhost' for table 'cond_instances' when using LOCK TABLES

          用--all-databases備份時也不會備份這兩個數據庫
          官方文檔里解釋到:
          http://dev.mysql.com/doc/refman/5.5/en/mysqldump.html

          總結一下,如果一定要用mysqldump去備份這兩個數據庫不是不可以,但是得disable lock tables。 我用的是:
          --database information_schema --lock-tables=0



          評論

          # re: About mysqldump of MySQL 5.5 backup information_schema & performance_schema databases  回復  更多評論   

          2012-05-15 07:54 by moper
          挺不錯的,轉載了~
          主站蜘蛛池模板: 大荔县| 遂平县| 华阴市| 永年县| 天全县| 涞水县| 五莲县| 金川县| 武宣县| 临泽县| 五家渠市| 旬邑县| 雅安市| 龙川县| 公安县| 罗源县| 宁国市| 墨竹工卡县| 玛曲县| 大悟县| 山阴县| 那曲县| 云霄县| 玉溪市| 扎鲁特旗| 昌宁县| 江源县| 西昌市| 连山| 霍邱县| 犍为县| 皋兰县| 怀仁县| 宁都县| 常宁市| 宣恩县| 滕州市| 沂源县| 滨海县| 拜泉县| 保德县|