0% found this document useful (0 votes)
15 views1 page

MYSQL 6.0 Install

Uploaded by

abctester2552
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views1 page

MYSQL 6.0 Install

Uploaded by

abctester2552
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 1

Mysql with SSL Support

Type
# cd /usr/ports/databases/mysql60-server
# make install WITH_OPENSSL=yes clean

Now we will create the mysql base db, type the command below and press enter.
# /usr/local/bin/mysql_install_db --user=mysql

Now lets set mysql to start at startup


add:

echo 'mysql_enable="YES"' >> /etc/rc.conf

To Start Mysql Manually type the following and press enter.


# /usr/local/share/mysql/mysql.server start

To Stop Mysql Manually type the following and press enter.


# /usr/local/share/mysql/mysql.server stop

To Re Start Mysql Manually type the following and press enter.


# /usr/local/share/mysql/mysql.server restart

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'

To login to mysql type:


# mysql –u root –p
you will be prompted for the root password you’ve set up in the step above.

You might also like