MySQL安装
yum -y install mariadb-server mariadb
$ systemctl start mariadb # 启动
$ systemctl enable mariadb # 开机启动
$ mysql_secure_installation # 安全配置
登录:
$ mysql -u root -p1qaz3edc
show databases;
exit
create user abyss@'192.168...' identified by '1qaz';
grant all privileges on abyss_d.abyss_t to abyss@'192.168....';
SET PASSWORD FOR 'abyss'@'192.168....' = PASSWORD("1234")
drop user 'username'@'host'
create user 'abyss'@'localhost' identified by '1qaz';
grant all privileges on abyss_d.* to 'abyss'@'localhost';
请关注:
微信公众号:生物信息分析学习(swxxfxxx)
个人网站:http://cospure.cn/blog; http://undef.cn
博客园:https://www.cnblogs.com/abysw
posted on 2021-05-21 09:46 Yuan-SW-F(abysw) 阅读(38) 评论(0) 编辑 收藏 举报