MYSQL

MYSQL 添加用户

使用root用户登录:#mysql -uroot -p #密码为空

添加用户:# GRANT USAGE ON *.* TO 'cloud'@'localhost' IDENTIFIED BY 'cloud' WITH GRANT OPTION;

使用cloud用户登录:#mysql -ucloud -pcloud

 

配置MYSQL局域网访问

# grant all privileges on *.* to cloud@"%" identified by 'cloud' with grant option;

# flush privileges;

 

posted @ 2015-12-24 18:05  hotbaby  阅读(111)  评论(0编辑  收藏  举报