Posts Tagged ‘phpMyAdmin’

All posts tagged phpMyAdmin.

Find and Replace With phpMyAdmin (or using SQL)

Posted by: Jen | 2 Comments »

Categorized: Hints, HOWTOs, Wordpress

Ever need to find and replace something in your WordPress database? (perhaps you changed domain names and have the old domain name or folder structure hard coded into some of your posts) You can easily update your database by using phpMyAdmin or by using the following code in any SQL interface:

UPDATE wp_posts SET post_content = replace(post_content,"http://olddomain.com/blog","newdomain.com/"); 

The first part of the command says “update the database table wp_posts” (where your content is stored). The later part of the command says “use the field “post_content” (where all your actual post content is stored” and then find “http://olddomain.com/blog” and replace it with “http://newdomain.com”. You can find anything (not limited to domain name) and replace it with anything as well. This is a great time saver!

mysql/phpMyAdmin errors.

Posted by: Jen | No Comments »

Categorized: General

Somethings, I just forget…again and again. Yeah, I need to go through the W3C School’s SQL tutorial and learn more about it and databases in general, but for now, here are some helpful tips for people like me that rely on MySQL, but often fall into the same novice traps/problems.

  • I do not install MySQL very often but when I do, I forget how to set the initial passwords. Post installation instructions
  • I then sometimes, have a problem (if I install MySQL 4.1) with the MySQL 4.1+ password hashing algorithm. The error: “Client does not support authentication protocol requested by server; consider upgrading MySQL client.” The solution:MySQL 4.1+ password hashing algorithm
  • Don’t forget to check out MySQL’s own GUI app: MySQL Administrator.