ĐĂNG TIN
logo
Online:
Visits: 1,692,389,117
Stories: 8,405,746
Profile image
0
0
Tác giả: fcwordpress
Trang tin cá nhân | Bài đã đăng
Lượt xem

Hiện tại:
1h trước: 1
24h trước: 1
Tổng số: 50
2 site dùng chung table user
Sunday, October 2, 2016 22:42
% of readers think this story is Fact. Add your two cents.


B1:Cài đặt 2 site bình thường (nhưng phải đặt khác prefix_)
B2:Export data site 2 và import vào data của site 1
B3:Mở file wp-config.php của site 2 lên chỉnh lại các thông số kế nối đến data của site 1 và đông thời thêm các các thông số sau:
$table_prefix = ‘wpads_’;
define(‘CUSTOM_USER_TABLE’, ‘wp_users’);
define(‘CUSTOM_USER_META_TABLE’, ‘wp_usermeta’);
B4:vào phpmyadmin chọn data site 1
-Chọn table option: truy vấn
select * from wp_1_options where option_name like ‘wp_1_%’; và copy wp_1_user_roles để tạo một option wp_2_user_roles
-Chọn table table wp_1_usermeta: truy vấn select * from wp_1_usermeta where meta_key like ‘wp_1_%’; và copy wp_1_capabilities tạo wp_2_capabilities

Tin nổi bật trong ngày
Tin mới nhất

Register

Newsletter

Email this story
If you really want to disable all recommended stories, click on OK button. After that, you will be redirect to your options page.