摘要:
已知密码,修改密码 mysqladmin -uroot -p'原本密码' password '新密码' 不知密码,修改密码 systemctl stop mysqld # /etc/my.cnf 添加跳过权限表 [mysqld] skip-grant-tables systemctl start m 阅读全文
摘要:
单独执行 mysql -uroot -p -e 'SELECT user,host,authentication_string FROM mysql.user' mysql -uroot -p -e 'SELECT USER()' mysql -uroot -p -e 'SELECT VERSION 阅读全文
摘要:
添加yum文件 tee /etc/yum.repos.d/mysql-community.repo << EOF [mysql-5.7-community] name=MySQL 5.7 Community Server baseurl=https://mirrors.tuna.tsinghua.e 阅读全文