记录一下自己安装时遇到的问题和参考网站
1.安装命令
参见网址:https://blog.csdn.net/huludan/article/details/65443869
2.安装完成
查看版本:mysql –V
开始mysql:mysql –u root –p
3.出现错误:ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
解决方法:sudo /etc/init.d/mysql start or sudo /etc/init.d/mysql restart
参考网址:https://stackoverflow.com/questions/11657829/error-2002-hy000-cant-connect-to-local-mysql-server-through-socket-var-run