mysql_install_db
This section lists problems you might encounter when you run
mysql_install_db:@:
mysql_install_db doesn't install the grant tables
mysql_install_db fails to install the grant
tables and terminates after displaying the following messages:@:
starting mysqld daemon with databases from XXXXXX mysql daemon endedIn this case, you should examine the log file very carefully! The log should be located in the directory `XXXXXX' named by the error message, and should indicate why
mysqld didn't start. If you don't understand
what happened, include the log when you post a bug report using
mysqlbug!
2.3 Comment rapporter des bugs et des problèmes.
mysqld daemon running
mysql_install_db at
all. You have to run mysql_install_db only once, when you install
MySQL the first time.
mysqld daemon doesn't work when one daemon is running
Can't start server: Bind on
TCP/IP port:@: Address already in use or Can't start server : Bind on
unix socket... You can start the new server with a different socket and
port as follows:@:
shell> MYSQL_UNIX_PORT=/tmp/mysqld-new.sock shell> MYSQL_TCP_PORT=3307 shell> export MYSQL_UNIX_PORT MYSQL_TCP_PORT shell> scripts/mysql_install_db shell> bin/safe_mysqld &After this, you should edit your server boot script to start both daemons with different sockets and ports. For example, it could invoke
safe_mysqld twice, but with different --socket, --port
and --basedir options for each invocation.
mysql_install_db or when
starting or using mysqld.
You can specify a different socket and temporary directory as follows:@:
shell> TMPDIR=/some_tmp_dir/ shell> MYSQL_UNIX_PORT=/some_tmp_dir/mysqld.sock shell> export TMPDIR MYSQL_UNIX_PORT`some_tmp_dir' should be the path to some directory for which you have write permission. After this you should be able to run
mysql_install_db and start
the server with these commands:@:
shell> scripts/mysql_install_db shell> BINDIR/safe_mysqld &
mysqld crashes immediately
glibc older than
2.0.7-5, you should make sure you have installed all glibc patches!
There is a lot of information about this in the MySQL mail
archives. Links to the mail archives are available at the online
MySQL documentation page.
Also, see 4.11.5 Linux (Toutes versions de Linux).
You can also start mysqld manually using the --skip-grant
option and add the privilege information yourself using mysql:@:
shell> BINDIR/safe_mysqld --skip-grant & shell> BINDIR/mysql -u root mysqlFrom
mysql, manually execute the SQL commands in mysql_install_db.
Make sure you run mysqladmin reload afterward to tell the
server to reload the grant tables.