You can rename a file or personal geodatabase by right-clicking the geodatabase in the Catalog tree, clicking Rename, and typing a new name. Press Enter when you finish typing.
You cannot rename enterprise, workgroup, or desktop geodatabases, but you can rename database connection files (.sde).