随笔分类 - mysql
摘要:5.7.27版本更新语法 use mysql; UPDATE mysql.user SET authentication_string=PASSWORD('passwd') where USER='root'; flush privileges; (刷新权限) select * from mysql
阅读全文
摘要:grant select on *.* to 'username'; 赋予查询权限 grant all privileges on *.* to 'username' @"%" identified by "123" 赋予所有权限
阅读全文
摘要:set password for 'username' =password ('PW'); commit;
阅读全文
摘要:CREATE USER '用户名' IDENTIFIED BY '密码'; 如:CREATE USER 'kfcx' IDENTIFIED BY 'kfcx123'; CREATE USER 'user'@'%' IDENTIFIED BY 'RJxZz6yh5im'; (创建用户及密码) gran
阅读全文
摘要:alter table 表名 modify column 表字段 类型(长度); 如:alter table cs_nssb_fbdz modify column dzbdm varchar(50); 将表 table cs_nssb_fbdz 的 dzbdm 字段调整成长度50 char 定义固定
阅读全文
摘要:下载 安装包: wget http://dev.MySQL.com/get/Downloads/MySQL-5.7/mysql-5.7.11-Linux-glibc2.5-x86_64.tar.gz (如若行不通,可试下个地址) wget --no-check-certificate 'http:/
阅读全文

浙公网安备 33010602011771号