Ubuntu 忘记 phpMyAdmin 登录密码

当忘记Ubuntu上phpMyAdmin的登录密码时,可以通过查找my.cnf文件,跳过后重新设置MySQL密码,重启服务并刷新权限来解决。详细步骤包括定位my.cnf文件,编辑配置文件,设置新密码,正常登录web页面,并在完成密码修改后恢复配置文件。
摘要由CSDN通过智能技术生成

Ubuntu 忘记 phpMyAdmin 登录密码

关于phpMyAdmin

phpMyAdmin is a free software tool written in PHP, intended to handle the administration of MySQL over the Web. phpMyAdmin supports a wide range of operations on MySQL and MariaDB. Frequently used operations (managing databases, tables, columns, relations, indexes, users, permissions, etc) can be performed via the user interface, while you still have the ability to directly execute any SQL statement.

0X00 找到my.cnf文件

登录ubuntu系统,找到文件:my.cnf,一般来说文件的位置为:/etc/mysql/my.cnf,如不存在,建议在系统直接查找locate my.cnf | grep cnf

root@ubuntu:/# locate my.cnf | grep cnf
/etc/mysql/my.cnf

0x01 跳过

使用vim /etc/mysql/my.cnf[mysqld]目录下加上一句skip-grant-tables,使用键盘ESC退出,然后输入wq保存!

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值