Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Any ideas?
# drush omega-subtheme "3000r" html5
Additional uncaught exception thrown while handling exception.
Original
PDOException: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in drupal_is_denied() (line 1657 of /home/......../public_html/3000realms/includes/bootstrap.inc).
Additional
PDOException: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in system_list() (line 165 of /home/........./public_html/3000realms/includes/module.inc).
Drush command terminated abnormally due to an unrecoverable error. [error]
The Drush install folder has been added to the bash_profile path list and works as I type --version.
Drush 4.4 is being used.
Thanks in advance.
Comments
Comment #1
pheno CreditAttribution: pheno commentedUpdate
This is currently diagnosed as an error arising from a lack user assigned to a master database. It is in the course of being resolved.
The circumstances have arisen upon a move to a server that allows SSH and using drush to perform a subtheming operation. It is possible that the system was working fine before and drush requires this.
Comment #2
VM CreditAttribution: VM commentedNot that this has anything to do with your original issue but I noticed while reading the queue that you're using numerals in the theme name. PHP functions cannot start with numbers thus you won't be able to perform any preprocess functions.
Comment #3
pheno CreditAttribution: pheno commentedThanks for the lookin VM, that is absolutely right. I have learnt this over the past week :) tough lesson. It cant begin with a number but can contain a number :)
The issues have arisen in setting up drush on a shared host with ssh. The service providers lunarpages have been invaluably supportive in making Drush available to me and resolving all the arising technical issues to resolution.
This is a brief of the processes required to setup on Lunarpages. Perhaps there are others that might appreciate this brief but clear guide to enabling drush on a jailshell.
--
drush must be downloaded, decompressed and copied onto the root of the host.
Make the adjustments to the .bash_profile file with the addition of the line:
PATH=$PATH:$HOME/drush
settings.php must include the server domain name for the database configuration:
'host' => 'renge.lunarmania.com',
These additions must be made in php.ini which is in the public_html folder:
extension=pdo.so
extension=pdo_sqlite.so
extension=sqlite.so
extension=pdo_mysql.so
.htaccess file must include a path to the php.ini:
suPHP_ConfigPath /home/user/public_html
Lastly, your server's main ip needs to be added to the MySQL allowed hosts.
Connect via putty and enjoy drush.
--