/usr/local/mysql).
To install and use a MySQL binary distribution, the basic command sequence looks like this:
shell>groupadd mysqlshell>useradd -r -g mysql mysqlshell>cd /usr/localshell>tar zxvfshell>/path/to/mysql-VERSION-OS.tar.gzln -sshell>full-path-to-mysql-VERSION-OSmysqlcd mysqlshell>chown -R mysql .shell>chgrp -R mysql .shell>scripts/mysql_install_db --user=mysqlshell>chown -R root .shell>chown -R mysql data# Next command is optional shell>cp support-files/my-medium.cnf /etc/my.cnfshell>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