"Anton Müller" wrote:
> Hi,
>
> my problem for during installing icinga-web-1.0.1
> on suse linux 11.1:
>
> the "make db-initialize" tries to connect to:
>
>    '/var/lib/mysql/mysql.sock'
>
> But my mysql runs on:
>
>     '/var/run/mysql/mysql.sock'
>
> I greped the whold /etc but didn't find out,
> how "make db-initialize" gets his configuration.
>
>
> I am just reading:
>
> http://docs.icinga.org/latest/en/icinga-web-scratch.html
>
> I am at step 4, "Create Database".
>
> I type:
>
> #>  make db-initialize
>
> I get:--------------------------
>
>    
>> make db-initialize
>>      
> Buildfile: /home/anton/install/icinga/icinga-web-1.0.1/etc/build.xml
>   [property] Loading 
> /home/anton/install/icinga/icinga-web-1.0.1/etc/build.properties
>
> icinga-web>  db-initialize:
>
> [phingcall] Calling Buildfile 
> '/home/anton/install/icinga/icinga-web-1.0.1/etc/build.xml' with target 
> 'db-create'
>   [property] Loading 
> /home/anton/install/icinga/icinga-web-1.0.1/etc/build.properties
>
> icinga-web>  prepare:
>
>
> icinga-web>  db-prepare:
>
> Use the db-user specified in icinga-webs database.xml (Needs create 
> Database/create Table rights)?(n,y)? y
>
> icinga-web>  db-create:
>
> Error during schema creation - are you sure the table doesn't already exist? 
> If so, use the update command.
>
> PDO Connection Error: SQLSTATE[HY000] [2002] Can't connect to local MySQL 
> server through socket '/var/lib/mysql/mysql.sock' (13)
> WARNING: Initial data import may have failed due too many references.
>
> BUILD FINISHED
>
> # end ---------------------------------------
>
>
> Could you give me a hint???
>    

Well that's PHP PDO related - you need to point PDO where your MySQL 
socket can be found. E.g. by editing the php.ini and then restarting the 
webserver.

http://stackoverflow.com/questions/1435445/error-on-creating-connection-to-pdo-in-php

Kind regards,
Michael

> Thanks  a lot
>
>   Anton
>    


-- 
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email:  [email protected]
phone:  +43 1 4277 14359
fax:    +43 1 4277 14279
web:    http://www.univie.ac.at/zid

Icinga Core&  IDOUtils Developer
http://www.icinga.org


------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/icinga-users

Reply via email to