自由鸟的两年时间(dolphin)

programmer-->security professor

小白ID:rainv
48899次访问,排名2061好友0人,关注者0
walker.java
rainv的文章
原创 68 篇
翻译 0 篇
转载 56 篇
评论 18 篇
dolphin的公告
最近目标: 1.开发一个网站 2.汇编学习
最近评论
liushilin2008:谢谢了,很好的办法
zhengbin917943:哥们太感谢了.刚改完就让我删了.还好看到了
cheerwang:请教:为什么 this.getHibernateTemplate()
.getSessionFactory()报出 java.lang.NullPointerException
刘冬:谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢
路过:谢谢。又会了一招。
文章分类
收藏
    相册
    文章图库
    大学同学
    小虫
    小虫团队
    公司同事
    rocket[WEB]
    Waterye
    技术站点
    Acegi Security System
    appfuse[web]
    clamwin[开源杀毒]
    developerworks
    devlib
    fox的c++图形库
    GRAILS[一个脚本web框架?]
    infoQ
    intel
    javalobby[EN]
    javascud[开源项目服务]
    JCP
    OMG(Object Management Group)
    springside[div布局]
    w3c
    W3C
    woodpecker[python]
    xprogramming
    xruby
    中国网站排名
    商业caucho
    开源大本营
    梦之都[xhtml]
    海豚
    书籍站点
    爱书吧
    西安信息港
    一些牛人
    adverse[图形Java,MFC,VB]
    ai92[UML]
    bingki[图形]
    DanceFire[c,c++,java,搜索引擎etc]
    ecside[报表组件]
    goldbox[Java各方面研究]
    Haohappy2004[php+java]
    ideawu[Linux桌面应用与服务器技术]
    kevins的天空[网络安全]
    lin_bei[WEB,搜索引擎]
    Open-Open[开源大本营]
    simon[web和图形技术]
    SUN的技术传道者
    大坡[汇编]
    江南白衣[JavaEE]
    存档
    软件项目交易
    订阅我的博客
    XML聚合  FeedSky
    订阅到鲜果
    订阅到Google
    订阅到抓虾
    订阅到BlogLines
    订阅到Yahoo
    订阅到GouGou
    订阅到飞鸽
    订阅到Rojo
    订阅到newsgator
    订阅到netvibes

    原创 MYSQL导入导出命令收藏

    新一篇: Jan Goyvaerts正则表达式(一)  | 旧一篇: 利用外部命令Oralce数据库导入导出

    备份:
    C:\Documents and Settings\Acer>mysqldump -h127.0.0.1 -utest -ptest hello>d:\sq_vitamin.sql

    导入:
     C:\Documents and Settings\Acer>mysql -utest -ptest hello<d:\sq_vit
    amin.sql

    注意的是   -u和-p后面紧跟着用户名和密码,中间没有空格分隔。 

    远程备份的时候出现了以下错误,找到了解决方案。增加一个选项--single-transaction,解决了。
    即 mysqldump --single-transaction -h127.0.0.1 -utest -ptest hello>d:\sq_vitamin.sql

    mysqldump: Got error: 1044: Access denied for user 'test@'%' to database
    'test' when using LOCK TABLES

    下边有更详细的说明.
    http://blog.chinaunix.net/u/17006/showart.php?id=140205

    Contents

    [hide]

    Data Backup

    how to dump the database entirely into a file, called dumpfile.mysql:

    let the database is "pluto", the user is "pippo", and his password is "ciccio".

    mysqldump -ac --add-drop-table --user="pippo" --password="ciccio" pluto > dumpfile.mysql

    If you want a complete backup of all databases, all functionality and will be restoring into MySQL then the --opt optional tells mysqldump to include it:

     mysqldump --opt --user="pippo" --password="ciccio" --all-databases > dumpfile.mysql

    Data Recovery

    to get back your data

    mysql pluto -u pippo -p

    --->enter in mysql shell

    mysql> source dumpfile.mysql;

    this could work.

    Try this first with non important data, as i don't assume any responsability for errors or mistakes -- dave_AT_ccni_DOT_it

    For more information, see www.newsforge.com

    Automatic Backup

    I like to use the AutoMySQLBackup script to backup my MySQL databases.

    Just download the script, enter your mysql root password, select your databases and other options, and then stick it in your /etc/cron.daily/ directory.

    If you have the ability to create users and do not want your root mysql password in a shell script somewhere you can create a new 'backup' user specifically for this. The following command logs in as the root user (prompts for password) and then creates a mysql user named backup with password backupPW. The user has only SELECT priveleges and will only connect from localhost, thus if the password is read by another they will not be able to edit the database.

     mysql -u root -p -e "GRANT SELECT, LOCK TABLES ON *.* TO 'backup'@'localhost' IDENTIFIED BY 'backupPW';"

    Be sure to edit the downloaded script to have the correct login and password for the backup user and to save the backups to the correct location.

    Backup Troubleshooting

    Error 1044

    If you are getting the error mysqldump: Got error: 1044: Access denied for user 'user'@'server' to database 'db' when using LOCK TABLES then the user does not have lock priviledges. Use a different user with adequate privileges. If you only have this user account, you can use the --single-transaction option to avoid the LOCK TABLES function of mysqldump.

    If an error code is returned when issuing a backup request, the most likely cause is insufficient memory or insufficient disk space. You should check that there is enough memory allocated for the backup. Also check that there is enough space on the hard drive partition of the backup target.

    Currently (as of MySQL 4.1.10a) NDB does not support repeatable reads, which can cause problems with the restore process. While the backup process is "hot", restoring a MySQL Cluster from backup is not a 100% "hot" process. This is due to the fact that, for the duration of the restore process, running transactions get non-repeatable reads from the restored data. This means that the state of the data is inconsistent while the restore is in progress.

    发表于 @ 2007年03月26日 13:51:00|评论(loading...)|编辑

    新一篇: Jan Goyvaerts正则表达式(一)  | 旧一篇: 利用外部命令Oralce数据库导入导出

    评论

    #http://ip.jdict.org/ 发表于2007-09-22 15:46:41  IP: 124.254.4.*
    加上 --single-transaction 这个,还是不行, 错误消息变了
    ----------------------
    mysqldump: Couldn't execute 'SHOW TRIGGERS LIKE 'ApplyTable'':Can't create/write to file 'C:\WINDOWS\TEMP\#sql_a18_0.MYD' (Errcode: 13) (1)
    2007-09-23 00:21:12作者回复
    似乎是Triggers引起的吧,不能导出AppleTable触发器.<br />'SHOW TRIGGERS LIKE 'ApplyTable''<br />你在百度搜搜错误代码吧.sorry,I don't know.
    发表评论  


    登录
    Csdn Blog version 3.1a
    Copyright © dolphin