View Full Version : Chuyển Localhost ==> Host PHP
qtuanfashion
01-08-2012, 08:44 AM
Ai biết cách chuyển từ Localhost xài Wamp lên Host của mình chỉ em zới !! Em đang xài IPB 2.1.6
duongtramanh.bdg
01-08-2012, 08:44 AM
thông thường người ta Back up = phpmyadmin ... và chắc chắn em có cái này , hãy mở nó lên , chọn database em cần backup .
Sau khi mở database đó ra, em hãy chú ý trên menu sẽ có các hàng chữ
Structure SQL Export Search Query Drop
Chọn Export
Nó sẽ mở cửa số Export cho em, em kéo xuống dưới cùng để chọn .zip cho file nhỏ đi và bấm GO.
Em đã có file backup rồi , muốn restore lại thì vào host của em , tiếp tục vào phpmyadmin trong host , chọn database em muốn restore data vào đó , nhìn trên menu
Structure SQL Export Search Query Drop
Chọn SQL
Nhìn phần : Location of the textfile:
Lấy file data trong máy , up lên là xong .
Phương pháp trên cơ bản cho tất cả loại mã nguồn PHP sử dụng PHPMyadmin phiên bản 2.6.0-pl2
Mình sẽ share tool backup và restore nhanh cho bạn sau .
ld-py
01-08-2012, 08:44 AM
Anh cho xin cai Toolz lun đi ! Up mà cứ dis wài ah !!
bsff20
01-08-2012, 08:44 AM
/*
VNToday backup/restore for MySQL
Version 1.3 02/03/2004
Original version by chuongbom (©Le Van Chuong - VnToDaY)
Modified by pfiev@VNToday
FEATURE
- Fast backup/restore, small files (when using gzip)
- Support huge database and backup files
- Support prefix (for multi-scripts share a database)
- Support excluded tables (eg. you don't want back up a 'session table')
- Friendly/Easy interface
CONFIGURATION
The default values are usually the best
- MAXLENGTH: maximum length of a query. Default 20000
- REMARK: remark character. Default '#' (may be '--' with mysqldump)
- TIMEOUT: script timeout (in second), don't set too high
Default 120 (enough for 200 MB database with a fast server)
- MAXGZIP: max uncompressed filesize can gzip (depends on memory), works in NORMAL mode
Default 50 MB (in fact, should be less than 10 MB, you should switch to BIGDATA mode for big data)
- PARSESQL: support multi-lines sql data. Must set to 'true' if you want to restore
from data of other scripts. Default 'false'
- BIGDATA: enable BIGDATA mode for restore data. Il works only with data created by itself.
support gzipped and very large data (a few GB). Run a little bit more slowly
Default 'true'
- TMP_DIR: directory in which temporary file will be create. If not specify, default 'TMP dir' will be used
(if PHP version support getting this dir), or c:\windows\temp for Windows, /tmp for others
Set '.' to use current directory
Default '' (empty/not specified)
SPECIFICATION
- Filename format vnt_dbname_date-or-anything.sql(.gz)
- Everyline, who doesn't start by #, is a query
- Consume little memory in backup mode (about 1MB when using gzip)
- Consume much memory in restore mode, except for BIGDATA mode (about 1MB)
- Require MySQL 3.23+, PHP 4.1.0+ (safe mode OFF for big database)
NOTES
- Hasn't been tested carefully, use it as your own risk
- set PARSESQL to 'true' to restore from others scripts' files
- for a big database, please set BIGDATA to true
- this script is for VNTODAY, don't blame me if it doesn't work with your host
HISTORY
1.3 (02/03/2004)
- no temporary files
- small_memory support (somewhen mysqldump can't work, but sqlbackup works always!)
- convergence of version 1.1.1 and 1.2
1.2 (10/02/2004)
- PHP 4.1.2 (Yahoo! webhosting) bug fix: sqlbackup?backup doesn't create $_GET['backup']
- tiny memory/cache use in mySQL (and a little bit slower)
- error handler
1.1.1 (24/12/2003)
- split out dump/compression to be able to deal with bigger data on safe mode
1.1 (13/12/2003) by pfiev
- backup/restore/gzip in one script
- new query syntax from 3.23 to dump table's structure
- support FULLTEXT property
- add many records in a single query
- friendly interface
- many small improvements
1.0 by chuongbom
*/
Hướng dẫn wá chi tiết rùi , đừng hỏi anh sử dụng làm sao , đọc cho kỹ , những câu hỏi nào đã có trong hướng dẫn anh sẽ không trả lời .
thienphuong
01-08-2012, 08:44 AM
ERROR 2048
REASON: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Krasnoyarsk' for '7.0/no DST' instead
FILE: C:\Wamp\www\dulieu.php
LINE: 290
Zi la sao anh !
kim-ef
01-08-2012, 08:44 AM
còn cách khác (ko bít IBF có dùng được ko) đó là setup localhost sao cho config giống với host php, (ko bít ko giống được ko), sau đó backup database thành file nén tar.gz sau đó lên host mà bung ra lại ... xong ..
Ủa mà, ông hỏi backup database lên Host hay là ... backup cả cái forum đã nulled và hack mod???
ptchien
01-08-2012, 08:44 AM
Ý ẹ mấy anh ơi !! Em lỡ del cái www trên host em gòi !! Làm sao đây !! ??? HIxhix
thì thôi, làm lại cái 4rum khác chứ sao.
vBulletin v3.6.1, Copyright ©2000-2025, Jelsoft Enterprises Ltd.