OCS Inventory NG Forums

OCS Inventory NG, an OpenSource computer inventory and package deployement system for Windows and Unix

You are not logged in.

#1 2010-08-25 17:04:46

denniscr
Member
Registered: 2010-07-22
Posts: 18

Error Installing OCS Access denied Access denied for user 'ocs'@'loca

Hi Guys,

I am new to OCS and I am installing the server in two computers : one has windows XP and the other windows 2003 server .

This is a fresh install and the computers were formatted recently , they are in different network and domain .

The problem is that after the install ends and I click on the icon ¨OCS inventory NG Reports¨ I got the error :

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'ocs'@'localhost' (using password: YES) in C:\xampp\htdocs\ocsreports\preferences.php on line 326

ERROR: MySql connection problem
Access denied for user 'ocs'@'localhost' (using password: YES)

How can I solve this ?

I am new to mysql and have no idea so I appreciate any help

Offline

#2 2010-08-25 20:18:08

kapouik
Administrator and OCS Team
From: Pink Town (South of France)
Registered: 2010-06-16
Posts: 3,392
Website

Re: Error Installing OCS Access denied Access denied for user 'ocs'@'loca

that's really simple : if you read the documentation you will see that you must launch install.php


Before asking any questions please read the documentation on http://wiki.ocsinventory-ng.org/ . No help will be given if you don't have read this two page :
- http://wiki.ocsinventory-ng.org/index.p … ion:Newbie
- http://wiki.ocsinventory-ng.org/index.p … n:Main#FAQ
OCS Inventory NG is made by a team of volunteer on our free time.

Online

#3 2010-08-25 22:57:32

denniscr
Member
Registered: 2010-07-22
Posts: 18

Re: Error Installing OCS Access denied Access denied for user 'ocs'@'loca

I ran the install and  put  MySql Login, passsword and hostname but after click the send button got the same error :

ERROR: Can't connect to MySql. Please enter a valid login/pass. (host=localhost name=ocs pass=ocs)
Mysql error: Access denied for user 'ocs'@'localhost' (using password: YES)

Offline

#4 2010-08-26 07:05:28

frankb
OCS Team
From: France (Angers)
Registered: 2009-01-12
Posts: 3,596
Website

Re: Error Installing OCS Access denied Access denied for user 'ocs'@'loca

Declare ocs user with his password in mysql.

Offline

#5 2010-08-26 15:50:13

denniscr
Member
Registered: 2010-07-22
Posts: 18

Re: Error Installing OCS Access denied Access denied for user 'ocs'@'loca

Thank you !

After I created the user with  all permissions the database is up and running .

Problem Solved

smile

Offline

Board footer

Powered by FluxBB