//////////////////////////////////////////////////////////////////////// /// /// Configure your server(s) /// A la phpMyAdmin /// //////////////////////////////////////////////////////////////////////// $i=0; $cfg['Servers'][$i]['host'] = 'devel01.webstore.fr'; // MySQL hostname $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]['compress'] = FALSE; // Use compressed protocol for the MySQL connection $cfg['Servers'][$i]['user'] = 'mysysop'; // MySQL user $cfg['Servers'][$i]['password'] = ''; // MySQL password //////////////////////////// // Can display memory usage // BUT ONLY FROM WEB // SERVER // 0 False, 1 True define("SHOW_MEMORY",0); //////////////////////////// // DEMO MODE // 0 False, 1 True define("DEMO_MODE",1); /////////////////////////// // HTML or XML Output /////////////////////////// if ($_REQUEST['OUTPUT'] == "xml") define("OUTPUT","XML"); else define("OUTPUT","HTML"); // ///////////////////////////////////////////////////////////////////////////////// // //// // //// Precision and number format behaviour // //// (may be for international version in futur) // ///////////////////////////////////////////////////////////////////////////////// define("DEC", 2); define("DEC_INT", 0); define("DEC_POINT", "."); define("DEC_THOUSAND", ","); $socket = ""; define("AJAX_QRY", "True"); // ///////////////////////////////////////////////////////////////////////////////// // //// // //// Main variables // //// // ///////////////////////////////////////////////////////////////////////////////// $Sections = array( SERVER_VERSION => "check_mysql_version", UPTIME_INFORMATIONS => "post_uptime_warning", SLOW_QUERIES => "check_slow_queries", MAX_CONNECTIONS => "check_used_connections", WORKER_THREADS => "check_threads", MEMORY => "check_memory", KEY_BUFFER => "check_key_buffer_size", QUERY_CACHE => "check_query_cache", SORT_OPERATIONS => "check_sort_operations", JOINS => "check_join_operations", TEMP_TABLES => "check_tmp_tables", TABLE_CACHE => "check_table_cache", TABLE_LOCKING => "check_table_locking", TABLE_SCANS => "check_table_scans", OPEN_FILES => "check_open_files", CNF => "output_mycnf", PROCESS => "show_process", ABOUT => "about_it", LIVE_VALUES => "check_live" ); $TO_CNF = array( join_buffer_size => "HR", long_query_time => "INT", max_connections => "INT", thread_cache_size => "INT", key_buffer_size => "HR", query_cache_size => "HR", sort_buffer_size => "HR", read_rnd_buffer_size => "HR", tmp_table_size => "HR", table_cache => "INT" ); ?>
SERVER |
|||