MySql first time installation

August 2, 2008 – 3:15 am

This is what you have to do after your mysql binary installed on your FreeBSD or Linux machine.

freebsd02# mysql_install_db –user=mysql

WARNING: The host ‘freebsd02.acskl.com’ could not be looked up with resolveip.
This probably means that your libc libraries are not 100 % compatible
with this binary MySQL version. The MySQL daemon, mysqld, should work
normally with the exception that host name resolving will not work.
This means that you should use IP addresses instead of hostnames
when specifying MySQL privileges !
Installing MySQL system tables…
OK
Filling help tables…
OKTo start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your systemPLEASE 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 freebsd02.acskl.com password ‘new-password’

See the manual for more instructions.
You can start the MySQL daemon with:
cd /usr/local ; /usr/local/bin/mysqld_safe &You can test the MySQL daemon with mysql-test-run.pl

For FreeBSD, do not forget to add the following to your /etc/rc.conf :

mysql_enable=”YES”

cd mysql-test ; perl mysql-test-run.plPlease report any problems with the /usr/local/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

Post a Comment

Software Blogs - BlogCatalog Blog Directory Technology Technology blogs