1.数据安全性,容器被删数据也会丢失
2.性能不好
3.资源隔离问题
4.docker的无状态属性
1.排除网络问题
在windos里ping linux服务器的ip地址,检查网络是否通畅,然后再检查linux服务器的网络问题
2.linux里的防火墙是否开启
firewall-cmd --state
iptables -L
service firewalld stop
3.检查下mysq服务是否开启:ps aux|grep mysqld
4.检查端口号是否修改:netstat -anplut|grep mysqld
5.连接的用户是否有授权:grant
6.云服务器的安全组 (如果使用的是云服务的话)
1、查看有哪些存储引擎:show engines
root@sanchuang 21:19 mysql>show engines;
+--------------------+---------+----------------------------------------------------------------+--------------+------+------------+
| Engine | Support | Comment | Transactions | XA | Savepoints |
+--------------------+---------+----------------------------------------------------------------+--------------+------+------------+
| MRG_MYISAM | YES | Collection of identical MyISAM tables | NO | NO | NO |
| CSV | YES | CSV storage engine | NO | NO | NO |
| InnoDB | DEFAULT | Supports transactions, row-level locking, and foreign keys | YES | YES | YES |
| BLACKHOLE | YES | /dev/null storage engine (anything you write to it disappears) | NO | NO | NO |
| MyISAM | YES | MyISAM storage engine | NO | NO | NO |
| PERFORMANCE_SCHEMA | YES | Performance Schema | NO | NO | NO |
| ARCHIVE | YES | Archive storage engine | NO | NO | NO |
| MEMORY | YES | Hash based, stored in memory, useful for temporary tables | NO | NO | NO |
| FEDERATED | NO | Federated MySQL storage engine | NULL | NULL | NULL |
+--------------------+---------+----------------------------------------------------------------+--------------+------+------------+
9 rows in set (0.00 sec
2、常见的存储引擎
1.innodb :支持事务,支持行级别的锁,支持外键
2.MEMORY :适合出报表,不需要永久保存的数据
3.csv: 适合存放csv文件的
4.myisam
1、超级用户root@localhost的密码破解
1.只能在本地登录
2.修改/etc/my.cnf
skip-grant-tables
3.使用另一个管理员账户去修改'root'@'localhost',命令:
alter user 'root'@'localhost' identified by '123456';
2、普通用户密码破解
1.alter user 'liuhongjie'@'%' identified by '123456';
2.使用超级用户登录,直接去修改密码就可以了
3、暴力强行破解密码(什么都不记得了)
1.停止Mysql进程的运行
service mysql stop
2.修改配置文件
vim /etc/my.cnf
[mysqld]
user=mysql #指定启动mysql进程的用户
skip-grant-tables #跳过密码验证
3.启动mysql进程
service mysqld start #启动mysql进程
4.登录mysql,不接密码
mysql -uroot -p
Enter password: #这里直接敲回车
5.登录进去以后
flush pricileges; #刷新权限(会加载原来没有加载的权限表--》用户名和密码所在的表user等)
alter user 'root'@'localhost' by '123456'
set password for 'root'@'localhost'='123456'; #(不是必须执行的)修改密码指定用户'root'@'localhost'