注意用户'root'@'localhost'拒绝访问(使用密码:NO)

时间:2016-08-20 08:34:06

标签: java mysql sql-server mysql-workbench sqlexception

我正在使用MySQL Workbench,我正在尝试以“root”身份连接到MySQL服务器。服务器已启动并正在运行,并且与MySQL的连接已成功。但它说advised我不明白什么是错的。这个错误是什么?我该如何纠正这个问题?我用于root @ localhost的密码是“root”。堆栈跟踪如下: -

2016-08-20 13:45:24 - Starting server...

FROM DESKTOP-H68H24J.err:
2016-08-20T08:15:26  0  Warning  TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2016-08-20T08:15:26  0  Warning  'NO_ZERO_DATE', 'NO_ZERO_IN_DATE' and 'ERROR_FOR_DIVISION_BY_ZERO' sql modes should be used with strict mode. They will be merged with strict mode in a future release.
2016-08-20T08:15:26  0  Note  C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe (mysqld 5.7.13-log) starting as process 10280 ...
2016-08-20T08:15:26  0  Note  InnoDB: Mutexes and rw_locks use Windows interlocked functions
2016-08-20T08:15:26  0  Note  InnoDB: Uses event mutexes
2016-08-20T08:15:26  0  Note  InnoDB: _mm_lfence() and _mm_sfence() are used for memory barrier
2016-08-20T08:15:26  0  Note  InnoDB: Compressed tables use zlib 1.2.3
2016-08-20T08:15:26  0  Note  InnoDB: Adjusting innodb_buffer_pool_instances from 8 to 1 since innodb_buffer_pool_size is less than 1024 MiB
2016-08-20T08:15:26  0  Note  InnoDB: Number of pools: 1
2016-08-20T08:15:26  0  Note  InnoDB: Not using CPU crc32 instructions
2016-08-20T08:15:26  0  Note  InnoDB: Initializing buffer pool, total size = 8M, instances = 1, chunk size = 8M
2016-08-20T08:15:26  0  Note  InnoDB: Completed initialization of buffer pool
2016-08-20T08:15:26  0  Note  InnoDB: Highest supported file format is Barracuda.
2016-08-20T08:15:27  0  Note  InnoDB: Creating shared tablespace for temporary tables
2016-08-20T08:15:27  0  Note  InnoDB: Setting file '.\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2016-08-20T08:15:27  0  Note  InnoDB: File '.\ibtmp1' size is now 12 MB.
2016-08-20T08:15:27  0  Note  InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
2016-08-20T08:15:27  0  Note  InnoDB: 32 non-redo rollback segment(s) are active.
2016-08-20T08:15:27  0  Note  InnoDB: Waiting for purge to start
2016-08-20T08:15:27  0  Note  InnoDB: 5.7.13 started; log sequence number 10857177
2016-08-20T08:15:27  0  Note  InnoDB: Loading buffer pool(s) from C:\ProgramData\MySQL\MySQL Server 5.7\Data\ib_buffer_pool
2016-08-20T08:15:27  0  Note  Plugin 'FEDERATED' is disabled.
2016-08-20T08:15:27  0  Warning  Failed to set up SSL because of the following SSL library error: SSL context is not usable without certificate and private key
2016-08-20T08:15:27  0  Note  Server hostname (bind-address): '*'; port: 3306
2016-08-20T08:15:27  0  Note  IPv6 is available.
2016-08-20T08:15:27  0  Note    - '::' resolves to '::';
2016-08-20T08:15:27  0  Note  Server socket created on IP: '::'.
2016-08-20T08:15:27  0  Note  InnoDB: Buffer pool(s) load completed at 160820 13:45:27
2016-08-20T08:15:27  0  Note  Event Scheduler: Loaded 0 events
2016-08-20T08:15:27  0  Note  C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe: ready for connections.
      Version: '5.7.13-log'  socket: ''  port: 3306  MySQL Community Server (GPL)
**2016-08-20T08:15:28  2  Note  Access denied for user 'root'@'localhost' (using password: NO)**
2016-08-20 13:45:31 - Server start done.
2016-08-20 13:45:31 - Checking server status...
2016-08-20 13:45:31 - Trying to connect to MySQL...
2016-08-20 13:45:31 - Connection succeeded
2016-08-20 13:45:31 - Assuming server is running
2016-08-20 13:45:31 - Checking server status...
2016-08-20 13:45:31 - Trying to connect to MySQL...
2016-08-20 13:45:31 - Connection succeeded
2016-08-20 13:45:31 - Assuming server is running
2016-08-20 13:45:31 - Server is running
2016-08-20 13:45:31 - Server is running
2016-08-20 13:45:31 - Server is running

0 个答案:

没有答案