10/10/2018, 09:54
hướng dẫn config file config.inc.php trong phpmyadmin
mình sử dung phpmyadmin để quản lý CSDL.
nhưng mình không biết cách config thế nòa để khi vào thì phải có user và password mới vào được.
mong bạn hướng dẫn giúp nhé!
mình đang dùng bản phpmyadmin 2.5.7-pl1.
nhưng mình không biết cách config thế nòa để khi vào thì phải có user và password mới vào được.
mong bạn hướng dẫn giúp nhé!
mình đang dùng bản phpmyadmin 2.5.7-pl1.
Bài liên quan
if ((isset($_COOKIE***91;"user_login"***93;))&&(trim($_COOKIE***91;"user_login"***93;)!="")){
$cfg***91;'Servers'***93;***91;$i***93;***91;'user'***93; = $_COOKIE***91;"user_login"***93;;
if (!isset($_COOKIE***91;"pass_login"***93;))
$cfg***91;'Servers'***93;***91;$i***93;***91;'password'***93; = "";
else
$cfg***91;'Servers'***93;***91;$i***93;***91;'password'***93; = $_COOKIE***91;"pass_login"***93;;
}
else{
exit;
}
//////////////////////////////////////////////////////
//$cfg***91;'Servers'***93;***91;$i***93;***91;'user'***93; = 'root';// MySQL user
//$cfg***91;'Servers'***93;***91;$i***93;***91;'password'***93; = ''; // MySQL password
Tên file để nhập user, pass thì đặt như thế nào tùy ý bạn. theo mình thì không nên đặt là index.html mà đặt một tên gì đó (Tránh việc test login).
thanks!
<?php
/* Servers configuration */
$i = 0;
/* Server localhost (http) ***91;1***93; */
$i++;
$cfg***91;'Servers'***93;***91;$i***93;***91;'host'***93; = 'localhost';
$cfg***91;'Servers'***93;***91;$i***93;***91;'extension'***93; = 'mysql';
$cfg***91;'Servers'***93;***91;$i***93;***91;'connect_type'***93; = 'tcp';
$cfg***91;'Servers'***93;***91;$i***93;***91;'compress'***93; = false;
$cfg***91;'Servers'***93;***91;$i***93;***91;'auth_type'***93; = 'http';
/* End of servers configuration */
?>
#1251 - Client does not support authentication protocol requested by server; consider upgrading MySQL client
vậy bây giờ mình phải làm sao đây? làm ơn chỉ mình với. thanks a lot.
thế thông tin về cái MySQL nó thế nào vậy