Search code examples
perlbugzilla

Installing Bugzilla with a sql database on a different drive - how to connect database?


I'm attempting to install Bugzilla on a server with a MySQL database on it already. The database is on E: (for space) and Bugzilla is on C:. Currently Bugzilla does not have a database associated with it, and the perl checksetup script looks for a drive local database.

How can I attempt to get bugzilla to target the database on my other drive? Is there a line I can change in the initial scripts to do this?


Solution

  • You tell Bugzilla how to connect to the database server in the localconfig file.

    $db_driver = mysql
    # The DNS name of the host that the database server runs on.
    $db_host = localhost
    

    I believe with MySQL you can also directly connect via a local socket. Be sure to follow the Bugzilla installation instructions for setting up a database, a database user and password for the connection to use. The tables will be set up automatically by Bugzilla's setup scripts.