Problem installing ZM 1.25 on Ubuntu 12.04, ERROR 1050
Posted: Sun Apr 29, 2012 8:31 pm
I have been attempting to install Zoneminder 1.25 in Ubuntu 12.04, following the 10.04 Desktop instructions at http://www.zoneminder.com/wiki/index.ph ... x)_Desktop. Whenever I entered instruction #6:and enter a correct password, the system responds:I got this error in the Desktop, Server, and Mini(Netboot) editions.
I opened /usr/share/zoneminder/db/zm_create.sql in a text editor to look at line 265. I found that while every other table is preceded by something like:the 'Logs' table is only preceded by:
I edited zm_create.sql, adding
before
at line 265. I reenteredin the terminal and now no errors are returned.
Hopefully the package can be fixed at some point. If not, here's the solution should you see a similar error.
Code: Select all
sudo mysql -u root -p < /usr/share/zoneminder/db/zm_create.sql
Code: Select all
ERROR 1050 (42S01) at line 265: Table 'Logs' already exists
I opened /usr/share/zoneminder/db/zm_create.sql in a text editor to look at line 265. I found that while every other table is preceded by something like:
Code: Select all
DROP TABLE IF EXISTS `tablename`;
CREATE TABLE `tablename` (
Code: Select all
CREATE TABLE `Logs`(
Code: Select all
DROP TABLE IF EXISTS `Logs`;
Code: Select all
CREATE TABLE `Logs`(
Code: Select all
sudo mysql -u root -p < /usr/share/zoneminder/db/zm_create.sql
Hopefully the package can be fixed at some point. If not, here's the solution should you see a similar error.