成都创新互联网站制作重庆分公司

源码编译安装mysql5.7.18-创新互联

#yum install -y gcc-c++ cmake vim ncurses-devel wget

业务包括:企业网站建设、手机网站制作设计电子商务商城网站建设、网站营销推广等服务,并且涵盖域名与空间、虚拟空间、云服务器、等互联网基础服务;成都创新互联公司联建站以互联网的创新理念,成熟完善的建站体系,开拓进取的精神,专业的解决方案和顾问咨询服务,帮助客户在互联网时代提升形象、把握商机、实现价值,提高企业的核心竞争力。

#useradd mysql -s /home/nologin

#mkdir /soft/mysql,chown mysql:mysql !$

#mkdir /data/mysql,chown mysql:mysql !$

#tar xvf mysql-5.7.18.tar.gz

#cd mysql-5.7.18

#cmake -DCMAKE_INSTALL_PREFIX=/soft/mysql  -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DWITH_MYISAM_STORAGE_ENGINE=1 -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_MEMORY_STORAGE_ENGINE=1 -DWITH_READLINE=1 -DENABLED_LOCAL_INFILE=1  -DMYSQL_USER=mysql -DMYSQL_TCP_PORT=3306 -DDOWNLOAD_BOOST=1 -DWITH_BOOST=boost/boost_1_59_0    --将mysql默认字符设置为utf8,并安装到指定的目录/soft/mysql,自动下载BOOST库

#make &&make install

#cd /soft/mysql

#ln /soft/mysql/support-files/mysql.server  /sbin/mysqld

#ln /soft/mysql/bin/mysql  /sbin/mysql

#bin/mysqld  --initialize    --记得最后一行生成的密码

2017-07-15T07:39:36.600876Z 1 [Note] A temporary password is generated for root@localhost: QkaZGfBSL0#v

#mysqld start

Starting MySQL.. SUCCESS!

#mysql -pQkaZGfBSL0#v

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

#ln /soft/mysql/mysql.sock /tmp/mysql.sock

#mysql -pQkaZGfBSL0#v

mysql: [Warning] Using a password on the command line interface can be insecure.

Welcome to the MySQL monitor.  Commands end with ; or \g.

Your MySQL connection id is 6

Server version: 5.7.18 Source distribution

Copyright (c) 2000, 2017, 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>

mysql> use mysql;

ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.

mysql>set password=password('123456');

Query OK, 0 rows affected, 1 warning (0.01 sec)

mysql>

mysql> use mysql

Database changed

end

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


本文名称:源码编译安装mysql5.7.18-创新互联
分享路径:http://cxhlcq.com/article/epidc.html

其他资讯

在线咨询

微信咨询

电话咨询

028-86922220(工作日)

18980820575(7×24)

提交需求

返回顶部