Mam problem z logowaniem do strony, prawdopodobnie spowodowany jest nie możliwością importu tabel z pliku sql. Baza zwraca błąd:
Błąd
Zapytanie SQL:
DELIMITER $$ CREATE FUNCTION `createSafeTitle`(actualName VARCHAR(255)) RETURNS varchar(255) CHARSET latin1 BEGIN -- Denovo Voucher Script -- Copyright © 2007-2012 Computed Synergy, http://www.computedsynergy.com DECLARE safeName VARCHAR(255); DECLARE i INT; DECLARE temp VARCHAR(1); SET actualName = LOWER(actualName); SET actualName = TRIM(actualName); SET actualName = REPLACE(actualName, ' ', '-'); SET actualName = REPLACE(actualName, '.', '_'); SET i = 1; SET safeName = ""; CharLoop: LOOP SET temp = SUBSTR(actualName, i, 1); IF (ASCII(temp) >= 48 AND ASCII(temp) <= 57) OR (ASCII(temp) >= 97 AND ASCII(temp) <= 122) OR (ASCII(temp) = 45) OR (ASCII(temp) = 95) THEN SET safeName = CONCAT(safeName, temp); END IF; SET i = i[...]
MySQL zwrócił komunikat: Dokumentacja
#1418 - This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators variable)
linia 1418 pliku wygląda następująco:
DELIMITER ; ; SET SQL_MODE=@OLD_SQL_MODE; SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS; SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS; -- ----------------------------------------------------- -- Data for table `sites` -- ----------------------------------------------------- START TRANSACTION; INSERT INTO `sites` (`id`, `fqdn`, `notes`, `active`, `fbappid`, `fbapikey`, `fbsecret`, `twitterusername`, `twitterpassword`, `fblikecode`, `fbpagename`, `headerinserts`, `footerinserts`, `logopath`, `theme`, `ctr`, `created`) VALUES (1, 's1.dvs.com', 'test site', '1', '', '', '', '', NULL, '<iframe src=\"http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.facebook.com%2Fpages%2FVoucher-Script%2F114934511873248&layout=standard&show_faces=true&width=450&action=like&colorscheme=light&height=80\" scrolling=\"no\" frameborder=\"0\" style=\"border:none; overflow:hidden; width:450px; height:80px;\" allowTransparency=\"true\"></iframe> ', 'http://www.facebook.com/pages/Voucher-Script/114934511873248', ' <meta property=\"og:title\" content=\"Voucher Script\"/> ', '', 'logo.png', 'factory', 1, '2011-04-13 19:00:00'); COMMIT;
Bardzo proszę o pomoc poprostu nie mam pojęcia od czego zacząć
Ponawiam nikt niepomoże?