MySQL error

Support and queries relating to all previous versions of ZoneMinder
Locked
decibel83
Posts: 80
Joined: Tue Dec 06, 2005 5:22 pm

MySQL error

Post by decibel83 »

I'm getting an error from MySQL when I try to import the db/zm_create.sql file in MySQL when installing ZoneMinder 1.23.0:

venere:/usr/local/src/ZoneMinder-1.23.0# mysql -uroot -p < db/zm_create.sql
Enter password:
ERROR 1064 (42000) at line 408: 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 'UNIQUE KEY `UC_Username` (`Username`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1' at line 16

I looked in the file but I didn't managed in solving the problem.

Could you help me, please? Is this a bug?

Thank you! Bye and have a nice Christmas.
decibel83
Posts: 80
Joined: Tue Dec 06, 2005 5:22 pm

Post by decibel83 »

I solved the problem adding a "," at the end of the row 422 of the db/zm_create.sql file.
But now I have another problem during the compilation process, for which I am going to open another thread in the forum.

Thank you very much.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Ack! Apologies for this further SQL cock-up. Now updated.
Phil
johnc10
Posts: 15
Joined: Wed Aug 10, 2005 9:28 pm

Post by johnc10 »

I have just downloaded ZoneMinder-1.23.0.tar.gz and the error is still there.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Do you know where you got it from. I don't know if all mirrors updated but will check my ones. Also was this a fresh download or just an update?
Phil
johnc10
Posts: 15
Joined: Wed Aug 10, 2005 9:28 pm

Post by johnc10 »

Re-downloaded again from

http://www2.zoneminder.com/downloads/Zo ... 3.0.tar.gz

but this time it had been updated so it must have been a delay in the mirrors.

It was zm_create.sql for an initial install.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

I re-uploaded it just in case anyway. I may have just sent the old one up again before :oops:
Phil
Locked