MySQL 5.7安装(linux)
生活随笔
收集整理的這篇文章主要介紹了
MySQL 5.7安装(linux)
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
?https://blog.csdn.net/li_Dijkstra/article/details/79354385
1.找不到初始密碼可以在my.ini中[mysqld] 添加:
skip-grant-tables2.修改MySQL數(shù)據(jù)庫配置文件無密碼登錄后,修改密碼報(bào)錯(cuò):
ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement
3.先執(zhí)行:
flush privileges;4.再執(zhí)行修改密碼命令,可以了:
set password for root@localhost=password('你的密碼');?
配置root遠(yuǎn)程登陸:
use mysql;UPDATE user SET Host='%' WHERE User='root';flush privileges;?
使用sqlyog等工具鏈接,需要開啟原來的身份驗(yàn)證機(jī)制
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'root賬戶密碼';
?
?
?
?
總結(jié)
以上是生活随笔為你收集整理的MySQL 5.7安装(linux)的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: git把本地代码上传(更新)到githu
- 下一篇: Mysql8- Public Key R