Difference between revisions of "MySQL"

From MineOS Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
== Dependencies ==
 
== Dependencies ==
 +
=== Ports ===
 
MySQL installation ''through the ports system'' requires cmake and libaio to be installed first, or else installing MySQL will not complete. libaio requires cmake as well, so  be sure to install cmake first.
 
MySQL installation ''through the ports system'' requires cmake and libaio to be installed first, or else installing MySQL will not complete. libaio requires cmake as well, so  be sure to install cmake first.
  
Line 9: Line 10:
 
  <nowiki>
 
  <nowiki>
 
# cd /usr/ports/opt/libaio
 
# cd /usr/ports/opt/libaio
 +
# pkgmk -d -i
 +
</nowiki>
 +
 +
=== User ===
 +
groupadd mysql
 +
useradd -g mysql-M -s /sbin/nologin mysql
 +
 +
== Installing from ports ==
 +
<nowiki>
 +
# cd /usr/ports/opt/mysql
 
# pkgmk -d -i
 
# pkgmk -d -i
 
</nowiki>
 
</nowiki>

Revision as of 23:16, 13 June 2011

Dependencies

Ports

MySQL installation through the ports system requires cmake and libaio to be installed first, or else installing MySQL will not complete. libaio requires cmake as well, so be sure to install cmake first.

# cd /usr/ports/opt/cmake
# pkgmk -d -i

# cd /usr/ports/opt/libaio
# pkgmk -d -i

User

groupadd mysql useradd -g mysql-M -s /sbin/nologin mysql

Installing from ports

# cd /usr/ports/opt/mysql
# pkgmk -d -i

Installing from ports

# cd /usr/ports/opt/mysql
# pkgmk -d -i