Peter Simmonds wrote on 27/06/15 19:14:
Hi All, just regarding my previous question, the terminal output is attached to this email.

So, zoneminder wants to open a mysql database called zm with a mysql user named zmuser, using a socket file at /var/run/mysqld/mysqld.sock

I don't use zoneminder personally, but some possible causes.

1)    mysql isn't running?  Start it.
2) socket file doesn't exist there or is unreadable to the user that is running zoneminder. Check with ls 3) database zm hasn't been created? There's probably a .sql file in the zoneminder files that you can do something like this

mysql -e "create database zm"
mysql zm < /path/to/zm/zoneminder.sql

4)    mysql user zmuser doesn't exist or can't read zm database?

mysql zm -e "grant all on zm.* to zmuser@localhost identified by 
'somePasswordHere'"

5) mysql is only listening to 127.0.0.1 but ubuntu has mucked around in /etc/hosts and called 127.0.1.1 localhost
6)    other?


--
CF
_______________________________________________
Linux-users mailing list
[email protected]
http://lists.canterbury.ac.nz/mailman/listinfo/linux-users

Reply via email to