Adminer
Adminer ã¨ãã Webã¢ããªã±ã¼ã·ã§ã³ ãããã¾ãããã¼ã¿ãã¼ã¹ã Webãã©ã¦ã¶ ãã¼ã¹ã§æä½ã§ããã¢ããªã±ã¼ã·ã§ã³ã§ããphpMyAdmin ã代æ¿ãããã®ã¨ãã¦ä½ãããããã§ãã
ããããªãããMySQL ã ãã§ãªããPostgreSQLãSQLiteãMS SQLãOracleãFirebirdãSimpleDBãElasticsearchãMongoDB ãªã©ãããä¸ã¤ã§æ±ããã¨ãã§ãã¾ãã
æ§æãã¡ã¤ã«ã PHP ã®ãã¡ã¤ã«ä¸ã¤ã ãã®ã·ã³ãã«ãªãã®ã§ããæ¥æ¬èªã«ã対å¿ãã¦ãã¾ãã
ã¤ã³ã¹ãã¼ã«æ¹æ³
ã¤ã³ã¹ãã¼ã«ã¯ç°¡åã§ããå
¬å¼ãµã¤ãã® Downloadï¼Downloadsï¼ãããAdminer X.X.X (.php, XXX kB)
ãè½ã¨ãã¦ä»»æã®å ´æã«è¨ç½®ããã°ããã ãã§ããEnglish Only
ãfor MySQL
ãéæã£ããã®ãããã¾ãããããã¦é¸ã¶çç±ã¯ãªãã¨æãã¾ãã
æ¡å¼µè¨å®
Adminer ã«ã¯ãæ¡å¼µè¨å®ãæ©è½ãããã¾ãããæ¡å¼µè¨å®ãã¨ããã®ã¯ãã¾ãæ£ããè¨ãæ¹ã§ã¯ãªãããããã¾ãããå ¬å¼ãã¼ã¸ãè¦ã¦ãããã¨ãããã®ã§ãããé¢æ°ãã¡ã½ãããèªç±ã«å©ç¨ãã¦ç¬èªã®æ¡å¼µãã§ãããã¨ããæå³ã§ãã
ãæ¡å¼µè¨å®ãã®ãµã³ãã«ã³ã¼ãã¯å
¬å¼ãã¼ã¸ã«è¨è¼ããã¦ããã¨ããã§ãããfunction adminer_object()
ï½class AdminerSoftware extends Adminer
ï½ãåã¡ã½ããã®å®ç¾©ããã¨ããè¨è¿°ã®æµãã§ããæå¾ã«include "/hoge/adminer.php";
ãªã©ã®ããã«ãã¦ã³ãã¼ããã PHP ãã¡ã¤ã«ãinclude
ããã®ãå¿ããªãããã«ãã¦ãã ããã
å®éã« Adminer ãå©ç¨ããå ´åã«ã¢ã¯ã»ã¹ãããã¡ã¤ã«ã¯ããã®ãæ¡å¼µè¨å®ãã§ä½æãããã¡ã¤ã«ã«ãªãã¾ããä»»æã®ååãä»ãã¦ä»»æã®å ´æã«è¨ç½®ãã¦å¤§ä¸å¤«ã§ããinclude
å ´æã®ãã¹ã«ã¯æ°ãã¤ãã¾ãããã
SQLite ã®å©ç¨ã«éãã¦ã¯æ¡å¼µè¨å®ãå¿ é
ä¸è¨ã®å 容㯠2018/10/25 æç¹ã§ã¯èª¤ãã§ãããã¡ã ã®è¨äºãåç §ãã¦ä¸ããã
SQLite ã¯ãåç¥ã®ã¨ãããã¦ã¼ã¶ã¼åããã¹ã¯ã¼ãã¨ãã£ãæ¦å¿µãããã¾ããããããã£ã¦ SQLite ãå©ç¨ããå ´åã¯å¿
ãä¸è¨ã®æ¡å¼µè¨å®ãå©ç¨ããå¿
è¦ãããã¾ããfunction login($login, $password)
ãï¼ã ããï¼ä»¥ä¸ã®ããã«è¨å®ããã°ããã§ãããã
<?php function adminer_object() { class AdminerSoftware extends Adminer { function login($login, $password) { // validate user submitted credentials return ($login == 'hogehoge' && $password == 'fugafuga'); } } return new AdminerSoftware; } include "./adminer.php";
SQLite 以å¤ã®ãµã¼ãã«ãã¢ã¯ã»ã¹ããå ´åã¯ããã«æ¡å¼µè¨å®ãè¡ã
ä¸è¨ã® SQLite ç¨ã®è¨å®ãããã°ãããã¨æãã¾ãããä¾ãã° SQLite ã¨ã¨ãã« MySQL ã«ãã¢ã¯ã»ã¹ãããå ´åãfunction login($login, $password)
ã§ã¦ã¼ã¶ã¼åã¨ãã¹ã¯ã¼ãã®çµã¿åãããä¸æ¸ããã¦ãã¾ã£ãã®ã§ãMySQL ã®ã¦ã¼ã¶ã¼åã¨ãã¹ã¯ã¼ããéããã¨ãã§ãã¾ããã
ãã®å ´åã¯æ¡å¼µè¨å®ã®function credentials()
ã使ã£ã¦ããã¾ããããã« MySQL ã®ã¢ãã¬ã¹ï¼ãã¼ãï¼ã¨ã¦ã¼ã¶ã¼åãããã¦ãã¹ã¯ã¼ããæ¸ãã¾ããé
åãªã®ã§ãè¤æ°ã®ãã¼ã¿ãã¼ã¹ã®æ¥ç¶æ
å ±ãæ¸ããã¨ãã§ãã¾ããåè¿°ã®ãã®ã¨ãããããµã³ãã«ã³ã¼ãã¯ä»¥ä¸ã®ã¨ããã§ãã
<?php function adminer_object() { class AdminerSoftware extends Adminer { function credentials() { // server, username and password for connecting to database return array('hostname:port', 'hogohogo', 'fugofugo'); function login($login, $password) { // validate user submitted credentials return ($login == 'hogehoge' && $password == 'fugafuga'); } } return new AdminerSoftware; } include "./adminer.php";
ããã§ãhogehoge
ã¨fugafuga
㧠Adminer ã«ä¸å¾ãã°ã¤ã³ã§ãã¾ãã
軽快ã§ãããã
Adminer 㯠PHP ã®ãã¡ã¤ã«ã²ã¨ã¤ã®ã¢ããªã±ã¼ã·ã§ã³ã§ãã¨ã¦ãæ±ãããã軽éã軽快ã§ããæ¡å¼µæ©è½ãããã¼ãããããï¼adminer.css
ã¨ããååã§ã¢ããªã¨åããã£ã¬ã¯ããªã«ç½®ãã°ããã ãã§ãï¼ãå¿ç¨æ§ãé«ãã§ããè¶
大è¦æ¨¡ãªãã¼ã¿ãã¼ã¹ã ã¨ã©ããªããã¯åããã¾ããããéçºç°å¢ãå人ã¬ãã«ã®ç°å¢ã§ã¯å¤§å¤ä¾¿å©ã«ä½¿ããã¨æãã¾ãã