Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我一直在使用以下命令,但它不起作用。
GRANT ALL PRIVILEGES ON *.* TO ROOT@LOCALHOST IDENTIFIED BY "my_password";
您没有(以登录名和用户名的方式)连接到数据库,您需要连接。取决于您访问数据库的方式。在命令行中,你可以使用这个:
mysql -pYourpassword -u username