摘要:
1、MySQL数据库启动报错 IntroductionMySQL is a popular open-source relational database management system that is widely used for web development and other appl 阅读全文
摘要:
一、下载 https://dev.mysql.com/doc/index-other.html 登陆MySQL数据库官网,下载测试库 下载地址:https://github.com/datacharmer/test_db 二、上传解压 [root@mysql soft]# unzip test_db 阅读全文
摘要:
一、导入实验数据 创建数据库 root@localhost) [mysql]> create database dbt3; Query OK, 1 row affected (0.10 sec) 到时sql文件 [root@mysql init.d]# mysql -uroot -p dbt3 </ 阅读全文
摘要:
1、MySQL数据库启动报错 [root@mysql ~]# service mysqld start Starting MySQL. ERROR! The server quit without updating PID file (/mysql3306/data/mysql.pid). 2、排查 阅读全文
摘要:
一、查看存储引擎 (root@localhost) [(none)]> show engines; + + + + + + + | Engine | Support | Comment | Transactions | XA | Savepoints | + + + + + + + | CSV | 阅读全文
摘要:
一、慢查询日志——记录时间是Querytime-Locktime(查询时间-锁等待时间) 1.1、修改my.cnf中slow log的配置 slow_query_log=1 slow_query_log_file=slow.log long_query_time=10 查看 (root@localh 阅读全文
摘要:
一、MySQL权限管理 二、用户管理 创建用户 (root@localhost) [(none)]> create user 'david'@'%' identified by '1234'; Query OK, 0 rows affected (0.01 sec) 删除用户 (root@local 阅读全文
摘要:
一、MySQL读取配置文件的顺序 注意:有时候虽然/etc下有配置文件,但是安装目录下有配置文件,任然会使用安装目录下的配置文件 [root@mysql ~]# mysql --help --verbose | grep my.cnf order of preference, my.cnf, $MY 阅读全文
摘要:
1、MySQl创建用户报错 ERROR 1819 (HY000): Your password does not satisfy the current policy requirements 2、查看密码策略 mysql> SHOW VARIABLES LIKE 'validate_passwor 阅读全文
摘要:
官方文档:https://dev.mysql.com/doc/refman/5.7/en/ https://dev.mysql.com/doc/refman/5.7/en/preface.html 配置mysql标签可以显示当前的库 [mysql] prompt=(\\u@\\h) [\\d]>\\ 阅读全文