<
# 配置环境变量
# /root/.bash_profile
export BASEDIR=/wode_mysql_server
export DATADIR=$BASEDIR/data
PATH=$PATH:$HOME/bin:$BASEDIR/bin:$BASEDIR/share/mysql
export PATH
#start mysql:
./wode_mysql_server/bin/mysqld_safe --user=mysql &
# OR
./wode_mysql_server/share/mysql/mysql.server start
#logon mysql:
/wode_mysql_server/bin/mysql
note
# /root/.bash_profile
export BASEDIR=/wode_mysql_server
export DATADIR=$BASEDIR/data
PATH=$PATH:$HOME/bin:$BASEDIR/bin:$BASEDIR/share/mysql
export PATH
#start mysql:
./wode_mysql_server/bin/mysqld_safe --user=mysql &
# OR
./wode_mysql_server/share/mysql/mysql.server start
#logon mysql:
/wode_mysql_server/bin/mysql
note
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/22661144/viewspace-1413218/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/22661144/viewspace-1413218/