Solaris----Similiar to TOP ---> prstat
ps -el --->full listing of all process running on s/m
prtdiag --->no of cpus present in the s/m
linuz
-------
pkill -9 -u username
Litspeed
--------
/opt/lsws/conf/httpd_config.xml
There are two ways to restart LiteSpeed:
1. Login to LiteSpeed's control panel and go to "Control -> Apply Changes/Graceful Restart".
2. Connect to your account using an SSH client and execute the following commands:
cd ~/webapps/(Application Name)/bin/
./lswsctrl restart
/opt/lsws/bin/lswsctrl restart
MYSQL ROOT PASS RESET
-----------------------------------------
Stop mysql server
/etc/init.d/mysql.server stop
Start mysql in safe mode
/usr/local/mysql/bin/mysqld_safe --user=root --skip-grant-tables --skip-networking &
NOw the mysql will be running in the background in safe mode. You will be able to klogin as root by just using
mysql -u root
Once you got in you can use the following commands to reset the root password.
UPDATE mysql.user SET Password=PASSWORD('qwert123') WHERE User='root'; //Here password is qwert123
FLUSH PRIVILEGES;
Now just quit from the mysql prompt and try using the new password
mysql -u root -p
When it ask for passwprd, provide the new password. It will work.
------------------------------------
http://www.mydigitallife.info/2006/06/06/change-and-reset-mysql-root-password/
http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html#resetting-permissions-unix
http://ketan404.blogspot.com/2007/09/mysql-root-password-reset.html
No comments:
Post a Comment