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

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

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

          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備份時也不會備份這兩個數(shù)據(jù)庫
          官方文檔里解釋到:
          http://dev.mysql.com/doc/refman/5.5/en/mysqldump.html

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



          評論

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

          2012-05-15 07:54 by moper
          挺不錯的,轉(zhuǎn)載了~
          主站蜘蛛池模板: 潍坊市| 五莲县| 黑山县| 陆良县| 日喀则市| 本溪| 浦城县| 大竹县| 榆社县| 砀山县| 周口市| 平远县| 黄骅市| 博湖县| 乡宁县| 滦南县| 张北县| 内丘县| 英吉沙县| 乌审旗| 聂拉木县| 梓潼县| 梅河口市| 宁城县| 犍为县| 乾安县| 道真| 道孚县| 镇赉县| 天全县| 临漳县| 石台县| 白水县| 原阳县| 南投县| 蚌埠市| 增城市| 卢龙县| 和林格尔县| 南漳县| 电白县|