当前位置:网站首页>Linux 创建mysql数据库并创建账号密码
Linux 创建mysql数据库并创建账号密码
2022-07-31 08:36:00 【siner.li】
Linux 创建数据库并创建账号和密码!!!
1. 建库
create database (库名);
2. 查看
show databases;
3. 创建数据库用户密码
GRANT ALL PRIVILEGES ON 数据库名称.* TO '用户名'@'授权返回(localhost/%)' IDENTIFIED BY '数据库密码';
4. 刷新权限
flush privileges;
边栏推荐
- 如何使用mysql binlog 恢复数据
- 【黄啊码】MySQL入门—3、我用select ,老板直接赶我坐火车回家去,买的还是站票
- Job hunting product manager [9] How to write a good resume in job hunting season?
- I advise those juniors and juniors who have just started working: If you want to enter a big factory, you must master these core skills!Complete Learning Route!
- 刷题《剑指Offer》day05
- MUI获取相机权限
- google搜索技巧——程序员推荐
- mysql安装教程【安装版】
- 【C#】判断字符串中是否包含指定字符或字符串(Contains/IndexOf)
- Modular specifications
猜你喜欢
Spark 在 Yarn 上运行 Spark 应用程序
[Yellow ah code] Introduction to MySQL - 3. I use select, the boss directly drives me to take the train home, and I still buy a station ticket
【问题记录】TypeError: eval() arg 1 must be a string, bytes or code object
Ubuntu22.04安装mysql
《如何戒掉坏习惯》读书笔记
[Cloud native] Introduction and use of Feign of microservices
【云原生与5G】微服务加持5G核心网
深度理解递归,手撕经典递归问题(汉诺塔,青蛙跳台阶),保姆级教学。
Define event types in Splunk Web
【Unity】编辑器扩展-02-拓展Hierarchy视图
随机推荐
MySQL中InnoDB的多版本并发控制(MVCC)的实现
[Yellow ah code] Introduction to MySQL - 3. I use select, the boss directly drives me to take the train home, and I still buy a station ticket
SSM framework explanation (the most detailed article in history)
[转载] Virtual Studio 让系统找到需要的头文件和库
【Unity】编辑器扩展-01-拓展Project视图
SQLAlchemy使用教程
How to restore data using mysql binlog
六、MFC文档类(单文档和多文档)
云服务器部署 Web 项目
SSM框架简单介绍
ecshop安装的时候提示不支持JPEG格式
【Unity】编辑器扩展-03-拓展Inspector视图
科目三:右转弯
JSP exception对象简介说明
期刊会议排名、信息检索网站推荐以及IEEE Latex模板下载
【MySQL功法】第2话 · 数据库与数据表的基本操作
SQL statement knowledge
Vue项目通过node连接MySQL数据库并实现增删改查操作
第八章 、接口
0730~Mysql优化