WordPress database error: [Can't open file: 'wp_comments.MYD'. (errno: 144)]
SELECT ID, COUNT( comment_ID ) AS ccount FROM wp_posts LEFT JOIN wp_comments ON ( comment_post_ID = ID AND comment_approved = '1') WHERE ID IN (63) GROUP BY ID

Curioso! » Blog Archive » Redirecting a web site


Redirecting a web site



I was moving a web site from my ISP, which just serves plain HTML pages, to my own server, where I have full control. This shell script replaces all HTML pages on the old web site by a redirect to the new web site (and saves a copy of the old page).

#!/bin/sh
site=\"http://www.example.com\"
for file in $*
do
mv $file $file.bak
cat > $file << XXXXXX
<html>
<head>
<meta name=\"robots\" content=\"noindex\">
<meta http-equiv=\"refresh\" content=\"5; URL=$site/$file\">
</head>
<body>
<p align=\"center\">The page you are looking for is not here. Try:</p>
<p align=\"center\">
<a href= \"$site/$file\">$site/$file</a></p>
<p align=\"center\">If you are not redirected automatically within a few second
s then please click on the link above.</p>
</body>
</html>
XXXXXX
chmod 644 $file
done

WordPress database error: [Can't open file: 'wp_comments.MYD'. (errno: 144)]
SELECT * FROM wp_comments WHERE comment_post_ID = '63' AND comment_approved = '1' ORDER BY comment_date

Leave a Reply