First of all we need to stop mysql /etc/init.d/mysql stop Create a mysql table dump to reset the password UPDATE mysql.user SET Password=PASSWORD('YOUR-NEW-MYSQL-PASSWORD') WHERE User='root'; FLUSH PRIVILEGES; Now we need to start mysql in safe mode and import the mysql table dump mysqld_safe --init-file=/path/to/mysql/table/dump & Finally we need to kill mysql and start it in normal mode killall mysqld /etc/init.d/mysql start Your password should now [...]
Continue reading...Sunday, April 5, 2009
What is chmod? Chmod is a command that changes the access permissions of files or directories in order to read, write or execute files How do I view The permissions of files? You can do this by typing ls -la Heres is a example of its output root@duffys-place:/etc/lighttpd# ls -la total 20 drwxr-xr-x 4 root root 4096 2009-03-29 00:36 . drwxr-xr-x 79 root [...]
Continue reading...
Thursday, August 13, 2009
0 Comments