网创优客建站品牌官网
为成都网站建设公司企业提供高品质网站建设
热线:028-86922220
成都专业网站建设公司

定制建站费用3500元

符合中小企业对网站设计、功能常规化式的企业展示型网站建设

成都品牌网站建设

品牌网站建设费用6000元

本套餐主要针对企业品牌型网站、中高端设计、前端互动体验...

成都商城网站建设

商城网站建设费用8000元

商城网站建设因基本功能的需求不同费用上面也有很大的差别...

成都微信网站建设

手机微信网站建站3000元

手机微信网站开发、微信官网、微信商城网站...

建站知识

当前位置:首页 > 建站知识

源码编译安装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


本文名称:源码编译安装mysql5.7.18
文章分享:http://bjjierui.cn/article/peposc.html

其他资讯