mysql 安装

Linux 7.4
安装mysql
安装包:MySQL-client-advanced-5.6.27-1.el6.x86_64.rpm
MySQL-server-advanced-5.6.27-1.el6.x86_64.rpm

[root@openlab1 ~]# rpm -ivh MySQL-server-advanced-5.6.27-1.el6.x86_64.rpm
warning: MySQL-server-advanced-5.6.27-1.el6.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
error: Failed dependencies:
libnuma.so.1()(64bit) is needed by MySQL-server-advanced-5.6.27-1.el6.x86_64
libnuma.so.1(libnuma_1.1)(64bit) is needed by MySQL-server-advanced-5.6.27-1.el6.x86_64
libnuma.so.1(libnuma_1.2)(64bit) is needed by MySQL-server-advanced-5.6.27-1.el6.x86_64
出现如上错误的解决方法:
[root@openlab1 ~]# rpm -qa |grep -i mysql
mysql-libs-5.1.61-4.el6.x86_64
[root@openlab1 ~]# yum install numactl
Loaded plugins: refresh-packagekit, security
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package numactl.x86_64 0:2.0.7-3.el6 will be installed
–> Finished Dependency Resolution

Dependencies Resolved

=====================================================================================================
**Package Arch Version Repository Size
=====================================================================================================**
Installing:
numactl x86_64 2.0.7-3.el6 ol6_latest 59 k

**Transaction Summary
=====================================================================================================**
Install 1 Package(s)

Total download size: 59 k
Installed size: 136 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : numactl-2.0.7-3.el6.x86_64 1/1
Verifying : numactl-2.0.7-3.el6.x86_64 1/1

Installed:
numactl.x86_64 0:2.0.7-3.el6

