标签:generate public 火墙 gtid master format inf not client
软件包:
- mysql-community-libs-5.7.22-1.el7.x86_64.rpm
- mysql-community-common-5.7.22-1.el7.x86_64.rpm
- mysql-community-client-5.7.22-1.el7.x86_64.rpm
- mysql-community-server-5.7.22-1.el7.x86_64.rpm
安装流程(有依赖关系)
rpm -ivh mysql-community-libs-5.7.22-1.el7.x86_64.rpm rpm -ivh mysql-community-common-5.7.22-1.el7.x86_64.rpm rpm -ivh mysql-community-client-5.7.22-1.el7.x86_64.rpm rpm -ivh mysql-community-server-5.7.22-1.el7.x86_64.rpm
systemctl start mysqld.service
systemctl status mysqld.service
[server@bogon ~]$ grep ‘temporary password‘ /var/log/mysqld.log
2018-07-10T12:35:03.497044Z 1 [Note] A temporary password is generated for root@localhost: (hfu*hjnt3W;
mysql
命令, 用户名root
及得到的随机密码登入MySql服务器进行密码修改 [server@bogon ~]$ mysql -u root -p
Enter password: (hfu*hjnt3W;
mysql> ALTER USER ‘root‘@‘localhost‘ IDENTIFIED BY ‘new_password‘;
注意:
new_password
长度必须大于8个字符,且有大小写、数字、特殊字符。
shell> firewall-cmd --zone=public --add-port=3306/tcp --permanent
shell> firewall-cmd --reload
shell> firewall-cmd --zone=public --list-ports
mysqlshow
查看存在那些数据库或数据库中存在的表列表shell> mysqlshow -u root -p
+--------------------+
| Databases |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
| sys |
+--------------------+
shell> mysqlshow -u root -p mysql
Database: mysql
+---------------------------+
| Tables |
+---------------------------+
| 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 |
+---------------------------+
标签:generate public 火墙 gtid master format inf not client
原文地址:https://www.cnblogs.com/Focus-Flying/p/9291917.html