mysql [...] 替换为 ... mysql -u [username] -p //回车后 [password] use mysql create user '[username]'@'localhost' identified by '[password]' flush privileges create database [databasename]; //创建数据库 grant all privileges on [databasename].* to [username]@localhost identified by '[password]' flush privileges mysql -u [username] - p //登录
myql 建用户与库
最新推荐文章于 2025-03-20 14:38:05 发布