Assuming that a) using the email to request the new password isn’t an option AND b) you have access to mysql or phpMyAdmin you may use the following methods to recover the password for your drupal root user:
drupal 6:
In drupal 6 the password is stored as a simple MD5 hash of your plain […]
1. Edit file /etc/my.cnf.d/mariadb-server.cnf and add these 3 lines to the [mysqld] section:
innodb_large_prefix=true
innodb_file_format=barracuda
innodb_file_per_table=true
This will enable usage of Multi-byte (in particular – 4-byte) UTF-8 support in Drupal 7.
2. mysqli: If you have problems with mysqli/mysql change the mysqli to mysql (or vice versa – whatever […]
… don’t know what drupal and drush are? Then this post is probably not for you…
Let’s face it – drush is a bitch to install. But we want it. So we have to. And install it we will!
Even though there appears to be extensive info on the topic on drush’s website, installing it […]
Assuming we all know how to check the drupal version if your site is online and you know the admin password… (Administer > Logs > Status Report)
But what do you do when you only got a zipped backup of your drupal site or the site is offline or you don’t have the admin password […]
Recovering lost user (admin) password
[ src: https://www.drupal.org/node/44164 ]
Drupal 6
UPDATE users SET pass = MD5(‘givememypasswordback’) WHERE uid=1;
Drupal 7
php ./scripts/password-hash.sh newpwd
The script will output a password hash that is valid for the site, something like:
$S$CTo9G7Lx28rzCfpn4WB2hUlknDKv6QTqHaf82WLbhPT2K5TzKzML
Use it in a SQL query to set new passwd:
I tried to install a drupal site in a sub-directory of a domain and I ran into some problems. I will explain here how I solved them.
Many forum topics and issues on drupal.org and elsewhere on the web discuss how to install drupal in a sub-directory of your domain and to have it […]
-
Categories
- Android Development
- Bash
- C programming
- dpkg/apt-get
- drupal
- Emacs
- Git
- Java
- Linux administration
- Linux device drivers
- Linux Gaming
- Linux kernel
- Linux Networking
- Linux on Windows
- Linux printing
- Linux sound and ALSA
- Package Managers
- Programming
- RPM
- Shell and environment
- Tips and tricks
- Uncategorized
- VirtualBox
- Virtualization
- web development
- wine
- WMaker
- Wordpress Tips
- X Window System
- XFCE
-
Articles
- August 2020
- August 2019
- May 2019
- July 2017
- February 2017
- January 2017
- November 2016
- October 2016
- September 2016
- August 2016
- July 2016
- June 2016
- April 2016
- March 2016
- December 2015
- November 2015
- September 2015
- June 2015
- May 2015
- April 2015
- March 2015
- February 2015
- January 2015
- December 2014
- October 2014
- February 2014
- January 2014
- November 2013
- October 2013
- June 2013
- April 2013
- March 2013
- February 2013
- January 2013
- December 2012
- October 2012
- August 2012
- July 2012
- June 2012
- May 2012
- April 2012
- March 2012
- February 2012
- September 2011
- August 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
-
Calendar
June 2023 M T W T F S S « Aug 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 -
Meta
Cloud
audio bash boot compile C programming cups drupal emacs etc Fedora git grep how to httpd init kernel libc linux linux partition localtime login make mount mp3 mysql networking oracle package managers password phpMyAdmin programming rpm shell sql vbox version control system virtual box vm web server wordpress www xargs xfce xwin yum