mysql-5.7.28-winx64 Windows

#mysql-5.7.28-winx64


hushui@Hushui MINGW64 /d/git-yl/Win/mysql-5.7.28-winx64
$ ls -l bin/
total 423216
-rwxr-xr-x 1 hushui 197121     15656  9月 27  2019 echo.exe*
-rwxr-xr-x 1 hushui 197121   5471544  9月 27  2019 innochecksum.exe*
-rwxr-xr-x 1 hushui 197121   1847088  9月 27  2019 libmecab.dll*
-rwxr-xr-x 1 hushui 197121     82744  9月 27  2019 lz4_decompress.exe*
-rwxr-xr-x 1 hushui 197121   5358400  9月 27  2019 my_print_defaults.exe*
-rwxr-xr-x 1 hushui 197121   5604664  9月 27  2019 myisam_ftdump.exe*
-rwxr-xr-x 1 hushui 197121   5709104  9月 27  2019 myisamchk.exe*
-rwxr-xr-x 1 hushui 197121   3761456  9月 27  2019 myisamlog.exe*
-rwxr-xr-x 1 hushui 197121   5625136  9月 27  2019 myisampack.exe*
-rwxr-xr-x 1 hushui 197121   6187304  9月 27  2019 mysql.exe*
-rwxr-xr-x 1 hushui 197121  22711632  9月 27  2019 mysql_client_test_embedded.exe*
-rwxr-xr-x 1 hushui 197121      7687  9月 27  2019 mysql_config.pl*
-rwxr-xr-x 1 hushui 197121   5374792  9月 27  2019 mysql_config_editor.exe*
-rwxr-xr-x 1 hushui 197121  22341432  9月 27  2019 mysql_embedded.exe*
-rwxr-xr-x 1 hushui 197121   5369656  9月 27  2019 mysql_plugin.exe*
-rwxr-xr-x 1 hushui 197121   6079824  9月 27  2019 mysql_secure_installation.exe*
-rwxr-xr-x 1 hushui 197121   5419336  9月 27  2019 mysql_ssl_rsa_setup.exe*
-rwxr-xr-x 1 hushui 197121   3503944  9月 27  2019 mysql_tzinfo_to_sql.exe*
-rwxr-xr-x 1 hushui 197121   6762296  9月 27  2019 mysql_upgrade.exe*
-rwxr-xr-x 1 hushui 197121   6091568  9月 27  2019 mysqladmin.exe*
-rwxr-xr-x 1 hushui 197121   6325048  9月 27  2019 mysqlbinlog.exe*
-rwxr-xr-x 1 hushui 197121   6115632  9月 27  2019 mysqlcheck.exe*
-rwxr-xr-x 1 hushui 197121  41743144  9月 27  2019 mysqld.exe*
-rw-r--r-- 1 hushui 197121 179744768  9月 27  2019 mysqld.pdb
-rwxr-xr-x 1 hushui 197121     28339  9月 27  2019 mysqld_multi.pl*
-rwxr-xr-x 1 hushui 197121   6150960  9月 27  2019 mysqldump.exe*
-rwxr-xr-x 1 hushui 197121      8082  9月 27  2019 mysqldumpslow.pl*
-rwxr-xr-x 1 hushui 197121   6083896  9月 27  2019 mysqlimport.exe*
-rwxr-xr-x 1 hushui 197121   6698288  9月 27  2019 mysqlpump.exe*
-rwxr-xr-x 1 hushui 197121   6082352  9月 27  2019 mysqlshow.exe*
-rwxr-xr-x 1 hushui 197121   6100272  9月 27  2019 mysqlslap.exe*
-rwxr-xr-x 1 hushui 197121  22505792  9月 27  2019 mysqltest_embedded.exe*
-rwxr-xr-x 1 hushui 197121   7973680  9月 27  2019 mysqlxtest.exe*
-rwxr-xr-x 1 hushui 197121   5504296  9月 27  2019 perror.exe*
-rwxr-xr-x 1 hushui 197121   3513648  9月 27  2019 replace.exe*
-rwxr-xr-x 1 hushui 197121   5356848  9月 27  2019 resolveip.exe*
-rwxr-xr-x 1 hushui 197121     45888  9月 27  2019 zlib_decompress.exe*

hushui@Hushui MINGW64 /d/git-yl/Win/mysql-5.7.28-winx64
$ ./bin/mysqld --initialize-insecure --console
mysqld: Could not create or access the registry key needed for the MySQL application
to log to the Windows EventLog. Run the application with sufficient
privileges once to create the key, add the key manually, or turn off
logging for that application.
2020-06-15T09:25:19.364385Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2020-06-15T09:25:19.365484Z 0 [ERROR] Cannot open Windows EventLog; check privileges, or start server with --log_syslog=0
2020-06-15T09:25:19.505733Z 0 [Warning] InnoDB: New log files created, LSN=45790
2020-06-15T09:25:19.537577Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.
2020-06-15T09:25:19.606821Z 0 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: 21836e58-aeea-11ea-993c-c03eba460d3d.
2020-06-15T09:25:19.613606Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
2020-06-15T09:25:20.174297Z 0 [Warning] CA certificate ca.pem is self signed.
2020-06-15T09:25:20.517594Z 1 [Warning] root@localhost is created with an empty password ! Please consider switching off the --initialize-insecure option.

