密码是:123456
开启mysql指令
mysql -u root -p
cd /usr
[root@localhost usr]# ll
总用量 268
dr-xr-xr-x. 2 root root 49152 3月 11 08:30 bin
drwxr-xr-x. 2 root root 6 4月 11 2018 etc
drwxr-xr-x. 2 root root 6 4月 11 2018 games
drwxr-xr-x. 49 root root 8192 3月 7 10:08 include
dr-xr-xr-x. 43 root root 4096 3月 7 10:04 lib
dr-xr-xr-x. 146 root root 81920 3月 11 08:30 lib64
drwxr-xr-x. 49 root root 12288 3月 7 10:04 libexec
drwxr-xr-x. 14 root root 163 3月 11 08:11 local
drwxr-xr-x 2 root root 54 3月 11 08:27 mysql
dr-xr-xr-x. 2 root root 20480 3月 11 08:30 sbin
drwxr-xr-x. 243 root root 8192 3月 11 08:30 share
drwxr-xr-x. 4 root root 34 3月 6 09:56 src
lrwxrwxrwx. 1 root root 10 3月 6 09:56 tmp -> ../var/tmp
[root@localhost usr]# cd mysql
[root@localhost mysql]# mysql -u root -p
[roo@localhost /]$ cd opt
[roo@localhost opt]$ ll
总用量 629756
drwxr-xr-x. 10 mysql mysql 141 3月 6 16:16 mysql-5.7.26
-rw-r--r--. 1 root root 644869837 3月 4 19:44 mysql-5.7.26-linux-glibc2.12-x86_64.tar.gz
drwxr-xr-x. 2 root root 6 10月 31 2018 rh
[roo@localhost opt]$ cd mysql-5.7.26
[roo@localhost mysql-5.7.26]$ cd bin
[roo@localhost bin]$ ./mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 9
Server version: 5.7.26 MySQL Community Server (GPL)
Copyright (c) 2000, 2019, 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>