In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
# 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_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-- set the mysql default character to utf8 and install it to the specified directory / soft/mysql Download BOOST library automatically
# 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-- remember the password generated on the last line
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
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un