/usr/local/mysql
).
To install and use a MySQL binary distribution, the basic command sequence looks like this:
shell>groupadd mysql
shell>useradd -r -g mysql mysql
shell>cd /usr/local
shell>tar zxvf
shell>/path/to/mysql-VERSION-OS
.tar.gzln -s
shell>full-path-to-mysql-VERSION-OS
mysqlcd mysql
shell>chown -R mysql .
shell>chgrp -R mysql .
shell>scripts/mysql_install_db --user=mysql
shell>chown -R root .
shell>chown -R mysql data
# Next command is optional shell>cp support-files/my-medium.cnf /etc/my.cnf
shell>bin/mysqld_safe --user=mysql &
# Next command is optional shell>cp support-files/mysql.server /etc/init.d/mysql.server
1) Create a mysql user and group
2) Obtain and unpack the mysql tar distribution
3) Run mysql script as mysql user
No comments:
Post a Comment