Computer >> Hướng Dẫn Máy Tính >  >> Lập Trình >> PHP

Kết nối server ngoài bằng phpMyAdmin


Thêm mã dưới vào /etc/phpmyadmin/config.inc.php cuối file:

$i++; 
$cfg['Servers'][$i]['host'] = 'HostName:port'; // hostname và port nếu không mặc định 
$cfg['Servers'][$i]['user'] = 'userName'; // user cho server remote 
$cfg['Servers'][$i]['password'] = 'Password'; // mật khẩu 
$cfg['Servers'][$i]['auth_type'] = 'config';

Sẽ hiển thị "Current Server:" với dropdown cả "127.0.0.1" và server cung cấp qua $cfg['Servers'][$i]['host'].

User chuyển đổi giữa hai server.