- 工信部备案号 滇ICP备05000110号-1
- 滇公安备案 滇53010302000111
- 增值电信业务经营许可证 B1.B2-20181647、滇B1.B2-20190004
- 云南互联网协会理事单位
- 安全联盟认证网站身份V标记
- 域名注册服务机构许可:滇D3-20230001
- 代理域名注册服务机构:新网数码
1.yum install cmake
2.yum install gcc gcc-c++ autoconf* automake* zlib* libxml* ncurses-devel* libgcrypt* libtool*
3.mysql下载地址:
http://www.landui.com/mysql
http://www.landui.com//archives/mysql-5.5/mysql-5.5.17.tar.gz
cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/usr/local/mysql/data -DSYSCONFDIR=/usr/local/mysql/etc -DWITH_MYISAM_STORAGE_ENGINE=1 -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_MEMORY_STORAGE_ENGINE=1 -DWITH_READLINE=1 -DMYSQL_UNIX_ADDR=/var/lib/mysql/mysql.sock -DMYSQL_TCP_PORT=3306 -DENABLED_LOCAL_INFILE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DEXTRA_CHARSETS=all -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci
make && make install
4.创建mysql用户和组
cat /etc/passwd 查看用户列表
cat /etc/group 查看用户组列表
如果没有则创?
groupadd mysql
useradd -g mysql mysql
5.chown -R mysql:mysql /usr/local/mysql
6.cd /usr/local/mysql
scripts/mysql_install_db --user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data
7.cp support-files/my-medium.cnf /etc/my.cnf
cp support-files/mysql.server /etc/init.d/mysqld
chkconfig mysqld on
service mysqld start
8.添加path
vi /etc/profile 在末尾输入:
PATH=/usr/local/mysql/bin:$PATH
export PATH
执行#source /etc/profile 立即生效
9.设置密码
#mysql
mysql>update mysql.user set password=password("xxxxxxx") where user="root";
mysql>flush privileges;
mysql>quit;
售前咨询
售后咨询
备案咨询
二维码
TOP