Complete!
[root@openlab1 ~]# rpm -ivh MySQL-server-advanced-5.6.27-1.el6.x86_64.rpm
warning: MySQL-server-advanced-5.6.27-1.el6.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Preparing… ########################################### [100%]
file /usr/share/mysql/czech/errmsg.sys from install of MySQL-server-advanced-5.6.27-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.61-4.el6.x86_64
file /usr/share/mysql/danish/errmsg.sys from install of MySQL-server-advanced-5.6.27-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.61-4.el6.x86_64
file /usr/share/mysql/dutch/errmsg.sys from install of MySQL-server-advanced-5.6.27-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.61-4.el6.x86_64
file /usr/share/mysql/english/errmsg.sys from install of MySQL-server-advanced-5.6.27-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.61-4.el6.x86_64
file /usr/share/mysql/estonian/errmsg.sys from install of MySQL-server-advanced-5.6.27-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.61-4.el6.x86_64
file /usr/share/mysql/french/errmsg.sys from install of MySQL-server-advanced-5.6.27-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.61-4.el6.x86_64
file /usr/share/mysql/german/errmsg.sys from install of MySQL-server-advanced-5.6.27-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.61-4.el6.x86_64
file /usr/share/mysql/greek/errmsg.sys from install of MySQL-server-advanced-5.6.27-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.61-4.el6.x86_64
file /usr/share/mysql/hungarian/errmsg.sys from install of MySQL-server-advanced-5.6.27-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.61-4.el6.x86_64
file /usr/share/mysql/italian/errmsg.sys from install of MySQL-server-advanced-5.6.27-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.61-4.el6.x86_64
file /usr/share/mysql/japanese/errmsg.sys from install of MySQL-server-advanced-5.6.27-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.61-4.el6.x86_64
file /usr/share/mysql/korean/errmsg.sys from install of MySQL-server-advanced-5.6.27-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.61-4.el6.x86_64
file /usr/share/mysql/norwegian-ny/errmsg.sys from install of MySQL-server-advanced-5.6.27-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.61-4.el6.x86_64
file /usr/share/mysql/norwegian/errmsg.sys from install of MySQL-server-advanced-5.6.27-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.61-4.el6.x86_64
file /usr/share/mysql/polish/errmsg.sys from install of MySQL-server-advanced-5.6.27-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.61-4.el6.x86_64
file /usr/share/mysql/portuguese/errmsg.sys from install of MySQL-server-advanced-5.6.27-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.61-4.el6.x86_64
file /usr/share/mysql/romanian/errmsg.sys from install of MySQL-server-advanced-5.6.27-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.61-4.el6.x86_64
file /usr/share/mysql/russian/errmsg.sys from install of MySQL-server-advanced-5.6.27-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.61-4.el6.x86_64
file /usr/share/mysql/serbian/errmsg.sys from install of MySQL-server-advanced-5.6.27-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.61-4.el6.x86_64
file /usr/share/mysql/slovak/errmsg.sys from install of MySQL-server-advanced-5.6.27-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.61-4.el6.x86_64
file /usr/share/mysql/spanish/errmsg.sys from install of MySQL-server-advanced-5.6.27-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.61-4.el6.x86_64
file /usr/share/mysql/swedish/errmsg.sys from install of MySQL-server-advanced-5.6.27-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.61-4.el6.x86_64
file /usr/share/mysql/ukrainian/errmsg.sys from install of MySQL-server-advanced-5.6.27-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.61-4.el6.x86_64
file /usr/share/mysql/charsets/Index.xml from install of MySQL-server-advanced-5.6.27-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.61-4.el6.x86_64
file /usr/share/mysql/charsets/armscii8.xml from install of MySQL-server-advanced-5.6.27-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.61-4.el6.x86_64
file /usr/share/mysql/charsets/ascii.xml from install of MySQL-server-advanced-5.6.27-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.61-4.el6.x86_64
file /usr/share/mysql/charsets/cp1250.xml from install of MySQL-server-advanced-5.6.27-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.61-4.el6.x86_64
file /usr/share/mysql/charsets/cp1251.xml from install of MySQL-server-advanced-5.6.27-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.61-4.el6.x86_64
file /usr/share/mysql/charsets/cp1256.xml from install of MySQL-server-advanced-5.6.27-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.61-4.el6.x86_64
file /usr/share/mysql/charsets/cp1257.xml from install of MySQL-server-advanced-5.6.27-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.61-4.el6.x86_64
file /usr/share/mysql/charsets/cp850.xml from install of MySQL-server-advanced-5.6.27-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.61-4.el6.x86_64
file /usr/share/mysql/charsets/cp852.xml from install of MySQL-server-advanced-5.6.27-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.61-4.el6.x86_64
file /usr/share/mysql/charsets/cp866.xml from install of MySQL-server-advanced-5.6.27-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.61-4.el6.x86_64
file /usr/share/mysql/charsets/dec8.xml from install of MySQL-server-advanced-5.6.27-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.61-4.el6.x86_64
file /usr/share/mysql/charsets/geostd8.xml from install of MySQL-server-advanced-5.6.27-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.61-4.el6.x86_64
file /usr/share/mysql/charsets/greek.xml from install of MySQL-server-advanced-5.6.27-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.61-4.el6.x86_64
file /usr/share/mysql/charsets/hebrew.xml from install of MySQL-server-advanced-5.6.27-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.61-4.el6.x86_64
file /usr/share/mysql/charsets/hp8.xml from install of MySQL-server-advanced-5.6.27-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.61-4.el6.x86_64
file /usr/share/mysql/charsets/keybcs2.xml from install of MySQL-server-advanced-5.6.27-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.61-4.el6.x86_64
file /usr/share/mysql/charsets/koi8r.xml from install of MySQL-server-advanced-5.6.27-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.61-4.el6.x86_64
file /usr/share/mysql/charsets/koi8u.xml from install of MySQL-server-advanced-5.6.27-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.61-4.el6.x86_64
file /usr/share/mysql/charsets/latin1.xml from install of MySQL-server-advanced-5.6.27-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.61-4.el6.x86_64
file /usr/share/mysql/charsets/latin2.xml from install of MySQL-server-advanced-5.6.27-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.61-4.el6.x86_64
file /usr/share/mysql/charsets/latin5.xml from install of MySQL-server-advanced-5.6.27-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.61-4.el6.x86_64
file /usr/share/mysql/charsets/latin7.xml from install of MySQL-server-advanced-5.6.27-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.61-4.el6.x86_64
file /usr/share/mysql/charsets/macce.xml from install of MySQL-server-advanced-5.6.27-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.61-4.el6.x86_64
file /usr/share/mysql/charsets/macroman.xml from install of MySQL-server-advanced-5.6.27-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.61-4.el6.x86_64
file /usr/share/mysql/charsets/swe7.xml from install of MySQL-server-advanced-5.6.27-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.61-4.el6.x86_64
出现如上错误,解决方法如下:
[root@openlab1 ~]# rpm -qa |grep -i mysql
mysql-libs-5.1.61-4.el6.x86_64
[root@openlab1 ~]# rpm -e –nodeps mysql-libs-5.1.61-4.el6.x86_64
再重新安装,就好了
[root@openlab1 ~]# rpm -ivh MySQL-server-advanced-5.6.27-1.el6.x86_64.rpm
warning: MySQL-server-advanced-5.6.27-1.el6.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Preparing… ########################################### [100%]
1:MySQL-server-advanced ########################################### [100%]
warning: user mysql does not exist - using root
warning: group mysql does not exist - using root
2018-07-10 09:46:50 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use –explicit_defaults_for_timestamp server option (see documentation for more details).
2018-07-10 09:46:50 0 [Note] /usr/sbin/mysqld (mysqld 5.6.27-enterprise-commercial-advanced) starting as process 14228 …
2018-07-10 09:46:50 14228 [Note] InnoDB: Using atomics to ref count buffer pool pages
2018-07-10 09:46:50 14228 [Note] InnoDB: The InnoDB memory heap is disabled
2018-07-10 09:46:50 14228 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2018-07-10 09:46:50 14228 [Note] InnoDB: Memory barrier is not used
2018-07-10 09:46:50 14228 [Note] InnoDB: Compressed tables use zlib 1.2.3
2018-07-10 09:46:50 14228 [Note] InnoDB: Using Linux native AIO
2018-07-10 09:46:50 14228 [Note] InnoDB: Using CPU crc32 instructions
2018-07-10 09:46:50 14228 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2018-07-10 09:46:50 14228 [Note] InnoDB: Completed initialization of buffer pool
2018-07-10 09:46:50 14228 [Note] InnoDB: The first specified data file ./ibdata1 did not exist: a new database to be created!
2018-07-10 09:46:50 14228 [Note] InnoDB: Setting file ./ibdata1 size to 12 MB
2018-07-10 09:46:50 14228 [Note] InnoDB: Database physically writes the file full: wait…
2018-07-10 09:46:51 14228 [Note] InnoDB: Setting log file ./ib_logfile101 size to 48 MB
2018-07-10 09:46:53 14228 [Note] InnoDB: Setting log file ./ib_logfile1 size to 48 MB
2018-07-10 09:46:55 14228 [Note] InnoDB: Renaming log file ./ib_logfile101 to ./ib_logfile0
2018-07-10 09:46:55 14228 [Warning] InnoDB: New log files created, LSN=45781
2018-07-10 09:46:55 14228 [Note] InnoDB: Doublewrite buffer not found: creating new
2018-07-10 09:46:55 14228 [Note] InnoDB: Doublewrite buffer created
2018-07-10 09:46:55 14228 [Note] InnoDB: 128 rollback segment(s) are active.
2018-07-10 09:46:55 14228 [Warning] InnoDB: Creating foreign key constraint system tables.
2018-07-10 09:46:55 14228 [Note] InnoDB: Foreign key constraint system tables created
2018-07-10 09:46:55 14228 [Note] InnoDB: Creating tablespace and datafile system tables.
2018-07-10 09:46:55 14228 [Note] InnoDB: Tablespace and datafile system tables created.
2018-07-10 09:46:55 14228 [Note] InnoDB: Waiting for purge to start
2018-07-10 09:46:56 14228 [Note] InnoDB: 5.6.27 started; log sequence number 0
2018-07-10 09:46:56 14228 [Note] RSA private key file not found: /var/lib/mysql//private_key.pem. Some authentication plugins will not work.
2018-07-10 09:46:56 14228 [Note] RSA public key file not found: /var/lib/mysql//public_key.pem. Some authentication plugins will not work.
A random root password has been set. You will find it in ‘/root/.mysql_secret’.
2018-07-10 09:46:58 14228 [Note] Binlog end
2018-07-10 09:46:58 14228 [Note] InnoDB: FTS optimize thread exiting.
2018-07-10 09:46:58 14228 [Note] InnoDB: Starting shutdown…
2018-07-10 09:47:07 14228 [Note] InnoDB: Shutdown completed; log sequence number 1625977

