mysql常用命令

1. 数据库导入导出

  a. 导入

    mysql -uroot -p1234

    use dld;

    source /backup/dld.sql;

     b. 导出

    mysqldump -uroot -p1234 dld > dld.sql

2. 赋权

  mysql> grant all privileges on *.* to root@'%' identified by 'your_password';

  mysql> flush privileges;

 

posted @ 2015-11-14 18:44  cglworkBook  阅读(157)  评论(0编辑  收藏  举报