introduction screenshots faq forum blog modules components download
Please use the search function and/or read the FAQ first.

Go to Topic: PreviousNext
Go to: Message ListNew TopicSearchLog InPrint View

Acces refuse pour ultilisateur



Posted by: ClaudePatrice
February 21, 2008 02:03PM
EasyPHP 2.0b1

Bonjour

Apache et Mysql au vert. Quand je fais un fichier test uniquement php cela fonction en local. Quand je fais un fichier test qui appel la bas MySQL. (J'utilise le fichier du livre PHP MySQL Pour les nul(C'est mon niveau actuel)) j'obtient les message erreur suivants

Warning: mysqli_connect() [function.mysqli-connect]: (28000/1045): Accès refusé pour l'utilisateur: 'ODBC'@'@localhost' (mot de passe: NON) in E:\PhPMySQL\EasyPHP 2.0b1\www\test-mysql.php on line 13

Warning: mysqli_query() expects parameter 1 to be mysqli, boolean given in E:\PhPMySQL\EasyPHP 2.0b1\www\test-mysql.php on line 15

Warning: mysqli_error() expects parameter 1 to be mysqli, boolean given in E:\PhPMySQL\EasyPHP 2.0b1\www\test-mysql.php on line 18

Erreur:

Quelqu'un a une idée de mon probleme. Mon pare feu McAffy a Apache et mySQL Avec acces total, j'ai ouvert un port 3306 et le port 80 est libre.
Merci
Claude
Options: ReplyQuote
Posted by: Amour
February 21, 2008 02:45PM
>>ODBC'@'@localhost

Ce n'est pas le bon user, utilisez par défaut "root" sans mot de passe ;)
Options: ReplyQuote
Posted by: ClaudePatrice
February 21, 2008 02:53PM
Merci mais on met cela ou dans quel fichier?
CLAUDE
Options: ReplyQuote
Posted by: ClaudePatrice
February 21, 2008 03:14PM
J'ai changer le user
Fichier originale
$host="localhost";
$user="";
$password="";
qui donne 'ODBC'@'@localhost
et quand je met Root je recupere 'ROOT'@'@localhost
Tous les user et mot de passe sont vides dans les fichier PHP.INI et My.INI ou dois je encore regarder?
merci
Claude
Options: ReplyQuote
Posted by: Aphrael
February 21, 2008 04:01PM
root
en minuscules, sans rien. Et le password vide.

Aphrael.

--
The Doctor: Sonic Blaster ? Fifty-first century ? Weapons factory at Villengard, yes?
Captain Jack Harkness: You've been to the factories?
The Doctor: Once.
Captain Jack Harkness: Well, they're gone now. The main reactor went critical, destroyed the whole lot.
The Doctor: Like I said. Once.
Options: ReplyQuote
Posted by: ClaudePatrice
February 21, 2008 05:03PM
Merci super
est que en PHP minuscule et majuscule sont traités independement?
claude
Options: ReplyQuote
Posted by: Amour
February 21, 2008 06:03PM
En général oui, de même dans MySQL, donc il faut faire attention à la casse ;)
Options: ReplyQuote
Posted by: mega-squall
February 22, 2008 11:26AM
Je te déconseille de mettre ces valeurs dans le PHP.INI
Essaye plutôt d'utiliser la syntaxe suivante :

mysqli_connect("localhost", "root", "", $database);

Voir la doc ici :
[php.net]

---
mega-squall
Options: ReplyQuote


Go to: Message ListSearchLog In
Your Name: 
Your Email: 
Subject: 
Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.