[root@ rhel5 local]#tar -zxv -f cmake-2.8.4.tar.gz [root@ rhel5 local]#cd cmake-2.8.4 [root@ rhel5 cmake-2.8.4]#./configure [root@ rhel5 cmake-2.8.4]#make [root@ rhel5 cmake-2.8.4]#make install
[root@ rhel5~]#mkdir -p /usr/local/mysql //安装mysql [root@ rhel5~]#mkdir -p /usr/local/mysql/data //存放数据库
[root@ rhel5~]groupadd mysql [root@ rhel5~]useradd -r -g mysql mysql
[root@ rhel5 local]#tar -zxv -f mysql-5.5.10.tar.gz [root@ rhel5 local]#cd mysql-5.5.10 [root@ rhel5 mysql-5.5.10]#cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/usr/local/mysql/data -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DEXTRA_CHARSETS=all -DENABLED_LOCAL_INFILE=1 [root@ rhel5 mysql-5.5.10]#make [root@ rhel5 mysql-5.5.10]#make install
# make clean # rm -f CMakeCache.txt # rm -rf /etc/my.cnf
[root@ rhel5~]# cd /usr/local/mysql [root@ rhel5 mysql]# chown -R root:mysql . //把当前目录中所有文件的所有者所有者设为root,所属组为mysql [root@ rhel5 mysql]# chown -R mysql:mysql data
[root@ rhel5 mysql]# cd /usr/local/mysql [root@ rhel5 mysql]# scripts/mysql_install_db --user=mysql
[root@ rhel5~]# cd /usr/local/mysql [root@ rhel5 mysql]# ./bin/mysqld_safe --user=mysql & //启动MySQL,但不能停止
[root@ rhel5~]# service mysql.server start [root@ rhel5~]# service mysql.server stop [root@ rhel5~]# service mysql.server restart
[root@ rhel5~]# mysql -u root mysql
mysql>use mysql;
mysql>desc user;
mysql> GRANT ALL PRIVILEGES ON *.* TO root@"%" IDENTIFIED BY "root"; //为root添加远程连接的能力。
mysql>update user set Password = password('xxxxxx') where User='root';
mysql>select Host,User,Password from user where User='root';
mysql>flush privileges;
mysql>exit
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有