Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8258507
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T02:33:41+00:00 2026-06-08T02:33:41+00:00

I have a Problem to import the Sakila Database in Mysql5.0.51b. The specific problem

  • 0

I have a Problem to import the Sakila Database in Mysql5.0.51b.
The specific problem is in the ‘DELIMITER SYNTAX’, I have tried some alternatives but didn´t works.

I use APPServr.

MYSQL MESSAGE ERROR:

    --
-- Triggers for loading film_text from film
--
DELIMITER;


MySQL said: 

#1064 - You have an error in your SQL syntax; check the manual that 
 corresponds to your MySQL server version for the right syntax to use near 
'DELIMITER' at line 1

DELIMITER CODE:

DELIMITER ;;
CREATE TRIGGER `ins_film` AFTER INSERT ON `film` FOR EACH ROW BEGIN
    INSERT INTO film_text (film_id, title, description)
        VALUES (new.film_id, new.title, new.description);
  END;;


CREATE TRIGGER `upd_film` AFTER UPDATE ON `film` FOR EACH ROW BEGIN
    IF (old.title != new.title) OR (old.description != new.description) OR (old.film_id != new.film_id)
    THEN
        UPDATE film_text
            SET title=new.title,
                description=new.description,
                film_id=new.film_id
        WHERE film_id=old.film_id;
    END IF;
  END;;


CREATE TRIGGER `del_film` AFTER DELETE ON `film` FOR EACH ROW BEGIN
    DELETE FROM film_text WHERE film_id = old.film_id;
  END;;

DELIMITER ; 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T02:33:43+00:00Added an answer on June 8, 2026 at 2:33 am

    I am not familiar with APPServr, and would suspect it for twisting some commands before sending over to MySQL (this is not an accusation, merely a suspicion).

    I have successfully imported the sakila database numerous times in classroom. The best way, in my opinion, is to simply SOURCE it from the mysql command line client:

    mysql> SOURCE /path/to/sakila-schema.sql
    mysql> SOURCE /path/to/sakila-data.sql
    

    Otherwise you can import via command line from shell/Command:

    bash$ mysql < /path/to/sakila-schema.sql
    bash$ mysql < /path/to/sakila-data.sql
    

    And also, using MySQL Workbench I’ve evidenced no problems with this.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem using the SSIS. I try to import data from database
hello everyone I have some problem with understanding this piece of the code: import
I have a problem overriding the method where from...import statement is used. Some example
I have a problem with import of a 3D model into a WebGL shader
I have a problem with 2D transformation program I have the source code import
I have a problem with Observer-Pattern and deadlock using threads. package observerDeadLock; import java.util.Observable;
Im having problems with classpaths. I have used them before with import but I'm
I am currrently using BeautifulSoup to scrape some websites, however I have a problem
I have a problem with understanding the following code: import java.awt.Dimension; import java.awt.GridLayout; import
I have a problem with the hibernate named queries. My Entity: import org.hibernate.annotations.NamedQueries; import

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.