Chinaunix首页 | 论坛 | 博客
  • 博客访问: 158723
  • 博文数量: 73
  • 博客积分: 3106
  • 博客等级: 中校
  • 技术积分: 730
  • 用 户 组: 普通用户
  • 注册时间: 2010-05-11 22:57
文章分类

全部博文(73)

文章存档

2018年(2)

2016年(1)

2012年(8)

2011年(21)

2010年(41)

我的朋友

分类: Mysql/postgreSQL

2012-01-12 12:21:03

  • 添加远程访问:

      1.    >GRANT ALL PRIVILEGES ON *.* TO root@"%" IDENTIFIED BY "kernel";

      2. sudo vi /etc/mysql/my.cnf

          在旧版本中找到 skip-networking,把它注释掉就可以了
         #skip-networking

          在新版本中:
        # Instead of skip-networking the default is now to listen only on
        # localhost which is more compatible and is not less secure.
         bind-address           = 127.0.0.1 这一行要注释掉

          或者把允许访问的 ip 填上
         #bind-address       = 192.168.1.100

     3.然后重启 MySQL
        $> sudo /etc/init.d/mysql restart
        * Starting MySQL database server mysqld

  •       sqldump命令:

        mysqldump -uroot -p > filename.sql

阅读(470) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~