(本文虽短,但内容详细)
具体的安装方式(超详细,可直接复制命令运行):https://www.qcloud.com/community/article/321718001489545422
安装完后会出现以下问题(如果是远程连接的话):
问题:SQLSTATE[HY000] [1130] Host '***.**.***.***' is not allowed to connect to this MySQL server
内容这是MYSQL的权限问题
解决方法:
-
进入mysql:mysql -u帐号 -p密码
-
mysql> grant all privileges on *.* to 'root'@'%'identified by 'mypassword123456';
-
mysql> flush privileges;
-
mysql> exit
-
OK