2018-07-10 09:47:07 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use –explicit_defaults_for_timestamp server option (see documentation for more details).
2018-07-10 09:47:07 0 [Note] /usr/sbin/mysqld (mysqld 5.6.27-enterprise-commercial-advanced) starting as process 14312 …
2018-07-10 09:47:07 14312 [Note] InnoDB: Using atomics to ref count buffer pool pages
2018-07-10 09:47:07 14312 [Note] InnoDB: The InnoDB memory heap is disabled
2018-07-10 09:47:07 14312 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2018-07-10 09:47:07 14312 [Note] InnoDB: Memory barrier is not used
2018-07-10 09:47:07 14312 [Note] InnoDB: Compressed tables use zlib 1.2.3
2018-07-10 09:47:07 14312 [Note] InnoDB: Using Linux native AIO
2018-07-10 09:47:07 14312 [Note] InnoDB: Using CPU crc32 instructions
2018-07-10 09:47:07 14312 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2018-07-10 09:47:07 14312 [Note] InnoDB: Completed initialization of buffer pool
2018-07-10 09:47:07 14312 [Note] InnoDB: Highest supported file format is Barracuda.
2018-07-10 09:47:08 14312 [Note] InnoDB: 128 rollback segment(s) are active.
2018-07-10 09:47:08 14312 [Note] InnoDB: 5.6.27 started; log sequence number 1625977
2018-07-10 09:47:08 14312 [Note] RSA private key file not found: /var/lib/mysql//private_key.pem. Some authentication plugins will not work.
2018-07-10 09:47:08 14312 [Note] RSA public key file not found: /var/lib/mysql//public_key.pem. Some authentication plugins will not work.
2018-07-10 09:47:08 14312 [Note] Binlog end
2018-07-10 09:47:08 14312 [Note] InnoDB: FTS optimize thread exiting.
2018-07-10 09:47:08 14312 [Note] InnoDB: Starting shutdown…
2018-07-10 09:47:11 14312 [Note] InnoDB: Shutdown completed; log sequence number 1625987

