Home ›
Making Drupal nids into edit link from your command-line SQL Making Drupal nids into edit link from your command-line SQL
Submitted by Benjamin Melançon on April 11, 2009 - 1:12pm
Searched words:
mysql concatenation
concatenate text in MySQL
I wanted to call this post "automating manual changes" but it's hard to get across the meaning of automating parts of the process that keep it manual.
Stolen directly from Growing Ventures Solutions post on migrating a messy Drupal 5 site to D6. (Primarily this post provides you with copyable text where there's had an image.)
SELECT CONCAT('http://example.com/node/', nid, '/edit') FROM node_revisions WHERE body LIKE '%problematicsomething%';
I just drag and drop links onto my browser to open them.
Resolution
More like this
- Execute command-line statements from within the vi editor
- Backing up, restoring, making test databases with MySQL command line
- MySQL database and user creation from the command line
- See list of MySQL databases via GNU Linux shell command line
- How to change your mysql root password using command line


Comments
Post new comment