OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



A database error has occurred

Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.

A database error has occurred

Postby satoken » Wed Oct 05, 2005 8:58 pm

Dear Sir,

When istalling OJS, I got the message:

A database error has occurred: Access denied for user: 'root@localhost' (Using password: NO)

Any comment would be very appreciated.

Sato
satoken
 

A database error has occurred

Postby Erling.Berge@svt.ntnu.no » Wed Oct 05, 2005 10:55 pm

I had the same problem. I found that in installing ojs if I assigned any
other parameter than localhost for host, the ojs installer created an
error message saying that it was impossible to connect to the database (MySQL).
Erling Berge
Erling.Berge@svt.ntnu.no
 

Postby asmecher » Thu Oct 06, 2005 9:37 am

Hello,

Please verify that your OJS database has been granted the appropriate permissions. For example:

Code: Select all
CREATE DATABASE myojs2database;
GRANT ALL ON myojs2database TO myusername@myhostname IDENTIFIED BY 'mypassword';


Ensure that the hostname matches the login information given to the OJS installer.

Note that it's generally not a good policy to use root as your database user.

Regards,
Alec Smecher
asmecher
 
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

A database error has occurred (Solved)

Postby satoken » Thu Oct 06, 2005 5:24 pm

Dear Sir,

The "database error has occurred" was solved.

Thank you so much
stk.
satoken
 


Return to OJS Technical Support

Who is online

Users browsing this forum: Bing [Bot] and 2 guests