Utilities for the Management of a MySQL Database
Utilities for the Management of a MySQL Database

CREATEDB


NAME

createdb -- create a new MySQL database

SYNOPSIS

createdb [-d dbname] [-p port] [-s socket] datadir

DESCRIPTION

createdb configures and creates a new MySQL database below datadir. Following options are supported:
-d dbname
By default, two databases are created, mysql with meta-informations, and main for the application database. If dbname is provided, it replaces main. Note that mysql must not be given to avoid a conflict with the meta database.
-p port
This option allows to specify the port the database server should listen to. By default, a port is selected by random and stored within datadir/setenv.
-s socket
This option allows to specify a named socket the database server should listen to. By default this is datadir/socket.

AUTHOR

Andreas Borchert
converted to HTML: 2003/01/24

Andreas Borchert, January 24th, 2003