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.