Linux各类错误总结

1.Mariadb 5.5.44远程登录MySQL8.0.22出现认证机制出错

mysql -uroot -h mysql-server-ip -p
Enter password: 
ERROR 2059 (HY000): Authentication plugin 'caching_sha2_password' cannot be loaded: /usr/lib64/mysql/plugin/caching_sha2_password.so: cannot open shared object file: No such file or directory
##解决方案,修改root账号的认证方式
alter user 'root'@'%' identified with mysql_native_password by 'password';
flush privileges;

2.xrdp在使用中出现超过再大连接数的问题,在日志文件中出现错误【X server -- no display in range is available】

vim /etc/xardp/sesman.ini
##修改MaxSessions的默认值
MaxSessions=20