#mkdir /usr/local/cmake #tar zxvf cmake-2.8.4.tar.gz #cd cmake-2.8.4 #./configure --prefix=/usr/local/cmake #make && make install 1.2.3.4.5.,
#cmake -DCMAKE_INSTALL_PREFIX=/home/mysql \ -DMYSQL_DATADIR=/home/mysql/data #make && make install 1.2.3.4.5.,安装完了之后,需要初始化一下默认数据库, ,
#scripts/mysql_install_db --basedir=/home/mysql --datadir=/home/mysql/data --user=mysql #cp support-files/my-medium.cnf /usr/local/mysql/my.cnf //copy配置文件 chown -R mysql:mysql /home/mysql //更改权限 #vi /home/mysql/my.cnf //加上以下内容,如果有就不用加了 [mysqld] basedir = /home/mysql datadir = /home/mysql/data log-error = /home/mysql/mysql_error.log pid-file = /home/mysql/mysql.pid user = mysql tmpdir = /tmp 1.2.3.4.5.6.7.8.9.10.,配置好了以后,启动mysql,可以采用服务的方式启动,执行:, ,
#cd /usr/local/mysql/support-files/ #cp ./mysql.server /etc/init.d/mysql5 #chkconfig mysql5 on #service mysql5 start # service mysql5 status MySQL running (2803) [ OK ] 1.2.3.4.5.6.7.,
#su - mysql $mysql -uroot -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 27 Server version: 5.5.19-log Source distribution Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> 1.2.3.4.5.6.7.8.9.10.11.12.
免责声明:本文系网络转载或改编,未找到原创作者,版权归原作者所有。如涉及版权,请联系删