144 CHAPTER 4 ADDING CONTRIBUTED MODULES (Unlimited web hosting)
Saturday, April 21st, 2007144 CHAPTER 4 ADDING CONTRIBUTED MODULES The Check option checks the table (and its indexes) for errors and integrity. The Repair option attempts to fix errors found with check. See the MySQL documentation (http://dev.mysql.com/doc/mysql/en/repair-table.html) for details. The Backup option saves one or more tables in the form of a SQL dump to a file that you specify. The Empty option deletes all data from the table. The Drop option removes the table from the database. Running Queries and Scripts The dba module facilitates querying the database through SQL that you enter directly into the web browser or by using a file stored on your local machine. Using SQL that you type directly into the browser is a convenient way to run custom queries if you are familiar and comfortable with using SQL. To do this, select administer . database and click the Query tab (admin/ database/query). You can also run scripts from files, which is an excellent tool for adding database definitions for modules that you are installing from files. To do this, select administer . database and click the Script tab (admin/database/script). Developer Tools (Devel) Module The Devel module is an indispensable tool for programmers and system administrators who want to know how Drupal accesses the database. It collects all of the SQL queries that are made during the loading of a page and shows them as output at the bottom of the screen, along with the time they took and whether the same query was called more than once. This is an excellent way to start to understand what goes on behind the scenes in Drupal, as well as a means for spotting bottlenecks in performance. The Devel module also defines a couple of helper functions to be used for debugging while programming, integrates with Xdebug (http://www.xdebug.org/) to provide profiler information, and includes a number of scripts for generating dummy database data for the purposes of testing. Installing the Devel Module Download the latest version of the Devel module from http://drupal.org/project/devel. Create a modules/devel folder and move the devel.module file into it. Enable the module from the admin/modulespage. The archive download comes with a devel/generated folder, which contains various scripts for automatically generating content in the database for the purpose of testing. Move these files to the server only if the site is a development site and you intend to use the scripts. Otherwise, you are best advised to omit them. If you are using Xdebug and wish to have access to profiler information through the Devel module, you should add information to either your php.inifile or the .htaccessfile. For php.ini, add the following:
Note: In case you are looking for affordable and reliable webhost to host and run your j2ee application check Vision web design programs services