myql 建用户与库

来源:互联网 发布:量子通信网络计划 编辑:程序博客网 时间:2024/05/12 23:56
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 //登录
0 0
原创粉丝点击