Skip to main content

installing mysql on freebsd circa 2013


mysql_install_db --user=mysql --basedir=/usr/local

output:

Installing MySQL system tables...2013-03-21 20:58:56 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2013-03-21 20:58:56 81008 [Note] InnoDB: The InnoDB memory heap is disabled
2013-03-21 20:58:56 81008 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2013-03-21 20:58:56 81008 [Note] InnoDB: Compressed tables use zlib 1.2.3
2013-03-21 20:58:56 81008 [Note] InnoDB: CPU does not support crc32 instructions
2013-03-21 20:58:56 81008 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2013-03-21 20:58:56 81008 [Note] InnoDB: Completed initialization of buffer pool
2013-03-21 20:58:56 81008 [Note] InnoDB: The first specified data file ./ibdata1 did not exist: a new database to be created!
2013-03-21 20:58:56 81008 [Note] InnoDB: Setting file ./ibdata1 size to 12 MB
2013-03-21 20:58:56 81008 [Note] InnoDB: Database physically writes the file full: wait...
2013-03-21 20:58:57 81008 [Note] InnoDB: Setting log file ./ib_logfile101 size to 48 MB
2013-03-21 20:59:02 81008 [Note] InnoDB: Setting log file ./ib_logfile1 size to 48 MB
2013-03-21 20:59:06 81008 [Note] InnoDB: Renaming log file ./ib_logfile101 to ./ib_logfile0
2013-03-21 20:59:06 81008 [Warning] InnoDB: New log files created, LSN=45781
2013-03-21 20:59:06 81008 [Note] InnoDB: Doublewrite buffer not found: creating new
2013-03-21 20:59:07 81008 [Note] InnoDB: Doublewrite buffer created
2013-03-21 20:59:07 81008 [Note] InnoDB: 128 rollback segment(s) are active.
2013-03-21 20:59:07 81008 [Warning] InnoDB: Creating foreign key constraint system tables.
2013-03-21 20:59:07 81008 [Note] InnoDB: Foreign key constraint system tables created
2013-03-21 20:59:07 81008 [Note] InnoDB: Creating tablespace and datafile system tables.
2013-03-21 20:59:07 81008 [Note] InnoDB: Tablespace and datafile system tables created.
2013-03-21 20:59:07 81008 [Note] InnoDB: Waiting for purge to start
2013-03-21 20:59:07 81008 [Note] InnoDB: 1.2.10 started; log sequence number 0
2013-03-21 20:59:13 81008 [Note] Binlog end
2013-03-21 20:59:13 81008 [Note] InnoDB: FTS optimize thread exiting.
2013-03-21 20:59:13 81008 [Note] InnoDB: Starting shutdown...
2013-03-21 20:59:15 81008 [Note] InnoDB: Shutdown completed; log sequence number 1625977
OK

Filling help tables...2013-03-21 20:59:15 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2013-03-21 20:59:15 81009 [Note] InnoDB: The InnoDB memory heap is disabled
2013-03-21 20:59:15 81009 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2013-03-21 20:59:15 81009 [Note] InnoDB: Compressed tables use zlib 1.2.3
2013-03-21 20:59:15 81009 [Note] InnoDB: CPU does not support crc32 instructions
2013-03-21 20:59:15 81009 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2013-03-21 20:59:15 81009 [Note] InnoDB: Completed initialization of buffer pool
2013-03-21 20:59:15 81009 [Note] InnoDB: Highest supported file format is Barracuda.
2013-03-21 20:59:15 81009 [Note] InnoDB: 128 rollback segment(s) are active.
2013-03-21 20:59:15 81009 [Note] InnoDB: Waiting for purge to start
2013-03-21 20:59:15 81009 [Note] InnoDB: 1.2.10 started; log sequence number 1625977
2013-03-21 20:59:15 81009 [Note] Binlog end
2013-03-21 20:59:15 81009 [Note] InnoDB: FTS optimize thread exiting.
2013-03-21 20:59:15 81009 [Note] InnoDB: Starting shutdown...
2013-03-21 20:59:16 81009 [Note] InnoDB: Shutdown completed; log sequence number 1625987
OK

To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:

  /usr/local/bin/mysqladmin -u root password 'new-password'
  /usr/local/bin/mysqladmin -u root -h msusac.morgan.edu password 'new-password'

Alternatively you can run:

  /usr/local/bin/mysql_secure_installation

which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.

See the manual for more instructions.

You can start the MySQL daemon with:

  cd . ; /usr/local/bin/mysqld_safe &

You can test the MySQL daemon with mysql-test-run.pl

  cd mysql-test ; perl mysql-test-run.pl

Please report any problems with the ./bin/mysqlbug script!

The latest information about MySQL is available on the web at

  http://www.mysql.com

Support MySQL by buying support/licenses at http://shop.mysql.com

New default config file was created as /usr/local/my.cnf and
will be used by default by the server when you start it.
You may edit this file to change server settings

Comments

Popular posts from this blog

Obama : The Country We Believe In

A speech by The President of the United States of America, Barack Obama, on April 13, 2011 at Goerge Washington University... Good afternoon.  It’s great to be back at GW.  I want you to know that one of the reasons I kept the government open was so I could be here today with all of you.  I wanted to make sure you had one more excuse to skip class.  You’re welcome.