Last day i lost my mysql password , so i had to uninstall the whole database server and reinstall, then going mysql site i found a way to change my pass word , hope this may help u
Let’s look at all the ways to change MySQL password, for root and other users:
In MySQL the default password is empty. This is inherently unsafe and should be immediately changed. Here is how you can change MySQL default root password:
mysqladmin -u root password NEWPASSWORD
Here is how you can change OLDPASSWORD to NEWPASSWORD
mysqladmin -u LOGIN -p OLDPASSWORD NEWPASSWORD
Replace LOGIN with your login name, OLDPASSWORD with your current password and NEWPASSWORD with the new password.
Cheers
Varun Rathore
Aroma of flex with java
About Me
Blog Archive
- November 2009 (3)
- October 2009 (2)
- August 2009 (2)
- July 2009 (4)
- May 2009 (1)
- April 2009 (4)
- March 2009 (1)
- February 2009 (4)
- December 2008 (2)
- August 2008 (6)
- July 2008 (6)
- June 2008 (2)
- May 2008 (5)
- February 2008 (4)
- November 2007 (2)
- August 2007 (1)
- July 2007 (2)
Friday, June 6, 2008
Object Comparison In Flex / AIR
Object Comparison In Flex/AIR
To compare the objects whether they are same or not we can use following method of SerializeUtil Class
public class SerializeUtil
{
public static function ObjectToString(object: *): String
{
var ba: ByteArray = new ByteArray();
ba.writeObject(object);
return ba.toString();
}
public static function ObjectToByteArray(object: *): ByteArray
{
var ba: ByteArray = new ByteArray();
ba.writeObject(object);
ba.position = 0;
return ba;
}
}
To do the actual comparison just use these lines of code to compare the two objects.
if (SerializeUtil.ObjectToString(object1)==SerializeUtil.ObjectToString(object2))
{
// Objects are 'equal'
}
else
{
// Objects are not 'equal'
}
Thanks and Regards
Varun Rathore
To compare the objects whether they are same or not we can use following method of SerializeUtil Class
public class SerializeUtil
{
public static function ObjectToString(object: *): String
{
var ba: ByteArray = new ByteArray();
ba.writeObject(object);
return ba.toString();
}
public static function ObjectToByteArray(object: *): ByteArray
{
var ba: ByteArray = new ByteArray();
ba.writeObject(object);
ba.position = 0;
return ba;
}
}
To do the actual comparison just use these lines of code to compare the two objects.
if (SerializeUtil.ObjectToString(object1)==SerializeUtil.ObjectToString(object2))
{
// Objects are 'equal'
}
else
{
// Objects are not 'equal'
}
Thanks and Regards
Varun Rathore
Subscribe to:
Posts (Atom)