java中的接口是类吗
253
2022-09-26
centos6.9编译安装mysql-5.6.36
一 安装相关软件包[root@DB01 ~]# yum install -y ncurses-devel libaio-devel [root@DB01 tools]# yum install cmake –y 创建mysql运行用户[root@DB01 tools]# useradd -s /sbin/nologin -M mysql 下载软件包[root@DB01 tools]# wget https://downloads.mysql.com/archives/get/file/mysql-5.6.36.tar.gz 解压软件[root@DB01 tools]# tar -xf mysql-5.6.36.tar.gz 配置MySQLcmake . -DCMAKE_INSTALL_PREFIX=/application/mysql-5.6.36 \-DMYSQL_DATADIR=/application/mysql-5.6.36/data \-DMYSQL_UNIX_ADDR=/application/mysql-5.6.36/tmp/mysql.sock \-DDEFAULT_CHARSET=utf8 \-DDEFAULT_COLLATION=utf8_general_ci \-DWITH_EXTRA_CHARSETS=all \-DWITH_INNOBASE_STORAGE_ENGINE=1 \-DWITH_FEDERATED_STORAGE_ENGINE=1 \-DWITH_BLACKHOLE_STORAGE_ENGINE=1 \-DWITHOUT_EXAMPLE_STORAGE_ENGINE=1 \-DWITH_ZLIB=bundled \-DWITH_SSL=bundled \-DENABLED_LOCAL_INFILE=1 \-DWITH_EMBEDDED_SERVER=1 \-DENABLE_DOWNLOADS=1 \-DWITH_DEBUG=0
6.make && make install
创建软连接ln -s /application/mysql-5.6.36/ /application/mysql 拷贝配置文件到etc
cp support-files/my*.cnf /etc/my.cnf
9 . 初始化数据库/application/mysql/scripts/mysql_install_db --basedir=/application/mysql/ --datadir=/application/mysql/data --user=mysql
10.创建关键目录并授权mkdir /application/mysql/tmp/chown -R mysql.mysql /application/mysql/11 . 拷贝启动脚本cp support-files/mysql.server/etc/init.d/mysqldchmod700 /etc/init.d/mysqld12 . 设置开机自启chkconfig mysqld onchkconfig--list mysqld13 .启动数据库/etc/init.d/mysqld startnetstat -lntup|grep 330614 .设置环境变量echo 'PATH=/application/mysql/bin/:$PATH' >>/etc/profilesource /etc/profileecho $PATH
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~