Spark之takeOrdered,取前几个数据

牛客多校+cf+华为

  返回  

Can‘t find mysqld.sock: Can‘t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.s

2021/8/20 18:22:50 浏览:

mysql使用遇到异常

Can't find mysqld.sock: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 “No such file or directory”)

卸载mysql

sudo service mysql stop
sudo apt-get --purge remove "mysql*"
sudo rm -rf /etc/mysql/ 

参考:https://stackoverflow.com/questions/45267036/cant-find-mysqld-sock-cant-connect-to-local-mysql-server-through-socket-var

安装mysql

sudo apt-get update
sudo apt-get upgrade  

sudo apt-get install mysql-server
sudo apt-get install mysql-client
sudo apt-get install libmysqlclient-dev

参考:https://www.cnblogs.com/haxianhe/p/9271088.html

配置mysql

https://blog.csdn.net/qq_37598011/article/details/93489404

mysql root用户密码初始化异常

ERROR1698(28000):Access denied for user root@localhost

解决方案:https://www.cnblogs.com/cpl9412290130/p/9583868.html

联系我们

如果您对我们的服务有兴趣,请及时和我们联系!

服务热线:18288888888
座机:18288888888
传真:
邮箱:888888@qq.com
地址:郑州市文化路红专路93号