Mysql添加用户和数据库
2024-09-02 11:58:00
- 先创建数据库
- 创建用户并赋予一个数据库的所有权限
use mysql;
create database databaseName character set utf8;
grant all privileges on databaseName.* to username@'ip' identified by 'password';
举例:
use mysql;
create database test_db character set utf8;
grant all privileges on test_db.* to testuser@'localhost' identified by '123456';
最新文章
- Web服务及http协议
- ASP.net 验证码(C#) MVC
- 编译原理之lex,yacc学习
- Swift学习笔记六
- 关于NGUI中的自适应和对齐机制
- BIEE11g BI_server Jvm參数调整
- cssLoading效果
- codeforces 798c Mike And Gcd Problem
- hadoop in hue的搭建(基于cdh版本)
- Server Memory Server Configuration Options 服务器内存服务配置选项
- 【php增删改查实例】第二十二节 - 引入百度地图
- windows域控里,属性和字段映射表
- Mysql 获取当天,昨天,本周,本月,上周,上月的起始时间
- How to Enable EPEL Repository for RHEL/CentOS 7.x/6.x/5.x
- Beego 框架学习(一)
- 微信小程序设置底部导航栏目方法
- PAT——1072. 开学寄语(20)
- backtrack渗透测试中常用的命令总结
- 洛谷P4331 [BOI2004] Sequence 数字序列 [左偏树]
- jquery横向手风琴效果2
热门文章
- 路过--<;全世界谁倾听你>;
- Fastjson <;= 1.2.47 远程命令执行漏洞
- shell脚本 set命令
- Redis 管道(pipeline)
- 在阅读众多的blog中,我学到了什么
- windows下注册ocx控件
- 2017 ACM/ICPC Asia Regional Shenyang Online 12 card card card
- java程序中的多线程(转)
- 深入理解Magento - 第五章 Magento资源配置
- Delphi 消息函数 SendMessage函数