lo que trato de explicar es el siguiente archivo:
config.inc
Código PHP:
<?php
/*
* This is needed for cookie based authentication to encrypt password in
* cookie
*/
$cfg['blowfish_secret'] = 'xampp'; /* YOU SHOULD CHANGE THIS FOR A MORE SECURE COOKIE AUTH! */
/*
* Servers configuration
*/
$i = 0;
/*
* First server
*/
$i++;
/* Authentication type and info */
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
$cfg['Servers'][$i]['extension'] = 'mysql';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
no existe ninguna contraseña de por medio, entonces lo que no logro entender es porque tengo que colocar en mi hoja gechisa.php el siguiente codigo:
Código PHP:
<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_gechisa = "localhost";
$database_gechisa = "gechisa";
$username_gechisa = "AQUI_TU_USUARIO";
$password_gechisa = "AQUI_TU_CONTRASEÑA";
$gechisa= mysql_connect($hostname_gechisa, $username_gechisa, $password_gechisa) or trigger_error(mysql_error(),E_USER_ERROR);
?>
si supuestamente el username de mi localhost es "root" y mi password es '', es lo que no entiendo, me dejo entender?