MySQL给新建用户并赋予权限最简单的方法
网络编程 2021-07-05 14:37www.168986.cn编程入门
在本篇文章里长沙网络推广给大家整理的是一篇关于MySQL给新建用户并赋予权限最简单的方法,需要的朋友们参考下。
创建一个用户:
create user 'oukele'@'%' identified by 'oukele';
提示狼蚁网站SEO优化所列出的信息的话,得刷新一下权限表
The MySQL server is running with the --skip-grant-tables option so it cannot execute this st...
步骤如下:
扩展学习
mysql 新建用户并赋予远程访问权限
[root@demo /]# mysql -u root -p #登录服务器数据库
Enter password:123xxx
#1.创建一个新用户 testuser 密码为 testuserpass
CREATE USER 'testuser'@'localhost' IDENTIFIED BY 'testuserpass';
#2.创建数据库testDB
create database testDB;
#3.执行命令为testuser用户添加使用testDB权限
grant all privileges on testDB.* to testuser@localhost identified by 'testuserpass';
#4.执行命令,为testuser用户添加远程访问权限
GRANT ALL PRIVILEGES ON testDB.* TO 'testuser'@'%' IDENTIFIED BY 'testuserpass' WITH GRANT OPTION;
#5.刷新权限表
flush privileges;
以上就是本次知识点的全部内容,更多相关知识点可以在下方相关文章里查找。
编程语言
- 机械手焊接机器人编程 机械手焊接设备编程
- vb数据库编程实例,vb做数据库
- tiobe世界编程语言排行榜,全球编程语言排行
- 成都java编程培训 成都it编程培训中心
- 编程基础培训,编程基础知识培训
- flash游戏编程基础教程,flash游戏开发教程
- 不会英语能学编程吗 不会英语可以学程序员吗
- 爱心代码编程C语言 爱心代码编程c语言公式
- c语言编程学习入门 c语言编程快速入门
- 西门子plc编程培训 西门子plc编程培训班
- 哪里可以学编程 台州哪里可以学编程
- 少儿编程哪个好 少儿编程哪个品牌好
- 编程是什么意思,图形编程是什么意思
- c语言编程软件下载,c语言编程软件在哪下载
- java编程软件下载,java编程下载手机版
- ug编程培训学校,ug编程培训教程