h3x.no

Tor Henning Ueland`s thoughts about technology and other stuff

Archive for the ‘MySQL’ tag

How to reset MySQL root password

without comments

To reset the MySQL root password, do the following:

USE DATABASE mysql;
SET PASSWORD FOR root@localhost=PASSWORD(‘yournewpassword’);
FLUSH PRIVILEGES;

And voila! You have changed your password.

PS: If you have a “problem” with beeing able to login to MySQL without using password (even when it is set in MySQL), try to edit or delete ~/my.cnf, since that holds information used to avoid the login promt.

Written by Tor Henning Ueland

July 22nd, 2009 at 11:15 pm

Posted in MySQL

Tagged with , ,

Fix for the “Out of memory! Callback called exit.” error in Request Tracker (RT)

with one comment

When RT is upgraded, users can experience WSOD(White Screen Of Death), all the log will say is:
“Out of memory! Callback called exit.”. Not so informative eh?

The solution is pretty simple, run this query in the database:

“ALTER TABLE sessions CHANGE a_session a_session LONGBLOB;”

Then clear the table with:

TRUNCATE TABLE `sessions`;

Any logged in users will be logged out, but the problem should disappear.

Written by Tor Henning Ueland

April 17th, 2009 at 2:54 pm

Posted in Request Tracker

Tagged with , ,