[{"createTime":1735734952000,"id":1,"img":"hwy_ms_500_252.jpeg","link":"https://activity.huaweicloud.com/cps.html?fromacct=261f35b6-af54-4511-a2ca-910fa15905d1&utm_source=V1g3MDY4NTY=&utm_medium=cps&utm_campaign=201905","name":"华为云秒杀","status":9,"txt":"华为云38元秒杀","type":1,"updateTime":1735747411000,"userId":3},{"createTime":1736173885000,"id":2,"img":"txy_480_300.png","link":"https://cloud.tencent.com/act/cps/redirect?redirect=1077&cps_key=edb15096bfff75effaaa8c8bb66138bd&from=console","name":"腾讯云秒杀","status":9,"txt":"腾讯云限量秒杀","type":1,"updateTime":1736173885000,"userId":3},{"createTime":1736177492000,"id":3,"img":"aly_251_140.png","link":"https://www.aliyun.com/minisite/goods?userCode=pwp8kmv3","memo":"","name":"阿里云","status":9,"txt":"阿里云2折起","type":1,"updateTime":1736177492000,"userId":3},{"createTime":1735660800000,"id":4,"img":"vultr_560_300.png","link":"https://www.vultr.com/?ref=9603742-8H","name":"Vultr","status":9,"txt":"Vultr送$100","type":1,"updateTime":1735660800000,"userId":3},{"createTime":1735660800000,"id":5,"img":"jdy_663_320.jpg","link":"https://3.cn/2ay1-e5t","name":"京东云","status":9,"txt":"京东云特惠专区","type":1,"updateTime":1735660800000,"userId":3},{"createTime":1735660800000,"id":6,"img":"new_ads.png","link":"https://www.iodraw.com/ads","name":"发布广告","status":9,"txt":"发布广告","type":1,"updateTime":1735660800000,"userId":3},{"createTime":1735660800000,"id":7,"img":"yun_910_50.png","link":"https://activity.huaweicloud.com/discount_area_v5/index.html?fromacct=261f35b6-af54-4511-a2ca-910fa15905d1&utm_source=aXhpYW95YW5nOA===&utm_medium=cps&utm_campaign=201905","name":"底部","status":9,"txt":"高性能云服务器2折起","type":2,"updateTime":1735660800000,"userId":3}]
当你遇到下图这个错误时,是由于SQLyog在8.0以上版本采用了新的加密方式。
解决办法:
win + R打开 , 输入cmd,打开命令行窗口,
然后连接你的SQLyog版本的服务器,
mysql -uroot -P3306 -p
注意:-P是要大写,-P表示你的版本的端口号,一般默认是3306,或者如果你更改了,就输入你更改的端口号,我这里更改端口号为13306,然后输入安装时的密码。
或者当你的电脑只下载了SQLyog的一个版本,可以按照下面的输入:输入密码后会直接连接到服务器。
mysql -uroot -p
注意:假如你连接服务器时出现下面的报错:
是因为服务器未启动:
此时可以右击电脑:
点击管理,找到服务,点击启动,然后就可以启动mysql80服务器了。
启动后回到cmd命令窗口,
还是按上面的
mysql -uroot -p
假如你的电脑只安装了一个SQL版本,就输入上面的语句,输入密码,连接服务器,连接成功是下面的界面:
然后输入
USE mysql;
会显示Database changed , 再输入:
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'xxxxxx'
; (xxxx是你的登陆密码)
再输入
FLUSH PRIVILEGES;
就可以了。
再次连接,发现连接成功了。