Menu

Need a bit of help

2005-08-25
2013-04-09
  • Nobody/Anonymous

    Hi There, I'm getting the following error message when I try and load phpinv on a WAMP configuration. All services are running fine.

    Any suggestions?

    Kind Regards
    Laurence

    Warning: mysql_connect(): Access denied for user: 'lau@localhost' (Using password: YES) in c:\web\phpinv\inc\db_mysql.php on line 42
    Database error in phpInv: Link-ID == false, connect failed
    mysql error: Access denied for user: 'lau@localhost' (Using password: YES)
    mysql error number: 1045
    Date: 25.08.2005 @ 19:25
    Script: /phpinv/category.php?hash=
    Referer:

     
  • Nobody/Anonymous

    it looks to me like your user "Lau" does not have access to the phpInv database (ether that or you don't have remote access).  you need to login to mysql, select the database by typing:

    use phpInv;

    Then type:

    GRANT SELECT, INSERT, DELETE ON phpInv TO lau@'localhost' IDENTIFIED BY 'password for lau account';

    then do a a flush privileges by typing the following:

    FLUSH PRIVILEGES;

    See the following link for more details: http://www.ntchosting.com/mysql/grant.html

    If that does not work you then more than likly need to have remote access to the database so look at the following link:

    http://www.cyberciti.biz/tips/how-do-i-enable-remote-access-to-mysql-database-server.html

    Hope this helps.

    Rod

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.