2 Dec 2003 15:14
Re: Documentation: import of database dump, mod_rewrite rules
On Nov 30, 2003, at 15:23, Agon S. Buchholz wrote:
> "Error in the database. There was an syntax error in the database
> query. The last database query was: "INSERT INTO rebuildlinks
> (rl_f_id,rl_f_title,rl_to) VALUES " from the fuction "".
> MySQL reported error "1064: You have an error in your SQL syntax."
The new rebuildlinks script is heavily rewritten; you may wish to grab
the current dev branch out of CVS (which we're running now on
Wikipedia) or wait a few days for the new stable release.
> (1b) When just importing cur_, rebuildlinks.php runs fine, but when
> accessing the Main_Page ("Hauptseite"), it says that there are "0
> articles", but the wiki pages exist, in this case, several thousend
> pages. Is this the wanted behaviour, or is there something else to do
> after running rebuildlinks.php? Also, newly created pages are not
> being counted.
To rebuild the article count manually:
SELECT <at> foo:=COUNT(*) FROM cur
WHERE cur_namespace=0 AND cur_is_redirect=0 AND cur_text like '%[[%';
UPDATE site_stats SET ss_good_articles= <at> foo;
> The statement references to an external RewriteMap which I couldn't
> find:
>
> RewriteMap ampescape int:ampescape
> RewriteRule ^/wiki/(.*)$ /wiki.phtml?title=${ampescape:$1} [L]
>
> The ../maintenance directory contains just apache-ampersand.diff. Is
> the RewriteMap used by Wikipedia somewhere publicly available?
(Continue reading)
RSS Feed