* @license GNU General Public License, version 2 (GPL-2.0) * * For full copyright and license information, please see * the docs/CREDITS.txt file. * */ namespace phpbb\db\driver; /** * MySQL4 Database Abstraction Layer * Compatible with: * MySQL 3.23+ * MySQL 4.0+ * MySQL 4.1+ * MySQL 5.0+ */ class mysql extends \phpbb\db\driver\mysql_base { var $multi_insert = true; var $connect_error = ''; /** * {@inheritDoc} */ function sql_connect($sqlserver, $sqluser, $sqlpassword, $database, $port = false, $persistency = false, $new_link = false) { $this->persistency = $persistency; $this->user = $sqluser; $this->server = $sqlserver . (($port) ? ':' . $port : ''); $this->dbname = $database; $this->sql_layer = 'mysql4'; if ($this->persistency) { if (!function_exists('mysql_pconnect')) { $this->connect_error = 'mysql_pconnect function does not exist, is mysql extension installed?'; return $this->sql_error(''); } $this->db_connect_id = @mysql_pconnect($this->server, $this->user, $sqlpassword); } else { if (!function_exists('mysql_connect')) { $this->connect_error = 'mysql_connect function does not exist, is mysql extension installed?'; return $this->sql_error(''); } $this->db_connect_id = @mysql_connect($this->server, $this->user, $sqlpassword, $new_link); } if ($this->db_connect_id && $this->dbname != '') { if (@mysql_select_db($this->dbname, $this->db_connect_id)) { // Determine what version we are using and if it natively supports UNICODE if (version_compare($this->sql_server_info(true), '4.1.0', '>=')) { @mysql_query("SET NAMES 'utf8'", $this->db_connect_id); // enforce strict mode on databases that support it if (version_compare($this->sql_server_info(true), '5.0.2', '>=')) { $result = @mysql_query('SELECT @@session.sql_mode AS sql_mode', $this->db_connect_id); if ($result) { $row = mysql_fetch_assoc($result); mysql_free_result($result); $modes = array_map('trim', explode(',', $row['sql_mode'])); } else { $modes = array(); } // TRADITIONAL includes STRICT_ALL_TABLES and STRICT_TRANS_TABLES if (!in_array('TRADITIONAL', $modes)) { if (!in_array('STRICT_ALL_TABLES', $modes)) { $modes[] = 'STRICT_ALL_TABLES'; } if (!in_array('STRICT_TRANS_TABLES', $modes)) { $modes[] = 'STRICT_TRANS_TABLES'; } } $mode = implode(',', $modes); @mysql_query("SET SESSION sql_mode='{$mode}'", $this->db_connect_id); } } else if (version_compare($this->sql_server_info(true), '4.0.0', '<')) { $this->sql_layer = 'mysql'; } return $this->db_connect_id; } } return $this->sql_error(''); } /** * {@inheritDoc} */ function sql_server_info($raw = false, $use_cache = true) { global $cache; if (!$use_cache || empty($cache) || ($this->sql_server_version = $cache->get('mysql_version')) === false) { $result = @mysql_query('SELECT VERSION() AS version', $this->db_connect_id); if ($result) { $row = mysql_fetch_assoc($result); mysql_free_result($result); $this->sql_server_version = $row['version']; if (!empty($cache) && $use_cache) { $cache->put('mysql_version', $this->sql_server_version); } } } return ($raw) ? $this->sql_server_version : 'MySQL ' . $this->sql_server_version; } /** * SQL Transaction * @access private */ function _sql_transaction($status = 'begin') { switch ($status) { case 'begin': return @mysql_query('BEGIN', $this->db_connect_id); break; case 'commit': return @mysql_query('COMMIT', $this->db_connect_id); break; case 'rollback': return @mysql_query('ROLLBACK', $this->db_connect_id); break; } return true; } /** * {@inheritDoc} */ function sql_query($query = '', $cache_ttl = 0) { if ($query != '') { global $cache; // EXPLAIN only in extra debug mode if (defined('DEBUG')) { $this->sql_report('start', $query); } else if (defined('PHPBB_DISPLAY_LOAD_TIME')) { $this->curtime = microtime(true); } $this->query_result = ($cache && $cache_ttl) ? $cache->sql_load($query) : false; $this->sql_add_num_queries($this->query_result); if ($this->query_result === false) { if (($this->query_result = @mysql_query($query, $this->db_connect_id)) === false) { $this->sql_error($query); } if (defined('DEBUG')) { $this->sql_report('stop', $query); } else if (defined('PHPBB_DISPLAY_LOAD_TIME')) { $this->sql_time += microtime(true) - $this->curtime; } if (!$this->query_result) { return false; } if ($cache && $cache_ttl) { $this->open_queries[(int) $this->query_result] = $this->query_result; $this->query_result = $cache->sql_save($this, $query, $this->query_result, $cache_ttl); } else if (strpos($query, 'SELECT') === 0) { $this->open_queries[(int) $this->query_result] = $this->query_result; } } else if (defined('DEBUG')) { $this->sql_report('fromcache', $query); } } else { return false; } return $this->query_result; } /** * {@inheritDoc} */ function sql_affectedrows() { if ($this->db_connect_id) { // We always want the number of matched rows // instead of changed rows, when running an update. // So when mysql_info() returns the number of matched rows // we return that one instead of mysql_affected_rows() $mysql_info = @mysql_info($this->db_connect_id); if ($mysql_info !== false) { $match = array(); preg_match('#^Rows matched: (\d)+ Changed: (\d)+ Warnings: (\d)+$#', $mysql_info, $match); if (isset($match[1])) { return $match[1]; } } return @mysql_affected_rows($this->db_connect_id); } return false; } /** * {@inheritDoc} */ function sql_fetchrow($query_id = false) { global $cache; if ($query_id === false) { $query_id = $this->query_result; } if ($cache && $cache->sql_exists($query_id)) { return $cache->sql_fetchrow($query_id); } return ($query_id) ? mysql_fetch_assoc($query_id) : false; } /** * {@inheritDoc} */ function sql_rowseek($rownum, &$query_id) { global $cache; if ($query_id === false) { $query_id = $this->query_result; } if ($cache && $cache->sql_exists($query_id)) { return $cache->sql_rowseek($rownum, $query_id); } return ($query_id !== false) ? @mysql_data_seek($query_id, $rownum) : false; } /** * {@inheritDoc} */ function sql_nextid() { return ($this->db_connect_id) ? @mysql_insert_id($this->db_connect_id) : false; } /** * {@inheritDoc} */ function sql_freeresult($query_id = false) { global $cache; if ($query_id === false) { $query_id = $this->query_result; } if ($cache && !is_object($query_id) && $cache->sql_exists($query_id)) { return $cache->sql_freeresult($query_id); } if (isset($this->open_queries[(int) $query_id])) { unset($this->open_queries[(int) $query_id]); return mysql_free_result($query_id); } return false; } /** * {@inheritDoc} */ function sql_escape($msg) { if (!$this->db_connect_id) { return @mysql_real_escape_string($msg); } return @mysql_real_escape_string($msg, $this->db_connect_id); } /** * return sql error array * @access private */ function _sql_error() { if ($this->db_connect_id) { $error = array( 'message' => @mysql_error($this->db_connect_id), 'code' => @mysql_errno($this->db_connect_id), ); } else if (function_exists('mysql_error')) { $error = array( 'message' => @mysql_error(), 'code' => @mysql_errno(), ); } else { $error = array( 'message' => $this->connect_error, 'code' => '', ); } return $error; } /** * Close sql connection * @access private */ function _sql_close() { return @mysql_close($this->db_connect_id); } /** * Build db-specific report * @access private */ function _sql_report($mode, $query = '') { static $test_prof; // current detection method, might just switch to see the existance of INFORMATION_SCHEMA.PROFILING if ($test_prof === null) { $test_prof = false; if (version_compare($this->sql_server_info(true), '5.0.37', '>=') && version_compare($this->sql_server_info(true), '5.1', '<')) { $test_prof = true; } } switch ($mode) { case 'start': $explain_query = $query; if (preg_match('/UPDATE ([a-z0-9_]+).*?WHERE(.*)/s', $query, $m)) { $explain_query = 'SELECT * FROM ' . $m[1] . ' WHERE ' . $m[2]; } else if (preg_match('/DELETE FROM ([a-z0-9_]+).*?WHERE(.*)/s', $query, $m)) { $explain_query = 'SELECT * FROM ' . $m[1] . ' WHERE ' . $m[2]; } if (preg_match('/^SELECT/', $explain_query)) { $html_table = false; // begin profiling if ($test_prof) { @mysql_query('SET profiling = 1;', $this->db_connect_id); } if ($result = @mysql_query("EXPLAIN $explain_query", $this->db_connect_id)) { while ($row = mysql_fetch_assoc($result)) { $html_table = $this->sql_report('add_select_row', $query, $html_table, $row); } mysql_free_result($result); } if ($html_table) { $this->html_hold .= ''; } if ($test_prof) { $html_table = false; // get the last profile if ($result = @mysql_query('SHOW PROFILE ALL;', $this->db_connect_id)) { $this->html_hold .= '
'; while ($row = mysql_fetch_assoc($result)) { // make HTML safe if (!empty($row['Source_function'])) { $row['Source_function'] = str_replace(array('<', '>'), array('<', '>'), $row['Source_function']); } // remove unsupported features foreach ($row as $key => $val) { if ($val === null) { unset($row[$key]); } } $html_table = $this->sql_report('add_select_row', $query, $html_table, $row); } mysql_free_result($result); } if ($html_table) { $this->html_hold .= ''; } @mysql_query('SET profiling = 0;', $this->db_connect_id); } } break; case 'fromcache': $endtime = explode(' ', microtime()); $endtime = $endtime[0] + $endtime[1]; $result = @mysql_query($query, $this->db_connect_id); if ($result) { while ($void = mysql_fetch_assoc($result)) { // Take the time spent on parsing rows into account } mysql_free_result($result); } $splittime = explode(' ', microtime()); $splittime = $splittime[0] + $splittime[1]; $this->sql_report('record_fromcache', $query, $endtime, $splittime); break; } } } 53' href='#n253'>253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827
<HTML
><HEAD
><TITLE
>The Bugzilla FAQ</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
"><LINK
REL="HOME"
TITLE="The Bugzilla Guide"
HREF="index.html"><LINK
REL="PREVIOUS"
TITLE="Integrating Bugzilla with Third-Party Tools"
HREF="integration.html"><LINK
REL="NEXT"
TITLE="The Bugzilla Database"
HREF="database.html"></HEAD
><BODY
CLASS="appendix"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>The Bugzilla Guide</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="integration.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="database.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="appendix"
><H1
><A
NAME="faq"
></A
>Appendix A. The Bugzilla FAQ</H1
><P
>&#13;    This FAQ includes questions not covered elsewhere in the Guide.
  </P
><DIV
CLASS="qandaset"
><DL
><DT
>1. <A
HREF="faq.html#faq-general"
>General Questions</A
></DT
><DD
><DL
><DT
>A.1.1. <A
HREF="faq.html#AEN1813"
>&#13;	    Where can I find information about Bugzilla?</A
></DT
><DT
>A.1.2. <A
HREF="faq.html#AEN1819"
>&#13;	    What license is Bugzilla distributed under?
	  </A
></DT
><DT
>A.1.3. <A
HREF="faq.html#AEN1825"
>&#13;	    How do I get commercial support for Bugzilla?
	  </A
></DT
><DT
>A.1.4. <A
HREF="faq.html#AEN1834"
>&#13;	    What major companies or projects are currently using Bugzilla
	    for bug-tracking?
	  </A
></DT
><DT
>A.1.5. <A
HREF="faq.html#AEN1858"
>&#13;	    Who maintains Bugzilla?
	  </A
></DT
><DT
>A.1.6. <A
HREF="faq.html#AEN1864"
>&#13;	    How does Bugzilla stack up against other bug-tracking databases?
	  </A
></DT
><DT
>A.1.7. <A
HREF="faq.html#AEN1870"
>&#13;	    Why doesn't Bugzilla offer this or that feature or compatibility
	    with this other tracking software?
	  </A
></DT
><DT
>A.1.8. <A
HREF="faq.html#AEN1877"
>&#13;	    Why MySQL?  I'm interested in seeing Bugzilla run on
	    Oracle/Sybase/Msql/PostgreSQL/MSSQL.
	  </A
></DT
><DT
>A.1.9. <A
HREF="faq.html#AEN1886"
>&#13;	    Why do the scripts say "/usr/bonsaitools/bin/perl" instead of
	    "/usr/bin/perl" or something else?
	  </A
></DT
><DT
>A.1.10. <A
HREF="faq.html#AEN1892"
>&#13;	    Is there an easy way to change the Bugzilla cookie name?
	  </A
></DT
></DL
></DD
><DT
>2. <A
HREF="faq.html#faq-phb"
>Managerial Questions</A
></DT
><DD
><DL
><DT
>A.2.1. <A
HREF="faq.html#AEN1902"
>&#13;	    Is Bugzilla web-based, or do you have to have specific software or
	    a specific operating system on your machine?
	  </A
></DT
><DT
>A.2.2. <A
HREF="faq.html#AEN1907"
>&#13;	    Can Bugzilla integrate with
	    Perforce (SCM software)?
	  </A
></DT
><DT
>A.2.3. <A
HREF="faq.html#AEN1912"
>&#13;	    Does Bugzilla allow the user to track multiple projects?
	  </A
></DT
><DT
>A.2.4. <A
HREF="faq.html#AEN1917"
>&#13;	    If I am on many projects, and search for all bugs assigned to me, will
	    Bugzilla list them for me and allow me to sort by project, severity etc?
	  </A
></DT
><DT
>A.2.5. <A
HREF="faq.html#AEN1922"
>&#13;	    Does Bugzilla allow attachments (text, screenshots, URLs etc)? If yes,
	    are there any that are NOT allowed?
	  </A
></DT
><DT
>A.2.6. <A
HREF="faq.html#AEN1927"
>&#13;	    Does Bugzilla allow us to define our own priorities and levels? Do we
	    have complete freedom to change the labels of fields and format of them, and
	    the choice of acceptable values?
	  </A
></DT
><DT
>A.2.7. <A
HREF="faq.html#AEN1934"
>&#13;	    Does Bugzilla provide any reporting features, metrics, graphs, etc? You
	    know, the type of stuff that management likes to see. :)
	  </A
></DT
><DT
>A.2.8. <A
HREF="faq.html#AEN1941"
>&#13;	    Is there email notification and if so, what do you see when you get an
	    email?
	  </A
></DT
><DT
>A.2.9. <A
HREF="faq.html#AEN1946"
>&#13;	    Can email notification be set up to send to multiple
	    people, some on the To List, CC List, BCC List etc?
	  </A
></DT
><DT
>A.2.10. <A
HREF="faq.html#AEN1951"
>&#13;	    Do users have to have any particular
	    type of email application?
	  </A
></DT
><DT
>A.2.11. <A
HREF="faq.html#AEN1958"
>&#13;	    Does Bugzilla allow data to be imported and exported? If I had outsiders
	    write up a bug report using a MS Word bug template, could that template be
	    imported into "matching" fields? If I wanted to take the results of a query
	    and export that data to MS Excel, could I do that?
	  </A
></DT
><DT
>A.2.12. <A
HREF="faq.html#AEN1970"
>&#13;	    Has anyone converted Bugzilla to another language to be used in other
	    countries? Is it localizable?
	  </A
></DT
><DT
>A.2.13. <A
HREF="faq.html#AEN1977"
>&#13;	    Can a user create and save reports? Can they do this in Word format?
	    Excel format?
	  </A
></DT
><DT
>A.2.14. <A
HREF="faq.html#AEN1982"
>&#13;	    Does Bugzilla have the ability to search by word, phrase, compound
	    search?
	  </A
></DT
><DT
>A.2.15. <A
HREF="faq.html#AEN1987"
>&#13;	     Does Bugzilla provide record locking when there is simultaneous access
	    to the same bug? Does the second person get a notice that the bug is in use
	    or how are they notified?
	  </A
></DT
><DT
>A.2.16. <A
HREF="faq.html#AEN1992"
>&#13;	    Are there any backup features provided?
	  </A
></DT
><DT
>A.2.17. <A
HREF="faq.html#AEN1998"
>&#13;	    Can users be on the system while a backup is in progress?
	  </A
></DT
><DT
>A.2.18. <A
HREF="faq.html#AEN2003"
>&#13;	    What type of human resources are needed to be on staff to install and
	    maintain Bugzilla? Specifically, what type of skills does the person need to
	    have? I need to find out if we were to go with Bugzilla, what types of
	    individuals would we need to hire and how much would that cost vs buying an
	    "Out-of-the-Box" solution.
	  </A
></DT
><DT
>A.2.19. <A
HREF="faq.html#AEN2009"
>&#13;	    What time frame are we looking at if we decide to hire people to install
	    and maintain the Bugzilla? Is this something that takes hours or weeks to
	    install and a couple of hours per week to maintain and customize or is this
	    a multi-week install process, plus a full time job for 1 person, 2 people,
	    etc?
	  </A
></DT
><DT
>A.2.20. <A
HREF="faq.html#AEN2014"
>&#13;	    Is there any licensing fee or other fees for using Bugzilla? Any
	    out-of-pocket cost other than the bodies needed as identified above?
	  </A
></DT
></DL
></DD
><DT
>3. <A
HREF="faq.html#faq-security"
>Bugzilla Security</A
></DT
><DD
><DL
><DT
>A.3.1. <A
HREF="faq.html#AEN2021"
>&#13;	    How do I completely disable MySQL security if it's giving me problems
	    (I've followed the instructions in the installation section of this guide)?
	  </A
></DT
><DT
>A.3.2. <A
HREF="faq.html#AEN2027"
>&#13;	    Are there any security problems with Bugzilla?
	  </A
></DT
><DT
>A.3.3. <A
HREF="faq.html#AEN2032"
>&#13;	    I've implemented the security fixes mentioned in Chris Yeh's security
	    advisory of 5/10/2000 advising not to run MySQL as root, and am running into
	    problems with MySQL no longer working correctly.
	  </A
></DT
></DL
></DD
><DT
>4. <A
HREF="faq.html#faq-email"
>Bugzilla Email</A
></DT
><DD
><DL
><DT
>A.4.1. <A
HREF="faq.html#AEN2039"
>&#13;	    I have a user who doesn't want to receive any more email from Bugzilla.
	    How do I stop it entirely for this user?
	  </A
></DT
><DT
>A.4.2. <A
HREF="faq.html#AEN2045"
>&#13;	    I'm evaluating/testing Bugzilla, and don't want it to send email to
	    anyone but me. How do I do it?
	  </A
></DT
><DT
>A.4.3. <A
HREF="faq.html#AEN2050"
>&#13;	    I want whineatnews.pl to whine at something more, or other than, only new
	    bugs. How do I do it?
	  </A
></DT
><DT
>A.4.4. <A
HREF="faq.html#AEN2056"
>&#13;	    I don't like/want to use Procmail to hand mail off to bug_email.pl.
	    What alternatives do I have?
	  </A
></DT
><DT
>A.4.5. <A
HREF="faq.html#AEN2063"
>&#13;	    How do I set up the email interface to submit/change bugs via email?
	  </A
></DT
><DT
>A.4.6. <A
HREF="faq.html#AEN2068"
>&#13;	    Email takes FOREVER to reach me from Bugzilla -- it's extremely slow.
	    What gives?
	  </A
></DT
><DT
>A.4.7. <A
HREF="faq.html#AEN2075"
>&#13;	     How come email from Bugzilla changes never reaches me?
	  </A
></DT
></DL
></DD
><DT
>5. <A
HREF="faq.html#faq-db"
>Bugzilla Database</A
></DT
><DD
><DL
><DT
>A.5.1. <A
HREF="faq.html#AEN2083"
>&#13;	    I've heard Bugzilla can be used with Oracle?
	  </A
></DT
><DT
>A.5.2. <A
HREF="faq.html#AEN2088"
>&#13;	    I think my database might be corrupted, or contain invalid entries. What
	    do I do?
	  </A
></DT
><DT
>A.5.3. <A
HREF="faq.html#AEN2096"
>&#13;	    I want to manually edit some entries in my database. How?
	  </A
></DT
><DT
>A.5.4. <A
HREF="faq.html#AEN2104"
>&#13;	    I think I've set up MySQL permissions correctly, but Bugzilla still can't
	    connect.
	  </A
></DT
><DT
>A.5.5. <A
HREF="faq.html#AEN2112"
>&#13;	    How do I synchronize bug information among multiple different Bugzilla
	    databases?
	  </A
></DT
></DL
></DD
><DT
>6. <A
HREF="faq.html#faq-nt"
>Bugzilla and Win32</A
></DT
><DD
><DL
><DT
>A.6.1. <A
HREF="faq.html#AEN2121"
>&#13;	    What is the easiest way to run Bugzilla on Win32 (Win98+/NT/2K)?
	  </A
></DT
><DT
>A.6.2. <A
HREF="faq.html#AEN2126"
>&#13;	    Is there a "Bundle::Bugzilla" equivalent for Win32?
	  </A
></DT
><DT
>A.6.3. <A
HREF="faq.html#AEN2131"
>&#13;	    CGI's are failing with a "something.cgi is not a valid Windows NT
	    application" error. Why?
	  </A
></DT
><DT
>A.6.4. <A
HREF="faq.html#AEN2139"
>&#13;	    I'm having trouble with the perl modules for NT not being able to talk to
	    to the database.
	  </A
></DT
></DL
></DD
><DT
>7. <A
HREF="faq.html#faq-use"
>Bugzilla Usage</A
></DT
><DD
><DL
><DT
>A.7.1. <A
HREF="faq.html#AEN2160"
>&#13;	    How do I change my user name (email address) in Bugzilla?
	  </A
></DT
><DT
>A.7.2. <A
HREF="faq.html#AEN2165"
>&#13;	    The query page is very confusing.  Isn't there a simpler way to query?
	  </A
></DT
><DT
>A.7.3. <A
HREF="faq.html#AEN2170"
>&#13;	    I'm confused by the behavior of the "accept" button in the Show Bug form.
	    Why doesn't it assign the bug to me when I accept it?
	  </A
></DT
><DT
>A.7.4. <A
HREF="faq.html#AEN2180"
>&#13;	    I can't upload anything into the database via the "Create Attachment"
	    link.  What am I doing wrong?
	  </A
></DT
><DT
>A.7.5. <A
HREF="faq.html#AEN2185"
>&#13;	    How do I change a keyword in Bugzilla, once some bugs are using it?
	  </A
></DT
></DL
></DD
><DT
>8. <A
HREF="faq.html#faq-hacking"
>Bugzilla Hacking</A
></DT
><DD
><DL
><DT
>A.8.1. <A
HREF="faq.html#AEN2192"
>&#13;	    What kind of style should I use for templatization?
	  </A
></DT
><DT
>A.8.2. <A
HREF="faq.html#AEN2200"
>&#13;	    What bugs are in Bugzilla right now?
	  </A
></DT
><DT
>A.8.3. <A
HREF="faq.html#AEN2209"
>&#13;	    How can I change the default priority to a null value?  For instance, have the default
	    priority be "---" instead of "P2"?
	  </A
></DT
><DT
>A.8.4. <A
HREF="faq.html#AEN2215"
>&#13;	    What's the best way to submit patches?  What guidelines should I follow?
	  </A
></DT
></DL
></DD
></DL
><DIV
CLASS="qandadiv"
><H3
><A
NAME="faq-general"
></A
>1. General Questions</H3
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="AEN1813"
></A
><B
>A.1.1. </B
>
	    Where can I find information about Bugzilla?</P
></DIV
><DIV
CLASS="answer"
><P
><B
> </B
>
	    You can stay up-to-date with the latest Bugzilla
	    information at <A
HREF="http://www.bugzilla.org/"
TARGET="_top"
>&#13;	    http://www.bugzilla.org/</A
>
	  </P
></DIV
></DIV
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="AEN1819"
></A
><B
>A.1.2. </B
>
	    What license is Bugzilla distributed under?
	  </P
></DIV
><DIV
CLASS="answer"
><P
><B
> </B
>
	    Bugzilla is covered by the Mozilla Public License.
	    See details at <A
HREF="http://www.mozilla.org/MPL/"
TARGET="_top"
>&#13;	    http://www.mozilla.org/MPL/</A
>
	  </P
></DIV
></DIV
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="AEN1825"
></A
><B
>A.1.3. </B
>
	    How do I get commercial support for Bugzilla?
	  </P
></DIV
><DIV
CLASS="answer"
><P
><B
> </B
>
            <A
HREF="http://bugzilla.org/consulting.html"
TARGET="_top"
>http://bugzilla.org/consulting.html</A
>
            is a list of people and companies who have asked us to list them
            as consultants for Bugzilla.
          </P
><P
>&#13;	    <A
HREF="http://www.collab.net/"
TARGET="_top"
>www.collab.net</A
> offers
	    Bugzilla as part of their standard offering to large projects.
	    They do have some minimum fees that are pretty hefty, and generally
	    aren't interested in small projects.
	  </P
><P
>&#13;	    There are several experienced
	    Bugzilla hackers on the mailing list/newsgroup who are willing
	    to make themselves available for generous compensation.
	    Try sending a message to the mailing list asking for a volunteer.
	  </P
></DIV
></DIV
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="AEN1834"
></A
><B
>A.1.4. </B
>
	    What major companies or projects are currently using Bugzilla
	    for bug-tracking?
	  </P
></DIV
><DIV
CLASS="answer"
><P
><B
> </B
>
	    There are <EM
>dozens</EM
> of major companies with public
	    Bugzilla sites to track bugs in their products.  A few include:
	    <P
></P
><TABLE
BORDER="0"
><TBODY
><TR
><TD
>Netscape/AOL</TD
></TR
><TR
><TD
>Mozilla.org</TD
></TR
><TR
><TD
>NASA</TD
></TR
><TR
><TD
>Red Hat Software</TD
></TR
><TR
><TD
>SuSe Corp</TD
></TR
><TR
><TD
>The Horde Project</TD
></TR
><TR
><TD
>AbiSource</TD
></TR
><TR
><TD
>Real Time Enterprises, Inc</TD
></TR
><TR
><TD
>Eggheads.org</TD
></TR
><TR
><TD
>Strata Software</TD
></TR
><TR
><TD
>RockLinux</TD
></TR
><TR
><TD
>Creative Labs (makers of SoundBlaster)</TD
></TR
><TR
><TD
>The Apache Foundation</TD
></TR
><TR
><TD
>The Gnome Foundation</TD
></TR
><TR
><TD
>Ximian</TD
></TR
><TR
><TD
>Linux-Mandrake</TD
></TR
></TBODY
></TABLE
><P
></P
>
	  </P
><P
>&#13;	    Suffice to say, there are more than enough huge projects using Bugzilla
	    that we can safely say it's extremely popular.
	  </P
></DIV
></DIV
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="AEN1858"
></A
><B
>A.1.5. </B
>
	    Who maintains Bugzilla?
	  </P
></DIV
><DIV
CLASS="answer"
><P
><B
> </B
>
	    A 
      <A
HREF="http://www.bugzilla.org/who_we_are.html"
TARGET="_top"
>core team</A
>,
      led by Dave Miller (justdave@netscape.com).      
	  </P
></DIV
></DIV
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="AEN1864"
></A
><B
>A.1.6. </B
>
	    How does Bugzilla stack up against other bug-tracking databases?
	  </P
></DIV
><DIV
CLASS="answer"
><P
><B
> </B
>
	    We can't find any head-to-head comparisons of Bugzilla against
	    other defect-tracking software. If you know of one, please
      get in touch. However, from the author's personal
	    experience with other bug-trackers, Bugzilla offers
	    superior performance on commodity hardware, better price
	    (free!), more developer- friendly features (such as stored
	    queries, email integration, and platform independence),
	    improved scalability, open source code, greater
	    flexibility, and superior ease-of-use.
	  </P
><P
>&#13;	    If you happen to be a commercial bug-tracker vendor, please
	    step forward with a list of advantages your product has over
      Bugzilla. We'd be happy to include it in the "Competitors"
      section.
	  </P
></DIV
></DIV
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="AEN1870"
></A
><B
>A.1.7. </B
>
	    Why doesn't Bugzilla offer this or that feature or compatibility
	    with this other tracking software?
	  </P
></DIV
><DIV
CLASS="answer"
><P
><B
> </B
>
	    It may be that the support has not been built yet, or that you
	    have not yet found it.  Bugzilla is making tremendous strides in
	    usability, customizability, scalability, and user interface.  It
	    is widely considered the most complete and popular open-source
	    bug-tracking software in existence.
	  </P
><P
>&#13;	    That doesn't mean it can't use improvement!
	    You can help the project along by either hacking a patch yourself
	    that supports the functionality you require, or else submitting a
	    "Request for Enhancement" (RFE) using the bug submission interface
	    at <A
HREF="http://bugzilla.mozilla.org/enter_bug.cgi?product=Bugzilla"
TARGET="_top"
>bugzilla.mozilla.org</A
>.
	  </P
></DIV
></DIV
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="AEN1877"
></A
><B
>A.1.8. </B
>
	    Why MySQL?  I'm interested in seeing Bugzilla run on
	    Oracle/Sybase/Msql/PostgreSQL/MSSQL.
	  </P
></DIV
><DIV
CLASS="answer"
><P
><B
> </B
>
            MySQL was originally chosen because it is free, easy to install,
            and was available for the hardware Netscape intended to run it on.
	  </P
><P
>&#13;            There is currently work in progress to make Bugzilla work on
            PostgreSQL and Sybase in the default distribution.  You can track
            the progress of these initiatives in bugs <A
HREF="http://bugzilla.mozilla.org/show_bug.cgi?id=98304"
TARGET="_top"
>98304</A
>
            and <A
HREF="http://bugzilla.mozilla.org/show_bug.cgi?id=173130"
TARGET="_top"
>173130</A
>
            respectively.
          </P
><P
>&#13;            Once both of these are done, adding support for additional
            database servers should be trivial.
          </P
></DIV
></DIV
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="AEN1886"
></A
><B
>A.1.9. </B
>
	    Why do the scripts say "/usr/bonsaitools/bin/perl" instead of
	    "/usr/bin/perl" or something else?
	  </P
></DIV
><DIV
CLASS="answer"
><P
><B
> </B
>
	     Mozilla.org uses /usr/bonsaitools/bin/perl, because originally
       Terry wanted a place to put a version of Perl and other tools 
       that was strictly under his control. 
    </P
><P
>&#13;		  We always recommend that, if possible, you keep the path
		  as /usr/bonsaitools/bin/perl, and simply add symlink.  
      This will make upgrading
		  your Bugzilla much easier in the future.
		</P
></DIV
></DIV
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="AEN1892"
></A
><B
>A.1.10. </B
>
	    Is there an easy way to change the Bugzilla cookie name?
	  </P
></DIV
><DIV
CLASS="answer"
><P
><B
> </B
>
	    At present, no.
	  </P
></DIV
></DIV
></DIV
><DIV
CLASS="qandadiv"
><H3
><A
NAME="faq-phb"
></A
>2. Managerial Questions</H3
><P
>&#13;	<DIV
CLASS="note"
><P
></P
><TABLE
CLASS="note"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="../images/note.gif"
HSPACE="5"
ALT="Note"></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
>&#13;	    Questions likely to be asked by managers. :-)
	  </P
></TD
></TR
></TABLE
></DIV
>
      </P
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="AEN1902"
></A
><B
>A.2.1. </B
>
	    Is Bugzilla web-based, or do you have to have specific software or
	    a specific operating system on your machine?
	  </P
></DIV
><DIV
CLASS="answer"
><P
><B
> </B
>
	    It is web and e-mail based.  You can edit bugs by sending specially
	    formatted email to a properly configured Bugzilla, or control via the web.
	  </P
></DIV
></DIV
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="AEN1907"
></A
><B
>A.2.2. </B
>
	    Can Bugzilla integrate with
	    Perforce (SCM software)?
	  </P
></DIV
><DIV
CLASS="answer"
><P
><B
> </B
>
	    Yes!  You can find more information elsewhere in "The Bugzilla
	    Guide" in the "Integration with Third-Party Products" section.
	  </P
></DIV
></DIV
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="AEN1912"
></A
><B
>A.2.3. </B
>
	    Does Bugzilla allow the user to track multiple projects?
	  </P
></DIV
><DIV
CLASS="answer"
><P
><B
> </B
>
	    Absolutely!  You can track any number of Products that can each be
            composed of any number of Components.
	  </P
></DIV
></DIV
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="AEN1917"
></A
><B
>A.2.4. </B
>
	    If I am on many projects, and search for all bugs assigned to me, will
	    Bugzilla list them for me and allow me to sort by project, severity etc?
	  </P
></DIV
><DIV
CLASS="answer"
><P
><B
> </B
>
	    Yes.
	  </P
></DIV
></DIV
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="AEN1922"
></A
><B
>A.2.5. </B
>
	    Does Bugzilla allow attachments (text, screenshots, URLs etc)? If yes,
	    are there any that are NOT allowed?
	  </P
></DIV
><DIV
CLASS="answer"
><P
><B
> </B
>
	    Yes - any sort of attachment is allowed, although administrators can
      configure a maximum size.  
            Bugzilla gives the user the option of either using the MIME-type
            supplied by the browser, choosing from a pre-defined list or
            manually typing any arbitrary MIME-type. 
	  </P
></DIV
></DIV
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="AEN1927"
></A
><B
>A.2.6. </B
>
	    Does Bugzilla allow us to define our own priorities and levels? Do we
	    have complete freedom to change the labels of fields and format of them, and
	    the choice of acceptable values?
	  </P
></DIV
><DIV
CLASS="answer"
><P
><B
> </B
>
	    Yes.  However, modifying some fields, notably those related to bug
	    progression states, also require adjusting the program logic to
	    compensate for the change.
	  </P
><P
>&#13;	    There is no GUI for adding fields to Bugzilla at this
	    time.  You can follow development of this feature at
	    <A
HREF="http://bugzilla.mozilla.org/show_bug.cgi?id=91037"
TARGET="_top"
>http://bugzilla.mozilla.org/show_bug.cgi?id=91037</A
>
	  </P
></DIV
></DIV
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="AEN1934"
></A
><B
>A.2.7. </B
>
	    Does Bugzilla provide any reporting features, metrics, graphs, etc? You
	    know, the type of stuff that management likes to see. :)
	  </P
></DIV
><DIV
CLASS="answer"
><P
><B
> </B
>
	    Yes.  Look at <A
HREF="http://bugzilla.mozilla.org/report.cgi"
TARGET="_top"
>&#13;	    http://bugzilla.mozilla.org/report.cgi</A
> for samples of what
            Bugzilla can do in reporting and graphing.
	  </P
><P
>&#13;            If you can not get the reports you want from the included reporting
            scripts, it is possible to hook up a professional reporting package
            such as Crystal Reports using ODBC. If you choose to do this,
            beware that giving direct access to the database does contain some
            security implications. Even if you give read-only access to the
            bugs database it will bypass the secure bugs features of Bugzilla.
	  </P
></DIV
></DIV
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="AEN1941"
></A
><B
>A.2.8. </B
>
	    Is there email notification and if so, what do you see when you get an
	    email?
	  </P
></DIV
><DIV
CLASS="answer"
><P
><B
> </B
>
	    Email notification is user-configurable.  By default, the bug id and 
      Summary of the bug report accompany each email notification, along with
	    a list of the changes made.
	  </P
></DIV
></DIV
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="AEN1946"
></A
><B
>A.2.9. </B
>
	    Can email notification be set up to send to multiple
	    people, some on the To List, CC List, BCC List etc?
	  </P
></DIV
><DIV
CLASS="answer"
><P
><B
> </B
>
	    Yes.
	  </P
></DIV
></DIV
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="AEN1951"
></A
><B
>A.2.10. </B
>
	    Do users have to have any particular
	    type of email application?
	  </P
></DIV
><DIV
CLASS="answer"
><P
><B
> </B
>
	    Bugzilla email is sent in plain text, the most compatible mail format
	    on the planet.
	    <DIV
CLASS="note"
><P
></P
><TABLE
CLASS="note"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="../images/note.gif"
HSPACE="5"
ALT="Note"></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
>&#13;		If you decide to use the bugzilla_email integration features
		to allow Bugzilla to record responses to mail with the associated bug,
		you may need to caution your users to set their mailer to "respond
		to messages in the format in which they were sent".  For security reasons
		Bugzilla ignores HTML tags in comments, and if a user sends HTML-based
		email into Bugzilla the resulting comment looks downright awful.
	      </P
></TD
></TR
></TABLE
></DIV
>
	  </P
></DIV
></DIV
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="AEN1958"
></A
><B
>A.2.11. </B
>
	    Does Bugzilla allow data to be imported and exported? If I had outsiders
	    write up a bug report using a MS Word bug template, could that template be
	    imported into "matching" fields? If I wanted to take the results of a query
	    and export that data to MS Excel, could I do that?
	  </P
></DIV
><DIV
CLASS="answer"
><P
><B
> </B
>
            Bugzilla can output buglists as HTML (the default), CSV or RDF.
            The link for CSV can be found at the bottom of the buglist in HTML
            format.  This CSV format can easily be imported into MS Excel or
            other spread-sheet applications.
          </P
><P
>&#13;            To use the RDF format of the buglist it is necessary to append a
            <TT
CLASS="computeroutput"
>&#38;ctype=rdf</TT
> to the URL.  RDF
            is meant to be machine readable and thus it is assumed that the
            URL would be generated progmatically so there is no user visible
            link to this format.
          </P
><P
>&#13;            Currently the only script included with Bugzilla that can import
            data is <TT
CLASS="filename"
>importxml.pl</TT
> which is intended to be
            used for importing the data generated by <TT
CLASS="filename"
>xml.cgi</TT
>
            in association with bug moving. Any other use is left as an
            exercise for the user.
          </P
><P
>&#13;            There are also scripts included in the <TT
CLASS="filename"
>contrib/</TT
>
            directory for using e-mail to import information into Bugzilla,
            but these scripts are not currently supported and included for
            educational purposes.
          </P
></DIV
></DIV
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="AEN1970"
></A
><B
>A.2.12. </B
>
	    Has anyone converted Bugzilla to another language to be used in other
	    countries? Is it localizable?
	  </P
></DIV
><DIV
CLASS="answer"
><P
><B
> </B
>
            Yes.  For more information including available translated templates,
            see <A
HREF="http://www.bugzilla.org/download.html"
TARGET="_top"
>http://www.bugzilla.org/download.html</A
>.
            The admin interfaces are still not included in these translated
            templates and is therefore still English only.  Also, there may be
            issues with the charset not being declared.  See <A
HREF="http://bugzilla.mozilla.org/show_bug.cgi?id=126266"
TARGET="_top"
>bug 126226</A
>
            for more information.
	  </P
></DIV
></DIV
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="AEN1977"
></A
><B
>A.2.13. </B
>
	    Can a user create and save reports? Can they do this in Word format?
	    Excel format?
	  </P
></DIV
><DIV
CLASS="answer"
><P
><B
> </B
>
	    Yes.  No.  Yes (using the CSV format).
	  </P
></DIV
></DIV
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="AEN1982"
></A
><B
>A.2.14. </B
>
	    Does Bugzilla have the ability to search by word, phrase, compound
	    search?
	  </P
></DIV
><DIV
CLASS="answer"
><P
><B
> </B
>
	    You have no idea.  Bugzilla's query interface, particularly with the
	    advanced Boolean operators, is incredibly versatile.
	  </P
></DIV
></DIV
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="AEN1987"
></A
><B
>A.2.15. </B
>
	     Does Bugzilla provide record locking when there is simultaneous access
	    to the same bug? Does the second person get a notice that the bug is in use
	    or how are they notified?
	  </P
></DIV
><DIV
CLASS="answer"
><P
><B
> </B
>
	    Bugzilla does not lock records.  It provides mid-air collision detection,
	    and offers the offending user a choice of options to deal with the conflict.
	  </P
></DIV
></DIV
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="AEN1992"
></A
><B
>A.2.16. </B
>
	    Are there any backup features provided?
	  </P
></DIV
><DIV
CLASS="answer"
><P
><B
> </B
>
	    MySQL, the database back-end for Bugzilla, allows hot-backup of data.
	    You can find strategies for dealing with backup considerations
	    at <A
HREF="http://www.mysql.com/doc/B/a/Backup.html"
TARGET="_top"
>&#13;	    http://www.mysql.com/doc/B/a/Backup.html</A
>
	  </P
></DIV
></DIV
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="AEN1998"
></A
><B
>A.2.17. </B
>
	    Can users be on the system while a backup is in progress?
	  </P
></DIV
><DIV
CLASS="answer"
><P
><B
> </B
>
	    Yes.  However, commits to the database must wait
	    until the tables are unlocked.  Bugzilla databases are typically
	    very small, and backups routinely take less than a minute.
	  </P
></DIV
></DIV
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="AEN2003"
></A
><B
>A.2.18. </B
>
	    What type of human resources are needed to be on staff to install and
	    maintain Bugzilla? Specifically, what type of skills does the person need to
	    have? I need to find out if we were to go with Bugzilla, what types of
	    individuals would we need to hire and how much would that cost vs buying an
	    "Out-of-the-Box" solution.
	  </P
></DIV
><DIV
CLASS="answer"
><P
><B
> </B
>
	    If Bugzilla is set up correctly from the start, continuing maintenance
      needs are minimal and can be done easily using the web interface.
	  </P
><P
>&#13;	    Commercial Bug-tracking software typically costs somewhere upwards
	    of $20,000 or more for 5-10 floating licenses.  Bugzilla consultation
	    is available from skilled members of the newsgroup. Simple questions
      are answered there and then.
	  </P
></DIV
></DIV
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="AEN2009"
></A
><B
>A.2.19. </B
>
	    What time frame are we looking at if we decide to hire people to install
	    and maintain the Bugzilla? Is this something that takes hours or weeks to
	    install and a couple of hours per week to maintain and customize or is this
	    a multi-week install process, plus a full time job for 1 person, 2 people,
	    etc?
	  </P
></DIV
><DIV
CLASS="answer"
><P
><B
> </B
>
	    It all depends on your level of commitment.  Someone with much Bugzilla
	    experience can get you up and running in less than a day, and
	    your Bugzilla install can run untended for years.  If your
	    Bugzilla strategy is critical to your business workflow, hire somebody
	    with reasonable UNIX or Perl skills to handle your process management and
	    bug-tracking maintenance &#38; customization.
	  </P
></DIV
></DIV
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="AEN2014"
></A
><B
>A.2.20. </B
>
	    Is there any licensing fee or other fees for using Bugzilla? Any
	    out-of-pocket cost other than the bodies needed as identified above?
	  </P
></DIV
><DIV
CLASS="answer"
><P
><B
> </B
>
	    No.  MySQL asks, if you find their product valuable, that you purchase
	    a support contract from them that suits your needs.
	  </P
></DIV
></DIV
></DIV
><DIV
CLASS="qandadiv"
><H3
><A
NAME="faq-security"
></A
>3. Bugzilla Security</H3
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="AEN2021"
></A
><B
>A.3.1. </B
>
	    How do I completely disable MySQL security if it's giving me problems
	    (I've followed the instructions in the installation section of this guide)?
	  </P
></DIV
><DIV
CLASS="answer"
><P
><B
> </B
>
	    Run MySQL like this: "mysqld --skip-grant-tables".  Please remember <EM
>this
	    makes MySQL as secure as taping a $100 to the floor of a football stadium
	    bathroom for safekeeping.</EM
> 
	  </P
></DIV
></DIV
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="AEN2027"
></A
><B
>A.3.2. </B
>
	    Are there any security problems with Bugzilla?
	  </P
></DIV
><DIV
CLASS="answer"
><P
><B
> </B
>
	    The Bugzilla code has undergone a reasonably complete security audit,
      and user-facing CGIs run under Perl's taint mode. However, 
	    it is recommended that you closely examine permissions on your Bugzilla
	    installation, and follow the recommended security guidelines found
	    in The Bugzilla Guide.
	  </P
></DIV
></DIV
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="AEN2032"
></A
><B
>A.3.3. </B
>
	    I've implemented the security fixes mentioned in Chris Yeh's security
	    advisory of 5/10/2000 advising not to run MySQL as root, and am running into
	    problems with MySQL no longer working correctly.
	  </P
></DIV
><DIV
CLASS="answer"
><P
><B
> </B
>
	    This is a common problem, related to running out of file descriptors.
	    Simply add "ulimit -n unlimited" to the script which starts
	    mysqld.
	  </P
></DIV
></DIV
></DIV
><DIV
CLASS="qandadiv"
><H3
><A
NAME="faq-email"
></A
>4. Bugzilla Email</H3
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="AEN2039"
></A
><B
>A.4.1. </B
>
	    I have a user who doesn't want to receive any more email from Bugzilla.
	    How do I stop it entirely for this user?
	  </P
></DIV
><DIV
CLASS="answer"
><P
><B
> </B
>
	    The user should be able to set
	    this in user email preferences (uncheck all boxes) or you can add
            their email address to the <TT
CLASS="filename"
>data/nomail</TT
> file.
	  </P
></DIV
></DIV
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="AEN2045"
></A
><B
>A.4.2. </B
>
	    I'm evaluating/testing Bugzilla, and don't want it to send email to
	    anyone but me. How do I do it?
	  </P
></DIV
><DIV
CLASS="answer"
><P
><B
> </B
>
	    Edit the "newchangedmail" Param. Replace "To:" with "X-Real-To:",
	    replace "Cc:" with "X-Real-CC:", and add a "To: &#60;youremailaddress&#62;".
	  </P
></DIV
></DIV
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="AEN2050"
></A
><B
>A.4.3. </B
>
	    I want whineatnews.pl to whine at something more, or other than, only new
	    bugs. How do I do it?
	  </P
></DIV
><DIV
CLASS="answer"
><P
><B
> </B
>
	    Try Klaas Freitag's excellent patch for "whineatassigned" functionality.
	    You can find it at<A
HREF=" http://bugzilla.mozilla.org/show_bug.cgi?id=6679"
TARGET="_top"
>&#13;	      http://bugzilla.mozilla.org/show_bug.cgi?id=6679</A
>. This
	    patch is against an older version of Bugzilla, so you must apply
	    the diffs manually.
	  </P
></DIV
></DIV
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="AEN2056"
></A
><B
>A.4.4. </B
>
	    I don't like/want to use Procmail to hand mail off to bug_email.pl.
	    What alternatives do I have?
	  </P
></DIV
><DIV
CLASS="answer"
><P
><B
> </B
>
	    You can call bug_email.pl directly from your aliases file, with
	    an entry like this:
	    <A
NAME="AEN2060"
></A
><BLOCKQUOTE
CLASS="BLOCKQUOTE"
><P
>&#13;		bugzilla-daemon: "|/usr/local/bin/bugzilla/contrib/bug_email.pl"
	      </P
></BLOCKQUOTE
>
	    However, this is fairly nasty and subject to problems; you also
	    need to set up your smrsh (sendmail restricted shell) to allow
	    it.  In a pinch, though, it can work.
	  </P
></DIV
></DIV
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="AEN2063"
></A
><B
>A.4.5. </B
>
	    How do I set up the email interface to submit/change bugs via email?
	  </P
></DIV
><DIV
CLASS="answer"
><P
><B
> </B
>
	    You can find an updated README.mailif file in the contrib/ directory
	    of your Bugzilla distribution that walks you through the setup.
	  </P
></DIV
></DIV
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="AEN2068"
></A
><B
>A.4.6. </B
>
	    Email takes FOREVER to reach me from Bugzilla -- it's extremely slow.
	    What gives?
	  </P
></DIV
><DIV
CLASS="answer"
><P
><B
> </B
>
	    If you are using an alternate Mail Transport Agent (MTA other than
	    sendmail), make sure the options given in the "processmail" and other
      scripts for all
	    instances of "sendmail" are correct for your MTA.
	  </P
><P
>&#13;	    If you are using Sendmail, try enabling "sendmailnow" in editparams.cgi.
            If you are using Postfix, you will also need to enable <SPAN
CLASS="QUOTE"
>"sendmailnow"</SPAN
>.
	  </P
></DIV
></DIV
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="AEN2075"
></A
><B
>A.4.7. </B
>
	     How come email from Bugzilla changes never reaches me?
	  </P
></DIV
><DIV
CLASS="answer"
><P
><B
> </B
>
	    Double-check that you have not turned off email in your user preferences.
	    Confirm that Bugzilla is able to send email by visiting the "Log In"
	    link of your Bugzilla installation and clicking the "Email me a password"
	    button after entering your email address.
	  </P
><P
>&#13;	    If you never receive mail from Bugzilla, chances you do not have
	    sendmail in "/usr/lib/sendmail".  Ensure sendmail lives in, or is symlinked
	    to, "/usr/lib/sendmail".
	  </P
></DIV
></DIV
></DIV
><DIV
CLASS="qandadiv"
><H3
><A
NAME="faq-db"
></A
>5. Bugzilla Database</H3
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="AEN2083"
></A
><B
>A.5.1. </B
>
	    I've heard Bugzilla can be used with Oracle?
	  </P
></DIV
><DIV
CLASS="answer"
><P
><B
> </B
>
            Red Hat's old version of Bugzilla (based on 2.8) worked on Oracle.
            Red Hat's newer version (based on 2.17.1 and soon to be merged into
            the main distribution) runs on PostgreSQL.  At this time we know of
            no recent ports of Bugzilla to Oracle but do intend to support it
            in the future (possibly the 2.20 time-frame).
	  </P
></DIV
></DIV
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="AEN2088"
></A
><B
>A.5.2. </B
>
	    I think my database might be corrupted, or contain invalid entries. What
	    do I do?
	  </P
></DIV
><DIV
CLASS="answer"
><P
><B
> </B
>
	    Run the <SPAN
CLASS="QUOTE"
>"sanity check"</SPAN
> utility
	    (<TT
CLASS="filename"
>./sanitycheck.cgi</TT
> in the
	    Bugzilla_home directory) from your web browser to see! If
	    it finishes without errors, you're
	    <EM
>probably</EM
> OK.  If it doesn't come back
	    OK (i.e. any red letters), there are certain things
	    Bugzilla can recover from and certain things it can't.  If
	    it can't auto-recover, I hope you're familiar with
	    mysqladmin commands or have installed another way to
	    manage your database.  Sanity Check, although it is a good
	    basic check on your database integrity, by no means is a
	    substitute for competent database administration and
	    avoiding deletion of data.  It is not exhaustive, and was
	    created to do a basic check for the most common problems
	    in Bugzilla databases.
	  </P
></DIV
></DIV
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="AEN2096"
></A
><B
>A.5.3. </B
>
	    I want to manually edit some entries in my database. How?
	  </P
></DIV
><DIV
CLASS="answer"
><P
><B
> </B
>
	     There is no facility in Bugzilla itself to do this. It's also generally
	    not a smart thing to do if you don't know exactly what you're doing.
	    However, if you understand SQL you can use the <B
CLASS="command"
>mysql</B
>
            command line utility to manually insert, delete and modify table
            information.  There are also more intuitive GUI clients available.
            Personal favorites of the Bugzilla team are <A
HREF="http://www.phpmyadmin.net/"
TARGET="_top"
>phpMyAdmin</A
> and <A
HREF="http://www.mysql.com/downloads/gui-mycc.html"
TARGET="_top"
>MySQL Control
            Center</A
>.
	  </P
></DIV
></DIV
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="AEN2104"
></A
><B
>A.5.4. </B
>
	    I think I've set up MySQL permissions correctly, but Bugzilla still can't
	    connect.
	  </P
></DIV
><DIV
CLASS="answer"
><P
><B
> </B
>
	    Try running MySQL from its binary: "mysqld --skip-grant-tables". This
	    will allow you to completely rule out grant tables as the cause of your
            frustration. If this Bugzilla is able to connect at this point then
            you need to check that you have granted proper permission to the user
            password combo defined in <TT
CLASS="filename"
>localconfig</TT
>.
          </P
><DIV
CLASS="warning"
><P
></P
><TABLE
CLASS="warning"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="../images/warning.gif"
HSPACE="5"
ALT="Warning"></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
>&#13;              Running MySQL with this command line option is very insecure and
              should only be done when not connected to the external network
              as a troubleshooting step.
            </P
></TD
></TR
></TABLE
></DIV
></DIV
></DIV
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="AEN2112"
></A
><B
>A.5.5. </B
>
	    How do I synchronize bug information among multiple different Bugzilla
	    databases?
	  </P
></DIV
><DIV
CLASS="answer"
><P
><B
> </B
>
	    Well, you can synchronize or you can move bugs.  Synchronization will
	    only work one way -- you can create a read-only copy of the database
	    at one site, and have it regularly updated at intervals from the main
	    database.
	  </P
><P
>&#13;	    MySQL has some synchronization features builtin to the latest releases.
	    It would be great if someone looked into the possibilities there
	    and provided a report to the newsgroup on how to effectively
	    synchronize two Bugzilla installations.
	  </P
><P
>&#13;	    If you simply need to transfer bugs from one Bugzilla to another,
	    checkout the "move.pl" script in the Bugzilla distribution.
	  </P
></DIV
></DIV
></DIV
><DIV
CLASS="qandadiv"
><H3
><A
NAME="faq-nt"
></A
>6. Bugzilla and Win32</H3
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="AEN2121"
></A
><B
>A.6.1. </B
>
	    What is the easiest way to run Bugzilla on Win32 (Win98+/NT/2K)?
	  </P
></DIV
><DIV
CLASS="answer"
><P
><B
> </B
>
	    Remove Windows. Install Linux. Install Bugzilla.
	    The boss will never know the difference.
	  </P
></DIV
></DIV
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="AEN2126"
></A
><B
>A.6.2. </B
>
	    Is there a "Bundle::Bugzilla" equivalent for Win32?
	  </P
></DIV
><DIV
CLASS="answer"
><P
><B
> </B
>
	    Not currently.  Bundle::Bugzilla enormously simplifies Bugzilla
	    installation on UNIX systems.  If someone can volunteer to
	    create a suitable PPM bundle for Win32, it would be appreciated.
	  </P
></DIV
></DIV
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="AEN2131"
></A
><B
>A.6.3. </B
>
	    CGI's are failing with a "something.cgi is not a valid Windows NT
	    application" error. Why?
	  </P
></DIV
><DIV
CLASS="answer"
><P
><B
> </B
>
	    Depending on what Web server you are using, you will have to configure
	    the Web server to treat *.cgi files as CGI scripts. In IIS, you do this by
	    adding *.cgi to the App Mappings with the &#60;path&#62;\perl.exe %s %s as the
	    executable.
	  </P
><P
>&#13;	    Microsoft has some advice on this matter, as well:
	    <A
NAME="AEN2136"
></A
><BLOCKQUOTE
CLASS="BLOCKQUOTE"
><P
>&#13;		"Set application mappings. In the ISM, map the extension for the script
		file(s) to the executable for the script interpreter. For example, you might
		map the extension .py to Python.exe, the executable for the Python script
		interpreter. Note For the ActiveState Perl script interpreter, the extension
		.pl is associated with PerlIS.dll by default. If you want to change the
		association of .pl to perl.exe, you need to change the application mapping.
		In the mapping, you must add two percent (%) characters to the end of the
		pathname for perl.exe, as shown in this example: c:\perl\bin\perl.exe %s %s"
	      </P
></BLOCKQUOTE
>
	  </P
></DIV
></DIV
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="AEN2139"
></A
><B
>A.6.4. </B
>
	    I'm having trouble with the perl modules for NT not being able to talk to
	    to the database.
	  </P
></DIV
><DIV
CLASS="answer"
><P
><B
> </B
>
	    Your modules may be outdated or inaccurate. Try:
	    <P
></P
><OL
TYPE="1"
><LI
><P
>&#13;		  Hitting http://www.activestate.com/ActivePerl
		</P
></LI
><LI
><P
>&#13;		  Download ActivePerl
		</P
></LI
><LI
><P
>&#13;		  Go to your prompt
		</P
></LI
><LI
><P
>&#13;		  Type 'ppm'
		</P
></LI
><LI
><P
>&#13;		  <TT
CLASS="prompt"
>PPM&#62;</TT
> <B
CLASS="command"
>install DBI DBD-mysql GD</B
>
		</P
></LI
></OL
>
	    I reckon TimeDate and Data::Dumper come with the activeperl. You can check
	    the ActiveState site for packages for installation through PPM.
	    <A
HREF=" http://www.activestate.com/Packages/"
TARGET="_top"
>&#13;	      http://www.activestate.com/Packages/</A
>
	  </P
></DIV
></DIV
></DIV
><DIV
CLASS="qandadiv"
><H3
><A
NAME="faq-use"
></A
>7. Bugzilla Usage</H3
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="AEN2160"
></A
><B
>A.7.1. </B
>
	    How do I change my user name (email address) in Bugzilla?
	  </P
></DIV
><DIV
CLASS="answer"
><P
><B
> </B
>
	    New in 2.16 - go to the Account section of the Preferences. You will
      be emailed at both addresses for confirmation.
	  </P
></DIV
></DIV
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="AEN2165"
></A
><B
>A.7.2. </B
>
	    The query page is very confusing.  Isn't there a simpler way to query?
	  </P
></DIV
><DIV
CLASS="answer"
><P
><B
> </B
>
	    The interface was simplified by a UI designer for 2.16. Further
      suggestions for improvement are welcome, but we won't sacrifice power for
      simplicity.
	  </P
></DIV
></DIV
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="AEN2170"
></A
><B
>A.7.3. </B
>
	    I'm confused by the behavior of the "accept" button in the Show Bug form.
	    Why doesn't it assign the bug to me when I accept it?
	  </P
></DIV
><DIV
CLASS="answer"
><P
><B
> </B
>
	    The current behavior is acceptable to bugzilla.mozilla.org and most
	    users.  You have your choice of patches
	    to change this behavior, however.
	    <P
></P
><TABLE
BORDER="0"
><TBODY
><TR
><TD
><A
HREF="http://bugzilla.mozilla.org/showattachment.cgi?attach_id=8029"
TARGET="_top"
>&#13;		Add a "and accept bug" radio button</A
></TD
></TR
><TR
><TD
><A
HREF="http://bugzilla.mozilla.org/showattachment.cgi?attach_id=8153"
TARGET="_top"
>&#13;		"Accept" button automatically assigns to you</A
></TD
></TR
></TBODY
></TABLE
><P
></P
>
	    Note that these patches are somewhat dated.  You will need to apply
      them manually.  
	  </P
></DIV
></DIV
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="AEN2180"
></A
><B
>A.7.4. </B
>
	    I can't upload anything into the database via the "Create Attachment"
	    link.  What am I doing wrong?
	  </P
></DIV
><DIV
CLASS="answer"
><P
><B
> </B
>
	    The most likely cause is a very old browser or a browser that is
	    incompatible with file upload via POST.  Download the latest Netscape,
	    Microsoft, or Mozilla browser to handle uploads correctly.
	  </P
></DIV
></DIV
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="AEN2185"
></A
><B
>A.7.5. </B
>
	    How do I change a keyword in Bugzilla, once some bugs are using it?
	  </P
></DIV
><DIV
CLASS="answer"
><P
><B
> </B
>
	    In the Bugzilla administrator UI, edit the keyword and it will let you
	    replace the old keyword name with a new one.  This will cause a problem
	    with the keyword cache.  Run sanitycheck.cgi to fix it.
	  </P
></DIV
></DIV
></DIV
><DIV
CLASS="qandadiv"
><H3
><A
NAME="faq-hacking"
></A
>8. Bugzilla Hacking</H3
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="AEN2192"
></A
><B
>A.8.1. </B
>
	    What kind of style should I use for templatization?
	  </P
></DIV
><DIV
CLASS="answer"
><P
><B
> </B
>
	    Gerv and Myk suggest a 2-space indent, with embedded code sections on
	    their own line, in line with outer tags.  Like this:</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
>&#13;&#60;fred&#62;
[% IF foo %]
  &#60;bar&#62;
  [% FOREACH x = barney %]
    &#60;tr&#62;
      &#60;td&#62;
        [% x %]
      &#60;/td&#62;
    &#60;tr&#62;
  [% END %]
[% END %]
&#60;/fred&#62;
</PRE
></FONT
></TD
></TR
></TABLE
><P
> Myk also recommends you turn on PRE_CHOMP in the template
	initialization to prevent bloating of HTML with unnecessary whitespace.
	</P
><P
>Please note that many have differing opinions on this subject,
	and the existing templates in Bugzilla espouse both this and a 4-space
	style.  Either is acceptable; the above is preferred.</P
></DIV
></DIV
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="AEN2200"
></A
><B
>A.8.2. </B
>
	    What bugs are in Bugzilla right now?
	  </P
></DIV
><DIV
CLASS="answer"
><P
><B
> </B
>
	    Try <A
HREF="http://bugzilla.mozilla.org/buglist.cgi?bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&product=Bugzilla"
TARGET="_top"
>&#13;	    this link</A
> to view current bugs or requests for
	    enhancement for Bugzilla.
	  </P
><P
>&#13;	    You can view bugs marked for 2.18 release
	    <A
HREF="http://bugzilla.mozilla.org/buglist.cgi?product=Bugzilla&target_milestone=Bugzilla+2.18"
TARGET="_top"
>here</A
>.
	    This list includes bugs for the 2.18 release that have already
	    been fixed and checked into CVS.  Please consult the
	    <A
HREF="http://www.mozilla.org/projects/bugzilla/"
TARGET="_top"
>&#13;	      Bugzilla Project Page</A
> for details on how to
	    check current sources out of CVS so you can have these
	    bug fixes early!
	  </P
></DIV
></DIV
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="AEN2209"
></A
><B
>A.8.3. </B
>
	    How can I change the default priority to a null value?  For instance, have the default
	    priority be "---" instead of "P2"?
	  </P
></DIV
><DIV
CLASS="answer"
><P
><B
> </B
>
	    This is well-documented here: <A
HREF="http://bugzilla.mozilla.org/show_bug.cgi?id=49862"
TARGET="_top"
>&#13;	    http://bugzilla.mozilla.org/show_bug.cgi?id=49862</A
>.  Ultimately, it's as easy
	    as adding the "---" priority field to your localconfig file in the appropriate area,
	    re-running checksetup.pl, and then changing the default priority in your browser using
	    "editparams.cgi". 
	  </P
></DIV
></DIV
><DIV
CLASS="qandaentry"
><DIV
CLASS="question"
><P
><A
NAME="AEN2215"
></A
><B
>A.8.4. </B
>
	    What's the best way to submit patches?  What guidelines should I follow?
	  </P
></DIV
><DIV
CLASS="answer"
><P
><B
> </B
><P
></P
><OL
TYPE="1"
><LI
><P
>&#13;		  Enter a bug into bugzilla.mozilla.org for the <SPAN
CLASS="QUOTE"
>"<A
HREF="http://bugzilla.mozilla.org/enter_bug.cgi?product=Bugzilla"
TARGET="_top"
>Bugzilla</A
>"</SPAN
>
                  product.
		</P
></LI
><LI
><P
>&#13;		  Upload your patch as a unified diff (having used "diff -u" against
		  the <EM
>current sources</EM
> checked out of CVS),
		  or new source file by clicking
		  "Create a new attachment" link on the bug page you've just created, and
		  include any descriptions of database changes you may make, into the bug
		  ID you submitted in step #1.  Be sure and click the "Patch" checkbox
		  to indicate the text you are sending is a patch!
		</P
></LI
><LI
><P
>&#13;		  Announce your patch and the associated URL
		  (http://bugzilla.mozilla.org/show_bug.cgi?id=XXXXXX) for discussion in
		  the newsgroup (netscape.public.mozilla.webtools).  You'll get a really
		  good, fairly immediate reaction to the implications of your patch,
		  which will also give us an idea how well-received the change would
		  be.
		</P
></LI
><LI
><P
>&#13;		  If it passes muster with minimal modification, the person to whom
		  the bug is assigned in Bugzilla is responsible for seeing the patch
		  is checked into CVS.
		</P
></LI
><LI
><P
>&#13;		  Bask in the glory of the fact that you helped write the most successful
		  open-source bug-tracking software on the planet :)
		</P
></LI
></OL
></P
></DIV
></DIV
></DIV
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"