Installation
Brought to you by:
jberanek
Hi There,
I am trying to configure the mrbs from scratch to be used for my schools ICT suites and iPad bookings.
When I run localhost/mrbs/web page I am getting the following error:
Uncaught exception 'MRBS\DBException' in C:\xampp\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 C:\xampp\htdocs\mrbs\web\lib\MRBS\DBFactory.php(25): MRBS\DB->__construct('localhost', 'root', '12345', 'mrbs', false, 3306)
#1 C:\xampp\htdocs\mrbs\web\dbsys.inc(46): MRBS\DBFactory::create('mysql', 'localhost', 'root', '12345', 'mrbs', false, NULL)
#2 C:\xampp\htdocs\mrbs\web\dbsys.inc(96): MRBS\db()
#3 C:\xampp\htdocs\mrbs\web\defaultincludes.inc(30): require_once('C:\\xampp\\htdocs...')
#4 C:\xampp\htdocs\mrbs\web\index.php(9): require('C:\\xampp\\htdocs...')
#5 {main}
MRBS GET: Array
(
)
MRBS POST: Array
(
)
MRBS SESSION: Array
Apologises for the bigger text. Any help would be greatly appreciated :)
Either your MySQL username and password are incorrect, or that database user does not have sufficient rights.
You can get rid of the big text by using the Markdown. See the ? symbol for details. I've fixed the big text above.
View and moderate all "support-requests Discussion" comments posted by this user
Mark all as spam, and block user from posting to "DO NOT USE - Support Requests"
Hi Campbell,
Thanks for the quick responce.
Where would I check this? Is it in config.php?
Yes, you need to enter the database username details into config.inc.php.
View and moderate all "support-requests Discussion" comments posted by this user
Mark all as spam, and block user from posting to "DO NOT USE - Support Requests"
Can you give me an examlpe of this would look within the config file?
Thanks
See the config.inc.php file for details. It would look like this:
At the very least you will need to set the values for $db_database, $db_login and $db_password.
Last edit: Campbell Morrison 2018-01-08
View and moderate all "support-requests Discussion" comments posted by this user
Mark all as spam, and block user from posting to "DO NOT USE - Support Requests"
So in PHPMyAdmin I have named my database "mrbs"
Would the value for this then be: $db_database ="mrbs"
And If I wanted to created a user called "admin" with the password "12345" would I have to created these fields within the mrbs_users table as well as define it in the config.inc.php?
Yes, set
You will also need to set the values of $db_login and $db_password to be the username and password of a database (not MRBS) user. If you've set those correctly you should then be able to launch MRBS in a browser. The first time you do that click on the "User list" link in the top right hand corner. You will then be invited to create your first MRBS user, which will automatically have admin rights. Then login with the details you have just created and crreate more users ans areas and rooms. Note that you should not create MRBS users using phpMyAdmin.
... so if you have already created some MRBS users in the users table using phpMyAdmin then delete them before you do anything else.
Hello,
I also get the same error but it works perfect in local system.
Below is my config files -
Kindly help
Last edit: Campbell Morrison 2018-10-12
Well it's actually a different error message. Try changing $db_host from 'localhost' to '127.0.0.1'. See this answer on stackoverflow.
By the way, if that's your real password I would change it now that it has been made public.
My humble thanks, this worked after changing to 127.0.0.1. Thanks many!!!
Last edit: Campbell Morrison 2018-10-16
Sir i am getting this error plz help me to slove this problem
Either the database user details are incorrect or the user doesn't have access rights for that database.
Hi @cambell morrison I have see youtube video tutorial, install documents, read a lot of your post, included this one. I've the same problem (I guess) with the database (this time, i recently try 2 times in macos and now in windows). I set properly the config.inc.php and phpmyadmin, but i'm stuck here.
Can you help me? Thanks for all of your posts.
Sorry for the anonymous message, i didn't log. I send also my config.inc
Have you tried using 127.0.0.1 instead of localhost?
Yes Sir. But report the same error (just localhost changed in 127.0.0.1) And also, I can't connect another pc with another connection. (I tried "IP Adress/mrbs/web) ("all granted" already change)
Thank you so much for your help!
Last edit: Antimarck 2020-01-11
Yes Sir. But report the same error (just localhost changed in 127.0.0.1) And also, I can't connect another pc with another connection. (I tried "IP Adress/mrbs/web) ("all granted" already change)
Thank you so much for your help!
Are you using a MariaDB or MySQL?
If you are using MariaDB try
See https://sourceforge.net/p/mrbs/support-requests/1523/.
When I try to connect "Navicat db", i use Mysql, but when the database is connected on the right appear: "server Version: 10.4.11-MariaDB" so it means i'm using maria?. I try 3308 in config.inc but never change. In Navicat just dosen't connect.
edit: I see now in phpmyadmin: "Mariadb" I need to change?
edit2: I see your link, i check also the name of user (root) host (localhost) global ALL PRIVILEGES Yes.
Last edit: Antimarck 2020-01-11
I know it's a silly question, but I assume the database name, username and password are all correct in your config file?
If so, then try
and also
E_DEPRECATED in C:\xampp\htdocs\mrbs\web\functions.inc at line 801
How can i solve this error, please help me someone!
Which version of MRBS are you running?