hushui@Hushui MINGW64 /d/git-yl/Win/mysql-5.7.28-winx64
$ ./bin/mysqld  --console
mysqld: Could not create or access the registry key needed for the MySQL application
to log to the Windows EventLog. Run the application with sufficient
privileges once to create the key, add the key manually, or turn off
logging for that application.
2020-06-15T09:25:59.064073Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2020-06-15T09:25:59.064142Z 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled
2020-06-15T09:25:59.064367Z 0 [ERROR] Cannot open Windows EventLog; check privileges, or start server with --log_syslog=0
2020-06-15T09:25:59.064376Z 0 [Note] D:\git-yl\Win\mysql-5.7.28-winx64\bin\mysqld.exe (mysqld 5.7.28) starting as process 15740 ...
2020-06-15T09:25:59.068206Z 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2020-06-15T09:25:59.068215Z 0 [Note] InnoDB: Uses event mutexes
2020-06-15T09:25:59.068218Z 0 [Note] InnoDB: _mm_lfence() and _mm_sfence() are used for memory barrier
2020-06-15T09:25:59.068221Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-06-15T09:25:59.068433Z 0 [Note] InnoDB: Number of pools: 1
2020-06-15T09:25:59.068525Z 0 [Note] InnoDB: Not using CPU crc32 instructions
2020-06-15T09:25:59.070407Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2020-06-15T09:25:59.074370Z 0 [Note] InnoDB: Completed initialization of buffer pool
2020-06-15T09:25:59.100318Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
2020-06-15T09:25:59.151814Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2020-06-15T09:25:59.152031Z 0 [Note] InnoDB: Setting file '.\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2020-06-15T09:25:59.160630Z 0 [Note] InnoDB: File '.\ibtmp1' size is now 12 MB.
2020-06-15T09:25:59.169222Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
2020-06-15T09:25:59.169233Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
2020-06-15T09:25:59.169441Z 0 [Note] InnoDB: Waiting for purge to start
2020-06-15T09:25:59.220975Z 0 [Note] InnoDB: 5.7.28 started; log sequence number 2628227
2020-06-15T09:25:59.221238Z 0 [Note] Plugin 'FEDERATED' is disabled.
2020-06-15T09:25:59.221278Z 0 [Note] InnoDB: Loading buffer pool(s) from D:\git-yl\Win\mysql-5.7.28-winx64\data\ib_buffer_pool
2020-06-15T09:25:59.230609Z 0 [Note] Found ca.pem, server-cert.pem and server-key.pem in data directory. Trying to enable SSL support using them.
2020-06-15T09:25:59.230619Z 0 [Note] Skipping generation of SSL certificates as certificate files are present in data directory.
2020-06-15T09:25:59.231553Z 0 [Warning] CA certificate ca.pem is self signed.
2020-06-15T09:25:59.231635Z 0 [Note] Skipping generation of RSA key pair as key files are present in data directory.
2020-06-15T09:25:59.233165Z 0 [Note] Server hostname (bind-address): '*'; port: 3306
2020-06-15T09:25:59.233314Z 0 [Note] InnoDB: Buffer pool(s) load completed at 200615 17:25:59
2020-06-15T09:25:59.233531Z 0 [Note] IPv6 is available.
2020-06-15T09:25:59.233547Z 0 [Note]   - '::' resolves to '::';
2020-06-15T09:25:59.233581Z 0 [Note] Server socket created on IP: '::'.
2020-06-15T09:25:59.275941Z 0 [Note] Event Scheduler: Loaded 0 events
2020-06-15T09:25:59.276052Z 0 [Note] D:\git-yl\Win\mysql-5.7.28-winx64\bin\mysqld.exe: ready for connections.
Version: '5.7.28'  socket: ''  port: 3306  MySQL Community Server (GPL)

 

## mysql client 

 

D:\>cd git-yl

D:\git-yl>cd Win

D:\git-yl\Win>cd mysql-5.7.28-winx64

D:\git-yl\Win\mysql-5.7.28-winx64>dir
 驅動器 D 中的卷是 hushui
 卷的序列號是 6E02-8673

 D:\git-yl\Win\mysql-5.7.28-winx64 的目錄

2020/06/15  17:25    <DIR>          .
2020/06/15  17:25    <DIR>          ..
2019/09/27  17:09    <DIR>          bin
2020/06/15  17:25    <DIR>          data
2019/09/27  17:00    <DIR>          docs
2019/09/27  17:00    <DIR>          include
2019/09/27  17:09    <DIR>          lib
2019/09/27  15:00           279,547 LICENSE
2019/09/27  15:00               587 README
2019/09/27  17:00    <DIR>          share
               2 個文件        280,134 字節
               8 個目錄 377,808,109,568 可用字節

D:\git-yl\Win\mysql-5.7.28-winx64>cd bin

D:\git-yl\Win\mysql-5.7.28-winx64\bin>mysql.exe   -u  root    -p
Enter password:      <<<<<<<<<<<<<<<< empty in first login when mysqld starts with  --initialize-insecure
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.7.28 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> use mysql;
Database changed 
mysql> select  User   from user;
+---------------+
| User          |
+---------------+
| mysql.session |
| mysql.sys     |
| root          |
+---------------+
3 rows in set (0.00 sec)

mysql> ALTER USER 'root' IDENTIFIED BY '123456';
ERROR 1396 (HY000): Operation ALTER USER failed for 'root'@'%'
mysql> ALTER USER 'root'@'localhost'  IDENTIFIED BY '123456';
Query OK, 0 rows affected (0.00 sec)

mysql> quit
Bye

D:\git-yl\Win\mysql-5.7.28-winx64\bin>mysql.exe   -u  root    -p
Enter password: 123456
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 5
Server version: 5.7.28 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> use mysql
Database changed
mysql> select  User   from user;
+---------------+
| User          |
+---------------+
| mysql.session |
| mysql.sys     |
| root          |
+---------------+
3 rows in set (0.01 sec)

mysql>

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章