In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Yum-y install cmake
Useradd mysql
Cmake\-DCMAKE_INSTALL_PREFIX=/u01/mysql\-DMYSQL_DATADIR=/u01/mysql/data\-DSYSCONFDIR=/u01/mysql/data\-DDEFAULT_CHARSET=utf8\-DDEFAULT_COLLATION=utf8_general_ci\-DMYSQL_TCP_PORT=3306\-DMYSQL_USER=mysql\-DMYSQL_UNIX_ADDR=/u01/mysql/data/mysql.sock\-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\-DDOWNLOAD_BOOST=1\-DWITH_BOOST=/u01/mysql/boost
Or install cmake\-DCMAKE_INSTALL_PREFIX=/usr/local/mysql\-DMYSQL_DATADIR=/usr/local/mysql/data\-DSYSCONFDIR=/etc\-DDEFAULT_CHARSET=utf8\-DDEFAULT_COLLATION=utf8_general_ci\-DMYSQL_TCP_PORT=3306\-DMYSQL_USER=mysql\-DMYSQL_UNIX_ADDR=/var/lib/mysql/mysql.sock\-DWITH_MYISAM_STORAGE_ENGINE=1-DWITH_INNOBASE_STORAGE_ENGINE=1\-DWITH_ARCHIVE_STORAGE_ENGINE=1\ by default. -DWITH_BLACKHOLE_STORAGE_ENGINE=1\-DWITH_MEMORY_STORAGE_ENGINE=1\-DDOWNLOAD_BOOST=1\-DWITH_BOOST=/usr/local/mysql/boost
Make & & make install
/ / initialize mysql database / u01/mysql/bin/mysqld-- initialize-- user=mysql-- basedir=/u01/mysql-- datadir=/u01/mysql/data
/ * randomly generated password: 2016-11-24T09:59:53.588280Z 1 [Note] A temporary password is generated for root@localhost: yuWx:rLGp2xj
The previous version of mysql_install_db is under mysql_basedir/script, 5.7 is placed in the mysql_install_db/bin directory, and the obsolete "- initialize" will generate a random password (~ / .mysql_secret), while "- initialize-insecure" will not generate a password-there can be no data files in the datadir target directory * /
/ / back up the my.conf file mv / etc/my.cnf / etc/my.cnf.bak
[root@CnBJYwz01QorasunpengL01 mysql-5.7.10] # cp / u01/mysql/support-files/mysql.server / etc/init.d/mysqld [root@CnBJYwz01QorasunpengL01 mysql-5.7.10] # chmod + x / etc/init.d/mysqld
/ / configure my.cnf [root@CnBJYwz01QorasunpengL01 mysql-5.7.10] # vi / u01/mysql/my.cnf [client] port = 3306 socket = / u01/mysql/data/mysql.sock
[mysql] no-auto-rehash
[mysqld] server-id = 1 user = mysql port = 3306 socket = / u01/mysql/data/mysql.sock basedir = / u01/mysql datadir = / u01/mysql/data open_files_limit = 10240
Back_log = 600 max_connections = 3000 max_connect_errors = 6000 table_open_cache = 614 external-locking = FALSE max_allowed_packet = 32m thread_cache_size = 300 query_cache_size = 64m query_cache_limit = 4m default-storage-engine = InnoDB thread_stack = 192 K transaction_isolation = READ-COMMITTED tmp_table_size = 256m max_heap_table_size = 256m long_query_time = 4
Slow_query_log_file=/u01/mysql/data/slow-log.log slow_query_log log-bin = / u01/mysql/data/ray-bin.log binlog_cache_size = 4m max_binlog_cache_size = 8m max_binlog_size = 512m expire_logs_days = 7 key_buffer_size = 256MB read_buffer_size = 1m read_rnd_buffer_size = 16m bulk_insert_buffer_size = 64m skip-name-resolve lower_case_table_names = 1
Innodb_buffer_pool_size = 512m innodb_thread_concurrency = 8 innodb_flush_log_at_trx_commit = 2 innodb_log_buffer_size = 16m innodb_log_file_size = 128m innodb_log_files_in_group = 3 innodb_max_dirty_pages_pct = 90 innodb_lock_wait_timeout = 120 innodb_file_per_table = on
[mysqldump] quick max_allowed_packet = 32m
[mysqld_safe] log-error=/u01/mysql/data/mysql_ray.err pid-file=/u01/mysql/data/ray.pid
[mysql@CnBJYwz01QorasunpengL01 mysql] $service mysqld start Starting MySQL.. [OK]
/ / reset password [mysql@CnBJYwz01QorasunpengL01 ~] $mysql-uroot-pyuWx:rLGp2xj
Mysql > set password = password ('123456'); Query OK, 0 rows affected, 1 warning (0.01 sec)
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
© 2024 shulou.com SLNews company. All rights reserved.