PDA

View Full Version : chỉ cho tớ cách backup va restore database bằng phpmyadmin



Zenki-X
27-12-2002, 09:21
chỉ cho tớ cách backup va restore database bằng phpmyadmin đi các bạn tớ đang rất cần đây ( tớ củng có biết về phpmyadmin nhưng ko nhiều)! ah! nếu có thể thì nói rõ ràng cụ thể một chút vì tớ chậm hiểu lắm ! cám ơn !

Holylight
28-12-2002, 22:29
Còn tuỳ từng phiên bản phpmyadmin á
Nếu là phpmyadmin 2.2.0rc2 thì vào database cần back up.rồi tìm cái dòng View dump (schema) of database á,click vào ô Structure and data rồi Go là xong
Con restore thi vao or Location of the textfile : roi chon file can restore
Còn nếu là phpMyAdmin 2.3.1-rc1 thì vào database cần back up rồi chọn Export chọn tiếp Structure and data
và Save as File rồi Go là xong
Còn Restore thì vào SQL ,ở hộp Or Location of the textfile chọn File cần restore rồi Go là xong

AngrA
30-12-2002, 21:10
trước hết trên host phải có phpadmim
+ URL: h ttp://www.***.com/padmin
+ ĐB_pass: pass
+ DB_user: ***
+ DB_name: data
trong config.inc.php chỉnh sửa như sau:
-------------------------------------------------------------------------------
$cfg['PmaAbsoluteUri'] = 'http://www.***.com/padmin'; // đường dẫn đến phpmyadmin
$cfg['PmaAbsoluteUri_DisableWarning'] = FALSE;

$cfg['PmaNoRelation_DisableWarning'] = FALSE;

/**
* Server(s) configuration
*/
$i = 0;
// The $cfg['Servers'] array starts with $cfg['Servers'][1]. Do not use $cfg['Servers'][0].
// You can disable a server config entry by setting host to ''.
$i++;
$cfg['Servers'][$i]['host'] = 'localhost'; // MySQL hostname
$cfg['Servers'][$i]['port'] = ''; // MySQL port - leave blank for default port
$cfg['Servers'][$i]['socket'] = ''; // Path to the socket - leave blank for default socket
$cfg['Servers'][$i]['connect_type'] = 'tcp'; // How to connect to MySQL server ('tcp' or 'socket')
$cfg['Servers'][$i]['controluser'] = ''; // MySQL control user settings
// (this user must have read-only
$cfg['Servers'][$i]['controlpass'] = ''; // access to the "mysql/user"
// and "mysql/db" tables)
$cfg['Servers'][$i]['auth_type'] = 'config'; // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user'] = '***'; // tên của DB_user
$cfg['Servers'][$i]['password'] = 'pass'; // MySQL password (only needed
// with 'config' auth_type)
$cfg['Servers'][$i]['only_db'] = 'data'; // tên csdl
------------------------------------------------------------------------------
sau đó cho tất cả lên thư mục padmin, các bước tiếp theo thì như trên thôi
* bất cứ ai đánh đúng địa chi đều có thể sử dụng được, sau khi dùng xong hãy xoá index.php hoặc đổi tên thư mục padmin thành tên khác