1 Component configuration:
2 - atomic : not building
3 - chrono : not building
4 - context : not building
5 - coroutine : not building
6 - date_time : not building
7 - exception : not building
8 - filesystem : building
9 - graph : not building
10 - graph_parallel : not building
11 - iostreams : not building
12 - locale : not building
13 - log : building
14 - math : not building
15 - mpi : not building
16 - program_options : not building
17 - python : not building
18 - random : not building
19 - regex : not building
20 - serialization : not building
21 - signals : not building
22 - system : building
23 - test : not building
24 - thread : building
25 - timer : not building
26 - wave : not building
1 cp support-files/my-default.cnf /etc/my.cnf
2 [iyunv@lnmp ~]# cat /etc/my.cnf
3 # For advice on how to change settings please see
4 # http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html
5 # *** DO NOT EDIT THIS FILE. It's a template which will be copied to the
6 # *** default location during install, and will be replaced if you
7 # *** upgrade to a newer version of MySQL.
8 [mysqld]
9 # Remove leading # and set to the amount of RAM for the most important data
10 # cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
11 # innodb_buffer_pool_size = 128M
12 character_set_server=utf8
13 init_connect='SET NAMES utf8'
14 #skip-grant-tables
15 # Remove leading # to turn on a very important data integrity option: logging
16 # changes to the binary log between backups.
17 # log_bin
18 # These are commonly set, remove the # and set as required.
19 # basedir = .....
20 #datadir = /usr/local/mysql/data
21 # port = .....
22 # server_id = .....
23 # socket = .....
24 # Remove leading # to set options mainly useful for reporting servers.
25 # The server defaults are faster for transactions and fast SELECTs.
26 # Adjust sizes as needed, experiment to find the optimal values.
27 # join_buffer_size = 128M
28 # sort_buffer_size = 2M
29 # read_rnd_buffer_size = 2M
30 sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
31 [client]
32 default-character-set=utf8
[iyunv@lnmp ~]# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.7.14 Source distribution
Copyright (c) 2000, 2016, 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> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
| sys |
+--------------------+
4 rows in set (0.00 sec)
mysql> use mysql
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> show tables;
+---------------------------+
| Tables_in_mysql |
+---------------------------+
| columns_priv |
| db |
| engine_cost |
| event |
| func |
| general_log |
| gtid_executed |
| help_category |
| help_keyword |
| help_relation |
| help_topic |
| innodb_index_stats |
| innodb_table_stats |
| ndb_binlog_index |
| plugin |
| proc |
| procs_priv |
| proxies_priv |
| server_cost |
| servers |
| slave_master_info |
| slave_relay_log_info |
| slave_worker_info |
| slow_log |
| tables_priv |
| time_zone |
| time_zone_leap_second |
| time_zone_name |
| time_zone_transition |
| time_zone_transition_type |
| user |
+---------------------------+
31 rows in set (0.00 sec)