参考链接 http://www.cnblogs.com/top5/archive/2010/09/14/1825571.html ******** GRANT ALL ON push.* TO push@localhost IDENTIFIED BY "db.push" push.*       只能操作push数据库 push@localhost      创建用户push 从localhost主机操作 IDENTIFIED BY "db.push"  密码是db…
Linux 下创建 sftp 用户并限定目录 1.创建 sftpUser 用户组 [root@XXX ~]# groupadd sftpUser 2.创建 sftpUser 用户并指定目录 [root@XXX ~]# useradd -d /home/sftpUser -s /sbin/nologin -g sftpUser sftpUser 3.为新用户添加密码 [root@XXX ~]# passwd sftpUser Changing password for user sftpUser.…
update ERROR 1364 (HY000): Field 'ssl_cipher' doesn't have a default value 建议使用GRANT语句进行授权,语句如下: grant all privileges on *.* to root@'%' identified by "root"; --------------------------------------------------- GRANT SELECT,INSERT,UPDATE,DELETE,…
摘自: http://renxiangzyq.iteye.com/blog/763837 update ERROR 1364 (HY000): Field 'ssl_cipher' doesn't have a default value 建议使用GRANT语句进行授权,语句如下: grant all privileges on *.* to root@'%' identified by "root"; -----------------------------------------…
Linux下输入命令: mysql -uroot -proot123 进入mysql后输入: 查看目前有哪些数据库存在:mysql> SHOW DATABASES; 创建数据库:create schema [数据库名称] default character set utf8 collate utf8_general_ci;例子:mysql> create schema estuntest default character set utf8 collate utf8_general_ci;Qu…
前言 From :https://blog.csdn.net/yu12377/article/details/78214336 mysql5.7版本中用户管理与以前版本略有不同,在此记录,以备忘 登陆 [root@ver ~]# mysql -h -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id Server version: S…
1.通过help命令查看grant的用法: CREATE USER 'jeffrey'@'localhost' IDENTIFIED BY 'password'; GRANT ALL ON db1.* TO 'jeffrey'@'localhost'; GRANT SELECT ON db2.invoice TO 'jeffrey'@'localhost'; GRANT USAGE ON *.* TO 'jeffrey'@'localhost' WITH MAX_QUERIES_PER_HOUR…
create user 'lixianming'@'localhost' identified by 'lxm123456'; grant all on art.* to 'lixianming'@'localhost'; flush privileges; service iptables stop  关闭防火墙 关闭防火墙 关闭防火墙 关闭防火墙 你麻痹的…
day58 分组 参考:https://www.cnblogs.com/xp796/p/5262187.html select dept, max(salary) from department group by dept; 从各个部门中挑出最高的薪水. select dept, sum(salary) from department group by dept; 计算各个部门的总薪水. select count(id), edlevel from department group by edl…
进入超级管理员,运行下面命令 Window下创建数据库.表空间,用户,插入数据等操作 -- 01 创建表空间 -- 注意表空间的路径 依据实际安装环境进行调整 CREATE TABLESPACE ts_myscott LOGGING DATAFILE 'F:/app/to-to/oradata/orcl/ts_myscott.dbf' SIZE 10M EXTENT MANAGEMENT LOCAL; CREATE TABLESPACE ts_myscott2 LOGGING DATAFILE…