Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Suddenly can't access MySQL [SOLVED]
- Date: Fri, 19 Jan 2007 11:13:07 +0900
- From: Dave M G <martin@example.com>
- Subject: Re: [tlug] Suddenly can't access MySQL [SOLVED]
- References: <4563C8FC.70101@example.com> <4563CC2D.1020701@example.com> <87slgckomi.fsf@example.com> <4563E7C2.3070209@example.com> <45647341.9050109@example.com>
- User-agent: Thunderbird 1.5.0.9 (X11/20070104)
TLUG,
Here's another problem recently solved. Not by updating to Edgy, though. Just by finally finding the right info on the web.
This is how I was able to reset my root password for MySQL and regain full control over it again. Hope this info is useful to anyone facing similar issues.
To Reset root password (Works on Ubuntu Edgy, 6.10, and MySQL 5.0):
1. Open a command line and stop the MySQL Server
$ sudo killall mysqld
2. Start it again, and Login, with the following parameters:
$ sudo mysqld --skip-grant-tables --user=root
3. Update the password for the root account:
mysql> USE mysql UPDATE user SET password=password("newpassword") WHERE user="root";
4. Hopefully you should get the following output:
Query OK, 2 rows affected (0.04 sec) Rows matched: 2 Changed: 2 Warnings: 0
5. Flush privileges:
mysql> FLUSH PRIVILEGES;
6. Output should be:
Query OK, 0 rows affected (0.01 sec)
7. Exit MySQL
mysql> exit;
8. Stop the running server, because it's currently running with the "skip-grant-tables" parameter, and we don't want that:
$ sudo killall mysqld
9. Restart MySQL as normal:
sudo /etc/init.d/mysql start
10. Test that it's working by logging in as root:
mysql -u root -p
11. Hopefully you're in!
ï-- Dave M G Ubuntu 6.10 Edgy Eft Kernel 2.6.17.7 Pentium D Dual Core Processor PHP 5, MySQL 5, Apache 2
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Printer Not Responding [SOLVED]
- Next by Date: [tlug] Dell bios updates via Linux Bisodisk
- Previous by thread: Re: [tlug] Printer Not Responding [SOLVED]
- Next by thread: [tlug] Dell bios updates via Linux Bisodisk
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links