When, in Drupal 7, the password for user 1 (the administrator) is lost and the email notification or drush methods don't work, it is possible to set the password via a database query.
But first, you have to generate a password hash that is valid for your site. Once completed right click in Command Prompt window to mark the text and copy the hash code.
FTP is also used to download kernels and delete images.
To explain what's happening below in the code box, open 10.0.0.3 Connected to 10.0.0.3 (10.0.0.3). ftp ls 227 Entering Passive Mode (10,0,0,3,118,48). drwxrwxrwx 2 0 0 4096 Apr 10 Optiplex745Win XPconfigured April2015 drwxrwxrwx 2 0 0 4096 Apr 10 dev drwxrwxrwx 2 0 0 16384 Apr 07 lost found drwxrwxrwx 2 0 0 4096 Apr 08 postdownloadscripts -rw-r--r-- 1 1000 1000 29 Apr 30 226 Directory send OK.
220 (vs FTPd 3.0.2) Name (10.0.0.3:administrator): fog 331 Please specify the password. ftp get local: remote: 227 Entering Passive Mode (10,0,0,3,190,81).
Execute the following commands from the command line, in the Drupal root directory: NOTE: If you receive an error that PHP is not a recognized command then you need to add php to the system PATH. Of course, change "newpwd" to the desired password.
If the password contains special characters such as a space, * or ?
Upon running ' Update Manager' from the /bin folder and selecting the ppm update file, I received a message saying that "The file may be corrupted or check for available disk space".