A RANDOM PASSWORD HAS BEEN SET FOR THE MySQL root USER !
You will find that password in ‘/root/.mysql_secret’.

You must change that password on your first connect,
no other statement but ‘SET PASSWORD’ will be accepted.
See the manual for the semantics of the ‘password expired’ flag.

Also, the account for the anonymous user has been removed.

In addition, you can run:

/usr/bin/mysql_secure_installation

which will also give you the option of removing the test database.
This is strongly recommended for production servers.

See the manual for more instructions.

Please report any problems at http://bugs.mysql.com/

The latest information about MySQL is available on the web at

http://www.mysql.com

Support MySQL by buying support/licenses at http://shop.mysql.com

New default config file was created as /usr/my.cnf and
will be used by default by the server when you start it.
You may edit this file to change server settings

[root@openlab1 ~]# rpm -ivh MySQL-client-advanced-5.6.27-1.el6.x86_64.rpm
warning: MySQL-client-advanced-5.6.27-1.el6.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Preparing… ########################################### [100%]
1:MySQL-client-advanced ########################################### [100%]
1、 启用mysql
[root@openlab1 ~]# /etc/init.d/mysql start
Starting MySQL…… [ OK ]
2、 查看mysql状态
[root@openlab1 ~]# /etc/init.d/mysql status
MySQL running (15371) [ OK ]
3、 查看登陆密码
[root@openlab1 ~]# cat /root/.mysql_secret
# The random password set for the root user at Tue Jul 10 09:46:57 2018 (local time): nrT6srPBje7HOjrb
4、 进行登录
[root@openlab1 ~]# mysql -uroot -pnrT6srPBje7HOjrb
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 1
Server version: 5.6.27-enterprise-commercial-advanced

