• Regolamento Macrocategoria DEV
    Prima di aprire un topic nella Macrocategoria DEV, è bene leggerne il suo regolamento. Sei un'azienda o un hosting/provider? Qui sono anche contenute informazioni per collaborare con Sciax2 ed ottenere l'accredito nella nostra community!

Problema risolto Access denied for user 'root', mysql con xampp

Gigei

Utente Attivo
Autore del topic
26 Novembre 2014
313
41
Miglior risposta
1
Salve a tutt ragazzi ho un problema con xampp e pure il cms credo perche quando ho configurato tutto per aprire un server habbo mi dirigo su localhost:8080 e mi dice Warning: mysql_connect(): Access denied for user 'root'@'localhost' (using password: YES) in C:\xampp\htdocs\includes\mysql.php on line 13

Errore del CMS:
Non Riesco a connettermi al databse MySQL!

mi potete aiutare?
 
Re: Problemi con xampp e cms (CREDO)

Postami il config.php del tuo cms! Sicuramente ti sei dimenticato qualche passaggio della configurazione
 
Re: Problemi con xampp e cms (CREDO)

<?php
/*===================================================+
|| # HoloCMS - Website and Content Management System
|+===================================================+
|| # Copyright © 2008 Meth0d. All rights reserved.
|| #
Perfavore, Entra oppure Registrati per vedere i Link!

|+===================================================+
|| # HoloCMS is provided "as is" and comes without
|| # warrenty of any kind. HoloCMS is free software!
|+===================================================*/

/*-------------------------------------------------------*\
| ****** NOTE REGARDING THE VARIABLES IN THIS FILE ****** |
+---------------------------------------------------------+
| If you get any errors while attempting to connect to |
| MySQL, you will need to email your webhost because we |
| cannot tell you the correct values for the variables |
| in this file. |
\*-------------------------------------------------------*/

// ****** MASTER DATABASE SETTINGS ******
// These are the settings required to connect to your MySQL Database.
$sqlhostname = "localhost";
$sqlusername = "root";
$sqlpassword = ":emoji_relieved::emoji_relieved:1";
$sqldb = "hotel_db";

// ****** STATUS CHECKS SYSTEM ******
// This option will allow HoloCMS to perform full status checks. This,
// however, slows down your site A LOT. It is therefore disabled by
// default.
$enable_status_image = "0";

// ****** SITE PATH ******
// The full URL to your site; with an slash added on the end.
$path = "http://25.124.105.210/";

// ****** REFFERAL REWARD ******
// The amount of credits a user recieves upon referring a friend to the
// hotel. Set to '500' by default.
$reward = "50";

// ****** HOLOCMS SYSTEM ADMINISTRATOR ******
// User ID of the System Administrator. Will be granted access to sensitive
// features. Set to '1' by default. This setting will not change your
// ingame priveliges.
$sysadmin = "1";

// ****** HOLOCMS ENCRYPTION SYSTEM ******
// How HoloCMS stores passowrds.
// Do NOT manually change this unless you know what you are doing,
// doing so may corrupt your database.
$encryption = "new";
$hashtext = "";

// ****** BADGES ******
// Where badges are located.
$cimagesurl = "http://images.habbohotel.com/c_images/";
$badgesurl = "album1584/";

// ****** EMAIL VERIFY ******
// Email verification settings
$email_verify = true;
$email_force_verify = false;
$email_verify_reward = "500";
?>
 
Re: Problemi con xampp e cms (CREDO)

Il problema non è legato al cms e quindi di conseguenza ad habbo.. E' un problema del mysql...

La password inserita è corretta? Fai una cosa prova a cambiarla da qui: http://localhost:8080/security e poi la metti nel config..

Se hai problemi con xampp security vai nel phpmyadmin, vai su SQL query, e manda:

UPDATE mysql.user SET Password=PASSWORD('nuovapassword') WHERE User='root'; FLUSH PRIVILEGES;

Sposto nella sezione adatta.
 
La passworld e inserita correta quando accedo da localhost8080/security mi esce:
Notice: Undefined variable: cored in C:\xampp\htdocs\error.php on line 17

Warning: mysql_connect(): Access denied for user 'root'@'localhost' (using password: YES) in C:\xampp\htdocs\includes\mysql.php on line 13

Errore del CMS:
Non Riesco a connettermi al databse MySQL!


Puoi fare teamviewer? D:
 
Re: Problemi con xampp e cms (CREDO)

Il problema non è legato al cms e quindi di conseguenza ad habbo.. E' un problema del mysql...

La password inserita è corretta? Fai una cosa prova a cambiarla da qui: http://localhost:8080/security e poi la metti nel config..

Se hai problemi con xampp security vai nel phpmyadmin, vai su SQL query, e manda:

UPDATE mysql.user SET Password=PASSWORD('nuovapassword') WHERE User='root'; FLUSH PRIVILEGES;

Sposto nella sezione adatta.

Il problema è stato risolto, bisognava appunto mandare la query e settare la password per root, che di default non esiste su xampp, fatto ciò settarla nel config da usare (in questo caso del cms).

Segno come risolto.