佳礼资讯网

 找回密码
 注册

ADVERTISEMENT

查看: 1160|回复: 4

[求助]還原DATABASE的問題

[复制链接]
发表于 10-7-2005 04:26 PM | 显示全部楼层 |阅读模式
SQL Error : 1062 Duplicate entry '1' for key 1

INSERT INTO phpbb_banlist (ban_id, ban_userid, ban_ip, ban_email) VALUES('1', '0', '4136bc86', NULL)

Line : 980
File : admin_db_utilities.php


請問是什麽問題?

Warning: filesize(): Stat failed for phpbb_db_backup[1].sql (errno=2 - No such file or directory) in /home/bhl2138/public_html/game/restore_dump.php on line 48

Warning: fopen(phpbb_db_backup[1].sql): failed to open stream: No such file or directory in /home/bhl2138/public_html/game/restore_dump.php on line 55

Warning: fseek(): supplied argument is not a valid stream resource in /home/bhl2138/public_html/game/restore_dump.php on line 69

Warning: feof(): supplied argument is not a valid stream resource in /home/bhl2138/public_html/game/restore_dump.php on line 71

Warning: fread(): supplied argument is not a valid stream resource in /home/bhl2138/public_html/game/restore_dump.php on line 75

Warning: feof(): supplied argument is not a valid stream resource in /home/bhl2138/public_html/game/restore_dump.php on line 90

Warning: fread(): supplied argument is not a valid stream resource in /home/bhl2138/public_html/game/restore_dump.php on line 75

Warning: feof(): supplied argument is not a valid stream resource in /home/bhl2138/public_html/game/restore_dump.php on line 90

Warning: fread(): supplied argument is not a valid stream resource in /home/bhl2138/public_html/game/restore_dump.php on line 75

Warning: feof(): supplied argument is not a valid stream resource in /home/bhl2138/public_html/game/restore_dump.php on line 90

Warning: fread(): supplied argument is not a valid stream resource in /home/bhl2138/public_html/game/restore_dump.php on line 75

Warning: feof(): supplied argument is not a valid stream resource in /home/bhl2138/public_html/game/restore_dump.php on line 90

Warning: fread(): supplied argument is not a valid stream resource in /home/bhl2138/public_html/game/restore_dump.php on line 75


用RESTORE_DUMP.PHP
結果出現這個
我怎的不知道還可以怎樣
資料完了 ...........
回复

使用道具 举报


ADVERTISEMENT

发表于 10-7-2005 11:44 PM | 显示全部楼层
资料应该还有在,
需要检查 duplicate 的纪录,
如果你的 .sql file 太大, phpMyAdmin 是无法 restore 的,需要用 console.
回复

使用道具 举报

 楼主| 发表于 11-7-2005 04:57 PM | 显示全部楼层
什麽是console
那裏可以下載
使用的方法?
回复

使用道具 举报

发表于 11-7-2005 10:00 PM | 显示全部楼层
原帖由 tn728202 于 11-7-2005 04:57 PM 发表
什麽是console
那裏可以下載
使用的方法?



console 也可以是 dos prompt 中的:

C:\Program Files\MySQL\MySQL Server 4.1\bin>
mysql -u root -p databasename < restore.sql

然后输入 root 的密码。

你可以用 mysql --help 来看其他的功能。
回复

使用道具 举报

发表于 13-7-2005 07:02 PM | 显示全部楼层
简单一点的就用MySQL Administrator Tool: http://www.mysql.com/products/administrator/
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

 

ADVERTISEMENT



ADVERTISEMENT



ADVERTISEMENT

ADVERTISEMENT


版权所有 © 1996-2023 Cari Internet Sdn Bhd (483575-W)|IPSERVERONE 提供云主机|广告刊登|关于我们|私隐权|免控|投诉|联络|脸书|佳礼资讯网

GMT+8, 27-11-2024 07:50 AM , Processed in 0.116437 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表