我用cmd改密碼為123456為什么不對?
首先需要登錄mysql
mysql -u root -p密碼;-------------------------登錄mysql
grant all privileges on *.* to 'grey'@'%' identified by '123456'; 創(chuàng)建 grey用戶,密碼為123456
flush privileges;-------------------刷新權(quán)限生效
create database users;---------------------------創(chuàng)建數(shù)據(jù)庫 users
create table dept (id int,name varchar(10))----------------------------創(chuàng)建表 dept,當(dāng)然,表的字段你可以自己定制,我只是舉個例子