Difference between revisions of "MySQL"

From MineOS
Jump to: navigation, search
(User)
(User)
Line 17: Line 17:
  
 
  <nowiki>
 
  <nowiki>
groupadd mysql
+
# groupadd mysql
useradd -g mysql-M -s /sbin/nologin mysql
+
# useradd -g mysql-M -s /sbin/nologin mysql
 
</nowiki>
 
</nowiki>
  

Revision as of 19:18, 13 June 2011

Contents

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

MySQL requires the mysql user and group to exist prior to successful installation. Create them before insattling mysql via ports.

# 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