Demo entry 6776420

aaa

   

Submitted by anonymous on Dec 03, 2018 at 04:19
Language: Bash. Code size: 268 Bytes.

cd /usr/local/mysql
useradd mysql
ln -s /usr/local/mysql/data /data/mysql-data
chown -R mysql:mysql /usr/local/mysql/data
cp support-files/mysql.server /etc/init.d/mysql
./scripts/mysql_install_db --user=mysql
##启动mysql
service mysql start
chkconfig mysql on

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).