How does freeBSD install mysql through ports

Source: Internet
Author: User
1. install freeBSD7.1 in the minimal installation mode, and then install post. There are many online tutorials for specific methods. 2, start freeBSD, enter the root user name and password, enter the # State, enter the relevant commands: 3, the following is the command record of the operation # cd/usr/ports/database/mysql40-server ;... 1. install freeBSD7.1 in the minimal installation mode, and then install post. There are many online tutorials for specific methods. 2. start freeBSD, enter the root user name and password, enter the # Status, and enter the relevant commands:
 
3. the following command records
 
# Cd/usr/ports/database/mysql40-server; enter the ports directory of mysql4.0
 
# Make insatll; for compilation, wait for a while. the time depends on the speed of the machine and the speed of the network.
 
# Make clean; after compilation, you can also
 
# Cd/usr/local/etc/rc. d/; enter the mysql startup command Directory
 
# Chmod 775./mysql-server; full use of the action. set mysql-server to be executable by all users.
 
# Mysql-server start; initialize mysql and start mysql
 
# Ps-A | grep mysql; check whether mysql is running. The purpose is to check whether a process whose name contains mysql characters is running.
 
# Netstat-a; further check the mysql running status to check whether tcp port 3306 is in the listen status
 
#/Usr/local/bin/mysql
 
#/Usr/local/bin/mysqladmin-u root password 4488321; set the mysql administrator password
 
#/Usr/local/bin/mysql-u root-p; log on to mysql, ask for a password, enter 123, report an error, and exit
 
#/Usr/local/bin/mysql-u root-p
 
# Ee/etc/rc. conf; edit rc. conf and add a line after the last line. The content is mysql_enable = "YES" to enable mysql to start automatically when it is started. Press ESC, select a, and then select a to save and exit.
 
# Reboot; restart and log on after startup
 
#/Usr/local/bin/mysql-u root-p; if the logon succeeds, mysql is automatically started.
 
All completed

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.