mysql
文章平均质量分 84
罗兴华-永远的领略
人生要一丝不苟,要稳稳当当
展开
-
关于mysql不能查询中文需修改默认字符集
1.找到mysql的配置文件,我的在linux下的/etc/my.cnf2.修改其中的三处,没有的就添加写进去。[client]default-character-set=utf8[mysqld]## Remove leading # and set to the amount of RAM for the most important data# cache in MySQL. Start at 70% of total RAM for dedicated server, else 1原创 2021-07-08 16:37:15 · 219 阅读 · 0 评论 -
linux下 mysql用户的管理
一、root用户密码的维护: 由于安装MySQL完后,MySQL会自动提供一个不带密码的root用户,为了安全起见给root设置密码:#mysqladmin -u root password 123(123为密码,也可以写成:'123'或"123") ; 设置密码后登入时就不能直接输入mysql了,必须跟些参数了,如下: [root@localhost ~]# mysql -u root -p(-u 后跟登入的用户名,-p 提示要...原创 2021-05-27 15:12:45 · 93 阅读 · 0 评论 -
centos7.2下安装mysql5.7,使用rpm包安装
0、环境本文操作系统: CentOS 7.2.1511 x86_64MySQL 版本: 5.7.161、卸载系统自带的 mariadb-lib[root@centos-linux ~]# rpm -qa|grep mariadbmariadb-libs-5.5.44-2.el7.centos.x86_64[root@centos-linux ~]# rpm -e mariadb-lib...转载 2018-11-14 20:08:06 · 115 阅读 · 0 评论 -
ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
https://blog.csdn.net/Hello_World_QWP/article/details/79551789关于这个问题是在 《 基于MySQL Yum存储库在Linux-7.2上安装MySQL-5.7.21数据库服务(实战篇) 》 时遇到的问题,这是 mysql 初始化时,使用临时密码,修改自定义密码时,由于自定义密码比较简单,就出现了不符合密码策略的问题。密码策略...转载 2019-03-06 19:33:20 · 8024 阅读 · 0 评论