./scripts/mysql_install_db --user=mahao01 --basedir=/home/mahao01/local/mysql --datadir=/home/mahao01/local/mysql/data/ #啟動: ./bin/mysqld_safe --defaults-file=/home/mahao01/local/mysql/conf/my.cnf #加密: ./bin/mysqladmin -u root password '123456' -S /home/mahao01/local/mysql/logs/mysql.sock