我在NetBeans中遇到此错误:
我要启动MySQL并发生此错误:
拒绝用户'root @ localhost'的访问(使用密码:是)
我重新安装了MySql。
2019-06-16T21:01:02.888455Z 0 [System] [MY-010116] [Server] C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe (mysqld 8.0.16) starting as process 214636
2019-06-16T21:01:04.123405Z 0 [Warning] [MY-010091] [Server] Can't create test file C:\Program Files\MySQL\MySQL Server 8.0\data\DESKTOP-SCTJFSG.lower-test
2019-06-16T21:01:04.123646Z 0 [Warning] [MY-010091] [Server] Can't create test file C:\Program Files\MySQL\MySQL Server 8.0\data\DESKTOP-SCTJFSG.lower-test
2019-06-16T21:01:04.206697Z 0 [ERROR] [MY-013276] [Server] Failed to set datadir to 'C:\Program Files\MySQL\MySQL Server 8.0\data\' (OS errno: 2 - No such file or directory)
2019-06-16T21:01:04.446768Z 0 [ERROR] [MY-010119] [Server] Aborting
2019-06-16T21:01:04.794921Z 0 [System] [MY-010910] [Server] C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe: Shutdown complete (mysqld 8.0.16) MySQL Community Server - GPL.