Completing database installation getting error when trying to access mrbs system
Brought to you by:
jberanek
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 ( )
can you please help me with solution. Thanks
Check the database name, username and password that you have supplied in config.inc.php.
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)
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?
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
I forgot to say that I'm not using xampp. I'm using wamp on windows, and lamp on ubuntu.
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.
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
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
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
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