Bonjour, j'ai un soucis pour me connecter à mon site après que je l'ai envoyé sur le serveur distant. En local j'ai pas de problème
Voici l'erreur retourné
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12 $dns = 'mysql:host=$server;dbname=data_base'; $user = 'login'; $password = 'pass'; $connect_db = new PDO ($dns, $user, $password); $connect_db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $option = array ( PDO:: MYSQL_ATTR_INIT_COMMAND => "SET MANES UTF-8", ); } catch (Exception $e) { echo "<h1>Connection au serveur impossibe</h1>", $e->getMessage(); die(); }
Connection au serveur impossibe
SQLSTATE[42000] [1226] User 'user_name' has exceeded the 'max_user_connections' resource (current value: 4)
Partager