Menu

#1523 Completing database installation getting error when trying to access mrbs system

None
open
nobody
None
5
2019-12-16
2018-06-11
Anonymous
No
Uncaught exception 'MRBS\DBException' in /Applications/XAMPP/xamppfiles/htdocs/mrbs/web/lib/MRBS/DB.php at line 75
SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES)
SQL: 
Params: 
#0 /Applications/XAMPP/xamppfiles/htdocs/mrbs/web/lib/MRBS/DBFactory.php(25): MRBS\DB->__construct('localhost', 'root', 'PASSWORD', 'mrbs', false, NULL)
#1 /Applications/XAMPP/xamppfiles/htdocs/mrbs/web/dbsys.inc(46): MRBS\DBFactory::create('mysql', 'localhost', 'root', 'PASSWORD', 'mrbs', false, NULL)
#2 /Applications/XAMPP/xamppfiles/htdocs/mrbs/web/dbsys.inc(96): MRBS\db()
#3 /Applications/XAMPP/xamppfiles/htdocs/mrbs/web/defaultincludes.inc(30): require_once('/Applications/X...')
#4 /Applications/XAMPP/xamppfiles/htdocs/mrbs/web/index.php(9): require('/Applications/X...')
#5 {main}
MRBS GET: Array
(
)
MRBS POST: Array
(
)
MRBS SESSION: Array
(
)
1 Attachments

Discussion

  • Anonymous

    Anonymous - 2018-06-11

    can you please help me with solution. Thanks

     
  • Campbell Morrison

    Check the database name, username and password that you have supplied in config.inc.php.

     
  • Alejandro

    Alejandro - 2019-12-05

    Same problem. I did exactly the same on Ubuntu 18.04 and it worked. But it is not the same on Windows. Why is it? (Sorry I'm from Argentina)

     
  • Campbell Morrison

    What exactly is the problem you are seeing? Have you checked the database name, username and password that you have supplied in config.inc.php?

     
  • Anonymous

    Anonymous - 2019-12-05

    yes I checked everything. As I saied before I installed mrbs on ubuntu and worked without problem. But aparently mysql or php don't work the same as on ubuntu

     
    • Anonymous

      Anonymous - 2019-12-05

      I forgot to say that I'm not using xampp. I'm using wamp on windows, and lamp on ubuntu.

       
  • Campbell Morrison

    I don't think this is an MRBS issue. It seems that you don't have the correct combination of database name, username and password for your wamp MySQL server.

     
    • Alejandro

      Alejandro - 2019-12-05

      I think the same. But I'm telling you I already did it on ubuntu and there was no problem. Then I tried to do it two times on Windows in different computers and threw the same error. I already checked config.inc.php. I think it might be a format problem on mysql or php. Is there any mrbs instructions to install it on Windows? I might be doing something wrong

       

      Last edit: Alejandro 2019-12-05
  • Campbell Morrison

    Yes, but your credentials won't necessarily be the same on Wamp. Have you tried 'root' and ''? See this article.

     

    Last edit: Campbell Morrison 2019-12-05
    • Alejandro

      Alejandro - 2019-12-05

      I understand it is not the same. In mysql i did this:

      create database mrbs
      mrbs<tables.my.sql
      create user mrbs identified by 'password'
      grant all privilleges on mrbs.* to mrbs

      Then modified config.inc.php according to what i did on mysql. Same user, same dabatase and same password. I didn't use phpMyAdmin

       
    • Alejandro

      Alejandro - 2019-12-16

      I did this db_port = 3308 in config.inc.php and worked. But I don´t understand why. I just saw mysql was working on that port instead of 3306 as usual. That port was reserved for MariaDB