Access denied for user

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
JR10
Posts: 20
Joined: 20 Sep 2011, 18:19

Access denied for user

Post by JR10 »

I uploaded mantis 1.2.8 to my website.
I configured it (I think).
I go to http://mywebsite.com/mantis
I get this:

Code: Select all

APPLICATION ERROR #400
Database connection failed. Error received from database was #1045: Access denied for user 'JR10'@'localhost' (using password: YES).

Please use the "Back" button in your web browser to return to the previous page. There you can correct whatever problems were identified in this error or select another action. You can also click an option from the menu bar to go directly to a new section.

Previous non-fatal errors occurred. Page contents follow.

SYSTEM WARNING: mysql_connect() [function.mysql-connect]: Access denied for user 'JR10'@'localhost' (using password: YES)
IDK what to do.

Here is my config_inc.php:

Code: Select all

<?php
# MantisBT - a php based bugtracking system

# MantisBT is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# MantisBT is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with MantisBT.  If not, see <http://www.gnu.org/licenses/>.

/**
 * @package MantisBT
 * @copyright Copyright (C) 2000 - 2002  Kenzaburo Ito - kenito@300baud.org
 * @copyright Copyright (C) 2002 - 2011  MantisBT Team - mantisbt-dev@lists.sourceforge.net
 * @link http://www.mantisbt.org
 */

# This sample file contains the essential files that you MUST
# configure to your specific settings.  You may override settings
# from config_defaults_inc.php by assigning new values in this file

# Rename this file to config_inc.php after configuration.

# In general the value OFF means the feature is disabled and ON means the
# feature is enabled.  Any other cases will have an explanation.

# Look in http://www.mantisbt.org/docs/ or config_defaults_inc.php for more
# detailed comments.

# --- Database Configuration ---
$g_hostname      = 'localhost';
$g_db_username   = 'JR10';
$g_db_password   = '*******';
$g_database_name = 'bugtracker';
$g_db_type       = 'mysql';

# --- Anonymous Access / Signup ---
$g_allow_signup				= ON;
$g_allow_anonymous_login	= OFF;
$g_anonymous_account		= '';

# --- Email Configuration ---
$g_phpMailer_method		= PHPMAILER_METHOD_MAIL; # or PHPMAILER_METHOD_SMTP, PHPMAILER_METHOD_SENDMAIL
$g_smtp_host			= 'localhost';			# used with PHPMAILER_METHOD_SMTP
$g_smtp_username		= '';					# used with PHPMAILER_METHOD_SMTP
$g_smtp_password		= '';					# used with PHPMAILER_METHOD_SMTP
$g_administrator_email  = 'administrator@example.com';
$g_webmaster_email      = 'webmaster@example.com';
$g_from_name			= 'Mantis Bug Tracker';
$g_from_email           = 'noreply@example.com';	# the "From: " field in emails
$g_return_path_email    = 'admin@example.com';	# the return address for bounced mail
$g_email_receive_own	= OFF;
$g_email_send_using_cronjob = OFF;

# --- Attachments / File Uploads ---
$g_allow_file_upload	= ON;
$g_file_upload_method	= DATABASE; # or DISK
$g_absolute_path_default_upload_folder = ''; # used with DISK, must contain trailing \ or /.
$g_max_file_size		= 5000000;	# in bytes
$g_preview_attachments_inline_max_size = 256 * 1024;
$g_allowed_files		= '';		# extensions comma separated, e.g. 'php,html,java,exe,pl'
$g_disallowed_files		= '';		# extensions comma separated

# --- Branding ---
$g_window_title			= 'MantisBT';
$g_logo_image			= 'images/mantis_logo.gif';
$g_favicon_image		= 'images/favicon.ico';

# --- Real names ---
$g_show_realname = OFF;
$g_show_user_realname_threshold = NOBODY;	# Set to access level (e.g. VIEWER, REPORTER, DEVELOPER, MANAGER, etc)

# --- Others ---
$g_default_home_page = 'my_view_page.php';	# Set to name of page to go to after login
andrea.mills
Posts: 35
Joined: 22 Jul 2011, 12:38

