เบื่อที่จะเข้า phpmyadmin ทาง panal กันยังผมมีวิธีแนะนำ

เริ่มโดย เบจีต้าคุง, 11 พฤษภาคม 2009, 01:08:13

หัวข้อก่อนหน้า - หัวข้อถัดไป

0 สมาชิก และ 1 ผู้มาเยือน กำลังดูหัวข้อนี้

เบจีต้าคุง


::)

ก่อนอื่นไปดาวโหลดโปรแกรมมาก่อนที่

http://www.phpmyadmin.net/home_page/downloads.php

อยากใช้เวอชั่นไหนเลือกเอาเลยครับ

พอดาวมาเสร็จแตกไฟล์ แล้วแก้ไฟล์ config.inc.php ก่อน

ภายในไฟล์ก็จะมีหน้าตางี้ ตัดมาให้ดูที่แก้

* Your phpMyAdmin URL.
*
* Complete the variable below with the full url ie
*    http://www.your_web.net/path_to_your_phpMyAdmin_directory/
*
* It must contain characters that are valid for a URL, and the path is
* case sensitive on some Web servers, for example Unix-based servers.
*
* In most cases you can leave this variable empty, as the correct value
* will be detected automatically. However, we recommend that you do
* test to see that the auto-detection code works in your system. A good
* test is to browse a table, then edit a row and save it.  There will be
* an error message if phpMyAdmin cannot auto-detect the correct value.
*/
$cfg['PmaAbsoluteUri'] = 'http://www.xxx.com/phpmyadmin/'; ใส่ที่อยู่ของโฟนเดอร์ที่เราอับขึ้นไป

/**
* Disable the default warning that is displayed on the DB Details Structure page if
* any of the required Tables for the relationfeatures could not be found
*/
$cfg['PmaNoRelation_DisableWarning']  = FALSE;

/**
* The 'cookie' auth_type uses blowfish algorithm to encrypt the password. If
* at least one server configuration uses 'cookie' auth_type, enter here a
* passphrase that will be used by blowfish. The maximum length seems to be 46
* characters.
*/
$cfg['blowfish_secret'] = ' cookie'; ใส่คำว่า cookie

/**
* 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 ''. If you want more than one server, just copy following section
// (including $i incrementation) serveral times. There is no need to define
// full server array, just define values you need to change.
$i++;
$cfg['Servers'][$i]['host']          = 'localhost'; // MySQL hostname or IP address
$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]['extension']     = 'mysql';     // The php MySQL extension to use ('mysql' or 'mysqli')
$cfg['Servers'][$i]['compress']      = FALSE;       // Use compressed protocol for the MySQL connection
                                                    // (requires PHP >= 4.3.0)
$cfg['Servers'][$i]['hide_db'] = 'information_schema';

$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).
                                                    // The controluser is also
                                                    // used for all relational
                                                    // features (pmadb)
$cfg['Servers'][$i]['auth_type']     = 'cookie;    // Authentication method (config, http or cookie based)? ใส่คำว่า cookie
$cfg['Servers'][$i]['user']          = '';      // MySQL user
$cfg['Servers'][$i]['password']      = '';          // MySQL password (only needed


แก้ตามตัวหนาๆที่ผมบอกอะครับ แล้ว save อับขึ้นโฮตเรา

แค่นี้ครับง่ายๆ ไม่ต้องล๊อกอิน panal อีกต่อไป

จากนั้นเราก็เข้า http://www.xxx.com/phpmyadmin/ ได้เลย


PornClip


misslily

รู้สึกว่ามันจะไม่ปลอดภัยนะครับ

ผมคิดว่าที่เขาเอาไปให้ใช้ผ่าน panel เพื่อให้มันปลอดภัยขึ้นไม่สามรถหา path ได้ง่ายๆ

ถ้าอยากสะดวกจริงๆแนะนำว่าให้ใช้โปรแกรมเช่น mysqlfront, SQLyog นะครับ