Copyright (c) 2000, 2015, 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>
5、 进行修改密码(密码:oracle)
mysql> set password=password(‘oracle’) ;
Query OK, 0 rows affected (0.01 sec)
6、使用mysql数据库
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
7、查看表
mysql> show tables;
+—————————+
| Tables_in_mysql |
+—————————+
| columns_priv |
| db |
| event |
| func |
| general_log |
| help_category |
| help_keyword |
| help_relation |
| help_topic |
| innodb_index_stats |
| innodb_table_stats |
| ndb_binlog_index |
| plugin |
| proc |
| procs_priv |
| proxies_priv |
| 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 |
+—————————+
28 rows in set (0.01 sec)
8.查询登录用户
mysql> select user,host,password from mysql.user;
+——+———–+——————————————-+
| user | host | password |
+——+———–+——————————————-+
| root | localhost | *2447D497B9A6A15F2776055CB2D1E9F86758182F |
| root | openlab1 | *AF18C8ADC7E7EE154379E61F02E85E6BA90F63D9 |
| root | 127.0.0.1 | *AF18C8ADC7E7EE154379E61F02E85E6BA90F63D9 |
| root | ::1 | *AF18C8ADC7E7EE154379E61F02E85E6BA90F63D9 |
+——+———–+——————————————-+
4 rows in set (0.00 sec)
9、添加远程连接物理主机
mysql> grant all privileges on . to ‘root’@’172.16.50.222’ identified by ‘oracle’;
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.01 sec)
这里写图片描述
10、删除一个物理主机
mysql> select user,host,password frm mysql.user;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘mysql.user’ at line 1
mysql> select user,host,password from mysql.user;
+——+—————+——————————————-+
| user | host | password |
+——+—————+——————————————-+
| root | localhost | *2447D497B9A6A15F2776055CB2D1E9F86758182F |
| root | openlab1 | *AF18C8ADC7E7EE154379E61F02E85E6BA90F63D9 |
| root | 127.0.0.1 | *AF18C8ADC7E7EE154379E61F02E85E6BA90F63D9 |
| root | ::1 | *AF18C8ADC7E7EE154379E61F02E85E6BA90F63D9 |
| root | 172.16.50.20 | *2447D497B9A6A15F2776055CB2D1E9F86758182F |
| root | 172.16.50.222 | *2447D497B9A6A15F2776055CB2D1E9F86758182F |
+——+—————+——————————————-+
6 rows in set (0.00 sec)

mysql> delete from mysql.user where host=’172.16.50.222’;
Query OK, 1 row affected (0.00 sec)

mysql> select user,host,password from mysql.user;
+——+————–+——————————————-+
| user | host | password |
+——+————–+——————————————-+
| root | localhost | *2447D497B9A6A15F2776055CB2D1E9F86758182F |
| root | openlab1 | *AF18C8ADC7E7EE154379E61F02E85E6BA90F63D9 |
| root | 127.0.0.1 | *AF18C8ADC7E7EE154379E61F02E85E6BA90F63D9 |
| root | ::1 | *AF18C8ADC7E7EE154379E61F02E85E6BA90F63D9 |
| root | 172.16.50.20 | *2447D497B9A6A15F2776055CB2D1E9F86758182F |
+——+————–+——————————————-+
5 rows in set (0.00 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
这里写图片描述
11、所有的主机都可以连接
mysql> grant all privileges on . to ‘root’@’%’ identified by ‘oracle’;
Query OK, 0 rows affected (0.00 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)

mysql> select user,host,password from mysql.user;
+——+————–+——————————————-+
| user | host | password |
+——+————–+——————————————-+
| root | localhost | *2447D497B9A6A15F2776055CB2D1E9F86758182F |
| root | openlab1 | *AF18C8ADC7E7EE154379E61F02E85E6BA90F63D9 |
| root | 127.0.0.1 | *AF18C8ADC7E7EE154379E61F02E85E6BA90F63D9 |
| root | ::1 | *AF18C8ADC7E7EE154379E61F02E85E6BA90F63D9 |
| root | 172.16.50.20 | *2447D497B9A6A15F2776055CB2D1E9F86758182F |
| root | % | *2447D497B9A6A15F2776055CB2D1E9F86758182F |
+——+————–+——————————————-+
6 rows in set (0.00 sec)
这里写图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值