alisql的安装环境变量配置-创新互联

yum install -y centos-release-scl devtoolset-4-gcc-c++ devtoolset-4-gcc cmake openssl-devel bison git gmock ncurses ncurses-* autoconf

创新互联建站一直在为企业提供服务,多年的磨炼,使我们在创意设计,全网整合营销推广到技术研发拥有了开发经验。我们擅长倾听企业需求,挖掘用户对产品需求服务价值,为企业制作有用的创意设计体验。核心团队拥有超过十载以上行业经验,涵盖创意,策化,开发等专业领域,公司涉及领域有基础互联网服务托管服务器APP应用开发、手机移动建站、网页设计、网络整合营销。

groupadd mysql && useradd -r -g mysql mysql

wget http://mirror.cnop.net/alisql/AliSQL-5.6.32.zip && unzip AliSQL-5.6.32.zip && cd AliSQL-master

scl enable devtoolset-4 bash

mkdir source_downloads && cd source_downloads && wget http://mirror.cnop.net/gmock/gmock-1.6.0.zip && cd ..



cmake \
-DCMAKE_INSTALL_PREFIX=/usr/local/alisql \
-DMYSQL_UNIX_ADDR=/usr/local/alisql/mysql.sock \
-DDEFAULT_CHARSET=utf8 \
-DDEFAULT_COLLATION=utf8_general_ci \
-DWITH_INNOBASE_STORAGE_ENGINE=1 \
-DWITH_ARCHIVE_STORAGE_ENGINE=1 \
-DWITH_BLACKHOLE_STORAGE_ENGINE=1 \
-DMYSQL_DATADIR=/usr/local/alisql/data \
-DMYSQL_TCP_PORT=3306 \
-DENABLE_DOWNLOADS=1


make
make install
chown -R mysql.mysql /usr/local/alisql/
echo never > /sys/kernel/mm/transparent_hugepage/enabled


chmod +x ./scripts/mysql_install_db
./scripts/mysql_install_db --user=mysql --basedir=/usr/local/alisql --datadir=/usr/local/alisql/data



[client]
port = 3306
socket = /tmp/mysql.sock

[mysqld]
port = 3306
socket = /tmp/mysql.sock
datadir = /usr/local/alisql/data
skip-external-locking
key_buffer_size = 16M
max_allowed_packet = 10M
table_open_cache = 64
sort_buffer_size = 512K
net_buffer_length = 8K
read_buffer_size = 256K
read_rnd_buffer_size = 512K
myisam_sort_buffer_size = 8M
thread_cache_size = 8
query_cache_size = 8M
tmp_table_size = 16M
max_connections = 500
max_connect_errors = 100
open_files_limit = 65535
log-bin=mysql-bin
binlog_format=mixed
server-id = 1
expire_logs_days = 10
default_storage_engine = InnoDB
innodb_file_per_table = 1
innodb_data_home_dir = /usr/local/alisql/data
innodb_data_file_path = ibdata1:10M:autoextend
innodb_log_group_home_dir = /usr/local/alisql/data
innodb_buffer_pool_size = 16M
innodb_additional_mem_pool_size = 2M
innodb_log_file_size = 5M
innodb_log_buffer_size = 8M
innodb_flush_log_at_trx_commit = 1
innodb_lock_wait_timeout = 50



cp support-files/mysql.server /etc/init.d/mysqld





PATH=/usr/local/alisql/bin:/usr/local/alisql/lib:$PATH
export PATH

source /etc/profile



ln -s /usr/local/alisql/bin/mysql /usr/bin

chmod +x /etc/init.d/mysqld
service mysqld start
chkconfig --level 35 mysqld on


netstat -tulnp | grep 3306
mysql -u root -p   #默认root密码为空


alisql的安装环境变量配置



mysqladmin -uroot -p password 123456



alisql的安装环境变量配置


mysql -uroot -p          #重新登录

另外有需要云服务器可以了解下创新互联scvps.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。


分享题目:alisql的安装环境变量配置-创新互联
URL网址:http://myzitong.com/article/dpgejh.html