mysql常用命令
创建用户并授权
创建一个数据库nacos(规定字符集utf-8) create database if not exists nacos default charset utf8 collate utf8_general_ci; 创建一个nacos的用户 create user 'nacos'@'%' identified by 'xxxxxxxx'; 把nacos数据库的所有权限授权给nacos用户 grant all privileges on 'nacos'.* to 'nacos'@'%'; 刷新权限 flush privileges; 查看用户权限 show grants for nacos;
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步