Can't connect to local MySQL server through socket '/var/lib

Support and queries relating to all previous versions of ZoneMinder
Locked
KV
Posts: 1
Joined: Fri Jul 15, 2005 11:41 am

Can't connect to local MySQL server through socket '/var/lib

Post by KV »

hello!

do you have an idea to fix this problem when running 'perl ./zmconfig.pl'

[root@localhost zm-1.21.2]# perl ./zmconfig.pl
Loading config from 'zmconfig.txt'
DBI connect('database=zm;host=localhost','toto',...) failed: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) at ./zmconfig.pl line 1662
Error: unable to load options from database: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

thank you!
kv
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

That is normal error. It's because you have not set up your database yet. Just follow the README and you'll do okay. You have to setup the database a little later then run perl zmconfig.pl -noi to populate the database.
Regards,
Cordel
Image
Image
3939663646337

It's better to keep your mouth shut and appear stupid than open it and remove all doubt.
-Mark Twain
Locked