Re: Tag Plugin Problem?
Posted: Wed Jun 22, 2011 2:40 pm
Stimmt, ist es.
Danke Dir...
Danke Dir...
Garvinhicking wrote:Stand/steht dein Blog denn vorher auf "Nativer" Zeichensatz oder "UTF-8"?
Hast Du die Option "Datenbank-Zeichensätze aktivieren" aktiviert oder deaktiviert?
Von den beiden Einstellungen hängt s9y seitig alles ab. Ich würde es so einstellen, dass dann deine alten Beiträge korrekt dargestellt werden. Die neu eingepflegten werden dann falsch aussehen, aber wenn du dann neue einstellst, sind die wieder richtig.
Code: Select all
SELECT
ep_sticky.value AS orderkey,
e.id,
e.title,
e.timestamp,
e.comments,
e.exflag,
e.authorid,
e.trackbacks,
e.isdraft,
e.allow_comments,
e.last_modified,
a.realname AS author,
a.username AS loginname,
a.email
, e.body, e.extended
FROM
serendipity_entries AS e
LEFT JOIN serendipity_authors a
ON e.authorid = a.authorid
LEFT JOIN serendipity_entrycat ec
ON e.id = ec.entryid
LEFT JOIN serendipity_category c
ON ec.categoryid = c.categoryid
INNER JOIN serendipity_entrytags AS entrytags ON (e.id = entrytags.entryid) LEFT OUTER JOIN serendipity_entryproperties ep_access
ON (e.id = ep_access.entryid AND ep_access.property = 'ep_access')
LEFT JOIN serendipity_entryproperties ep_sticky
ON (e.id = ep_sticky.entryid AND ep_sticky.property = 'ep_is_sticky') LEFT JOIN serendipity_authorgroups AS acl_a
ON acl_a.authorid = 0
LEFT JOIN serendipity_access AS acl_acc
ON ( acl_acc.artifact_mode = 'read'
AND acl_acc.artifact_type = 'category'
AND acl_acc.artifact_id = c.categoryid
)
WHERE isdraft = 'false' AND e.timestamp <= 1308754800 AND entrytags.tag = 'serendipity' COLLATE utf8_unicode_ci AND (ep_access.property IS NULL OR ep_access.value = 'public') AND (
c.categoryid IS NULL
OR ( acl_acc.groupid = 0)
OR ( acl_acc.artifact_id IS NULL
)
)
GROUP BY e.id
ORDER BY orderkey DESC, timestamp DESC
LIMIT 5Code: Select all
ALTER TABLE `serendipity_entrytags` CONVERT TO CHARACTER SET utf8
COLLATE utf8_unicode_ciCode: Select all
CREATE TABLE IF NOT EXISTS `serendipity_entrytags` (
`entryid` int(10) NOT NULL,
`tag` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`entryid`,`tag`),
KEY `tagsentryindex` (`entryid`),
KEY `tagsTagIndex` (`tag`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;Code: Select all
-- --------------------------------------------------------
--
-- Tabellenstruktur für Tabelle `serendipity_entrytags`
--
CREATE TABLE IF NOT EXISTS `serendipity_entrytags` (
`entryid` int( 10 ) NOT NULL ,
`tag` varchar( 50 ) COLLATE utf8_unicode_ci NOT NULL ,
PRIMARY KEY ( `entryid` , `tag` ) ,
KEY `tagsentryindex` ( `entryid` ) ,
KEY `tagsTagIndex` ( `tag` )
) ENGINE = MYISAM DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci;
--
-- Daten für Tabelle `serendipity_entrytags`
--
INSERT INTO `serendipity_entrytags` (`entryid`, `tag`) VALUES
(1, 'Blog'),
(2, 'RealLife'),
BLABLABLAserendipity_entrytags 2,743 MyISAM utf8_unicode_ci 140,0 KiBTimbalu wrote:Hmmm,
und wenn du auf Datenbank:teikoa_db2 drückst und dir deine Tabllen anschaust, steht by entrytags ausdrücklich auch MyISAM utf8_unicode_ci?
Ja ist es wirklich, ich habe nur zwei, eine alte Drupal 7 die ich noch mitschleppe, weil ich Jemanden dort geholfen habe und jene.Timbalu wrote:Was macht ein nochmaliger ALTER TABLE `serendipity_entrytags` CONVERT TO CHARACTER SET utf8 COLLATE utf8_unicode_ci?
Das ist auch wirklich die benutzte Datenbank?
Code: Select all
ALTER TABLE `serendipity_entrytags` ADD PRIMARY KEY ( `entryid` , `tag` );
CREATE INDEX tagsentryindex ON serendipity_entrytags (entryid);
CREATE INDEX tagsTagIndex ON serendipity_entrytags (tag);Hmmmm.Fehler
SQL-Befehl:
ALTER TABLE `serendipity_entrytags` ADD PRIMARY KEY ( `entryid` , `tag` ) ;
MySQL meldet:
#1068 - Multiple primary key defined