Re: Access denied for user

Post by andrea.mills »

does JR10 have access to the mantis database (by default named bugtracker)?
JR10
Posts: 20
Joined: 20 Sep 2011, 18:19

Re: Access denied for user

Post by JR10 »

Sorry, but i'm new to this.
Can you tell me how?
JR10
Posts: 20
Joined: 20 Sep 2011, 18:19

Re: Access denied for user

Post by JR10 »

I figured it out, exactly what I did:
I download 1.2.8
Uploaded it
Installed it, site.com/mantisbt/admin/install.php
After that there is login to mantis, but i don't know the admin account, how can i make a new admin account, or login to the existing one.
JR10
Posts: 20
Joined: 20 Sep 2011, 18:19

Re: Access denied for user

Post by JR10 »

Sorry for triple posting, ( the other two is waiting for approval ).
But I fixed both two problems now my problem is.
when I signup, the capatcha image don't show, but the field is there, i mean it asks for capatcha, and i can't see the image.
And, when I sign up there is no password field o.O
And I didn't recieve the email, even though I enabled it.
Thanks in advance.
JR10
Posts: 20
Joined: 20 Sep 2011, 18:19

Re: Access denied for user

Post by JR10 »

Please I really need help.
My problem is:
If I register there is no password field, and there is no emails sent, even though I did exactly what the pinned topic said.
IDC If I can't make email works, but about the password :(.
Is it possible for me to change the way login works, I saw it in another site using mantis, they had a different login system.
Is it possible to make a new login system, using Yahoo, or MSN, or openID?

My Config:

Code: Select all

<?php
	
	$g_signup_use_captcha = OFF;
	
	$g_lost_password_feature = ON;
	
	$g_allow_signup    = ON;  //allows the users to sign up for a new account
	$g_enable_email_notification = ON; //enables the email messages
	$g_phpMailer_method = PHPMAILER_METHOD_SMTP;
	$g_smtp_host = 'smtp.gmail.com';
	$g_smtp_connection_mode = 'tls';
	$g_smtp_port = 587;
	$g_smtp_username = 'JR10.cx10@gmail.com'; //replace it with your gmail address
	$g_smtp_password = '****' //replace it with your gmail password
	
	
?>
Didn't post the full config, the rest is the db config.
andrea.mills
Posts: 35
Joined: 22 Jul 2011, 12:38

Re: Access denied for user

Post by andrea.mills »

Mantis is created with default admin account:
username: administrator
password: root
JR10
Posts: 20
Joined: 20 Sep 2011, 18:19

Re: Access denied for user

Post by JR10 »

JR10 wrote:Please I really need help.
My problem is:
If I register there is no password field, and there is no emails sent, even though I did exactly what the pinned topic said.
IDC If I can't make email works, but about the password :(.
Is it possible for me to change the way login works, I saw it in another site using mantis, they had a different login system.
Is it possible to make a new login system, using Yahoo, or MSN, or openID?

My Config:

Code: Select all

<?php
	
	$g_signup_use_captcha = OFF;
	
	$g_lost_password_feature = ON;
	
	$g_allow_signup    = ON;  //allows the users to sign up for a new account
	$g_enable_email_notification = ON; //enables the email messages
	$g_phpMailer_method = PHPMAILER_METHOD_SMTP;
	$g_smtp_host = 'smtp.gmail.com';
	$g_smtp_connection_mode = 'tls';
	$g_smtp_port = 587;
	$g_smtp_username = 'JR10.cx10@gmail.com'; //replace it with your gmail address
	$g_smtp_password = '****' //replace it with your gmail password
	
	
?>
Didn't post the full config, the rest is the db config.
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Access denied for user

Post by atrol »

Please use Search before posting and read the Manual
JR10
Posts: 20
Joined: 20 Sep 2011, 18:19

Re: Access denied for user

Post by JR10 »

As you can see in my config, I did, it didn't work.
No emails are sent.
Post Reply