Linux 上 Mysql 二进制安装
介质下载
http://downloads.mysql.com/archives/mysql-5.5/mysql-5.5.0-m2-linux-i686-glibc23.tar.gz
安装简版
1 |
shell> groupadd mysql |
库初始化
1 |
shell> scripts/mysql_install_db --user=mysql |
开启MySQL服务
1 |
bin/mysqld_safe --user=mysql & |
环境变量
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
export LANG=en_US.utf8
export MYSQLHOME=/opt/mysql
export DATE=`date +"%Y%m%d%H%M"`
export PATH=$PGHOME/bin:$PATH:.
alias rm='rm -i'
alias ll='ls -lh'
总结:以上就是第一次在LINUX上安装 mysql的过程,感觉步骤还是比较简洁的。
原创文章,作者:bd101bd101,如若转载,请注明出处:https://blog.ytso.com/236351.html