Salut rania_nina.
Je pense que vous avez un problème d'installation.Envoyé par rania_nina
Je crois comprendre que vous avez deux serveurs, l'un doit être MariaDB et l'autre MySql Workbench.
Vous devez choisir entre l'un et l'autre, mais pas les deux à la fois, sauf si vous avez une raison d'en avoir deux.
Normalement, vous devez avoir :
--> apache
--> mysql disons workbench
--> php
--> phpmyadmin.
Est-ce que cette configuration correspond à xamp ?
Donc vous accédez à MariaDB et non à MySql workbench.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 Serveur : 127.0.0.1 via TCP/IP Type de serveur : MariaDB
A titre indicatif, je vous communique mon fichier "config.inc.php" :
Le fichier contient deux accès, l'un à MySql (port 3306) et l'autre à MariaDB (port 3307).
Code php : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215 <?php /*************************/ /* */ /* Sphere "Bleu" */ /* */ /*************************/ $cfg['blowfish_secret'] = 'a8b7c6d'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */ $i = 0; /******************************************/ /* */ /* Serveur : localhost pour MySql */ /* */ /******************************************/ $i++; /*---------------------*/ /* Authentication type */ /*---------------------*/ $cfg['Servers'][$i]['auth_type'] = 'http'; /*-------------------*/ /* Server parameters */ /*-------------------*/ $cfg['Servers'][$i]['verbose'] = 'MySql'; $cfg['Servers'][$i]['host'] = '127.0.0.1'; $cfg['Servers'][$i]['port'] = '3306'; $cfg['Servers'][$i]['connect_type'] = 'tcp'; $cfg['Servers'][$i]['compress'] = false; $cfg['Servers'][$i]['user'] = 'root'; $cfg['Servers'][$i]['password'] = 'root'; /*--------------------------------------------------*/ /* Select mysql if your server does not have mysqli */ /*--------------------------------------------------*/ $cfg['Servers'][$i]['extension'] = 'mysqli'; $cfg['Servers'][$i]['AllowNoPassword'] = true; /*-------------------------------------------*/ /* phpMyAdmin configuration storage settings */ /*-------------------------------------------*/ $cfg['Servers'][$i]['hide_db'] = '(information_schema|mysql|performance_schema|phpmyadmin|ibdata)'; /*--------------------------------------*/ /* User used to manipulate with storage */ /*--------------------------------------*/ $cfg['Servers'][$i]['controlhost'] = '127.0.0.1'; $cfg['Servers'][$i]['controluser'] = 'root'; $cfg['Servers'][$i]['controlpass'] = 'root'; /*-----------------------------*/ /* Storage database and tables */ /*-----------------------------*/ $cfg['Servers'][$i]['bookmarktable'] = 'pma__bookmark'; $cfg['Servers'][$i]['central_columns'] = 'pma__central_columns'; $cfg['Servers'][$i]['column_info'] = 'pma__column_info'; $cfg['Servers'][$i]['designer_settings'] = 'pma__designer_settings'; $cfg['Servers'][$i]['export_templates'] = 'pma__export_templates'; $cfg['Servers'][$i]['favorite'] = 'pma__favorite'; $cfg['Servers'][$i]['history'] = 'pma__history'; $cfg['Servers'][$i]['navigationhiding'] = 'pma__navigationhiding'; $cfg['Servers'][$i]['pdf_pages'] = 'pma__pdf_pages'; $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin'; $cfg['Servers'][$i]['recent'] = 'pma__recent'; $cfg['Servers'][$i]['relation'] = 'pma__relation'; $cfg['Servers'][$i]['table_coords'] = 'pma__table_coords'; $cfg['Servers'][$i]['table_info'] = 'pma__table_info'; $cfg['Servers'][$i]['table_uiprefs'] = 'pma__table_uiprefs'; $cfg['Servers'][$i]['tracking'] = 'pma__tracking'; $cfg['Servers'][$i]['userconfig'] = 'pma__userconfig'; $cfg['Servers'][$i]['usergroups'] = 'pma__usergroups'; $cfg['Servers'][$i]['users'] = 'pma__users'; $cfg['Servers'][$i]['savedsearches'] = 'pma__savedsearches'; /********************************************/ /* */ /* Serveur : localhost pour MariaDB */ /* */ /********************************************/ $i++; /*---------------------*/ /* Authentication type */ /*---------------------*/ $cfg['Servers'][$i]['auth_type'] = 'http'; /*-------------------*/ /* Server parameters */ /*-------------------*/ $cfg['Servers'][$i]['verbose'] = 'MariaDB'; $cfg['Servers'][$i]['host'] = '127.0.0.1'; $cfg['Servers'][$i]['port'] = '3307'; $cfg['Servers'][$i]['compress'] = false; $cfg['Servers'][$i]['user'] = 'root'; $cfg['Servers'][$i]['password'] = 'root'; /*--------------------------------------------------*/ /* Select mysql if your server does not have mysqli */ /*--------------------------------------------------*/ $cfg['Servers'][$i]['extension'] = 'mysqli'; $cfg['Servers'][$i]['AllowNoPassword'] = false; /*-------------------------------------------*/ /* phpMyAdmin configuration storage settings */ /*-------------------------------------------*/ $cfg['Servers'][$i]['hide_db'] = '(information_schema|mysql|performance_schema|phpmyadmin|ibdata)'; /*--------------------------------------*/ /* User used to manipulate with storage */ /*--------------------------------------*/ $cfg['Servers'][$i]['controlhost'] = '127.0.0.1'; $cfg['Servers'][$i]['controluser'] = 'root'; $cfg['Servers'][$i]['controlpass'] = 'root'; /*-----------------------------*/ /* Storage database and tables */ /*-----------------------------*/ $cfg['Servers'][$i]['bookmarktable'] = 'pma__bookmark'; $cfg['Servers'][$i]['central_columns'] = 'pma__central_columns'; $cfg['Servers'][$i]['column_info'] = 'pma__column_info'; $cfg['Servers'][$i]['designer_coords'] = 'pma__designer_coords'; $cfg['Servers'][$i]['designer_settings'] = 'pma__designer_settings'; $cfg['Servers'][$i]['export_templates'] = 'pma__export_templates'; $cfg['Servers'][$i]['favorite'] = 'pma__favorite'; $cfg['Servers'][$i]['history'] = 'pma__history'; $cfg['Servers'][$i]['navigationhiding'] = 'pma__navigationhiding'; $cfg['Servers'][$i]['pdf_pages'] = 'pma__pdf_pages'; $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin'; $cfg['Servers'][$i]['recent'] = 'pma__recent'; $cfg['Servers'][$i]['relation'] = 'pma__relation'; $cfg['Servers'][$i]['table_coords'] = 'pma__table_coords'; $cfg['Servers'][$i]['table_info'] = 'pma__table_info'; $cfg['Servers'][$i]['table_uiprefs'] = 'pma__table_uiprefs'; $cfg['Servers'][$i]['tracking'] = 'pma__tracking'; $cfg['Servers'][$i]['userconfig'] = 'pma__userconfig'; $cfg['Servers'][$i]['usergroups'] = 'pma__usergroups'; $cfg['Servers'][$i]['users'] = 'pma__users'; $cfg['Servers'][$i]['savedsearches'] = 'pma__savedsearches'; /*******************************/ /* */ /* Divers hors serveur */ /* */ /*******************************/ /*----------------------------------*/ /* Removes the warning tables pmadb */ /*----------------------------------*/ //$cfg['PmaNoRelation_DisableWarning'] = true; /*----------------------------*/ /* Generic parameters */ /*----------------------------*/ $cfg['AllowUserDropDatabase'] = false; // $cfg['ForceSSL'] = true; $cfg['ServerDefault'] = 1; $cfg['ShowHint'] = true; $cfg['VersionCheck'] = true; /*--------------------------------------*/ /* Setting the navigation panel */ /*--------------------------------------*/ $cfg['NumRecentTables'] = 0; $cfg['NumFavoriteTables'] = 0; $cfg['NavigationDisplayServers'] = false; /*--------------------*/ /* Main Panel */ /*--------------------*/ $cfg['ShowPhpInfo'] = true; /*----------------*/ /* Langue */ /*----------------*/ $cfg['DefaultLang'] = 'fr'; $cfg['DefaultConnectionCollation'] = 'latin1_general_ci'; /*--------------------------------*/ /* Customizing the design */ /*--------------------------------*/ //$cfg['DefaultDisplay'] = 'vertical'; $cfg['MaxRows'] = 50; $cfg['SendErrorReports'] = 'always'; /*---------------------------------------------------*/ /* Web server upload/save/import directories */ /*---------------------------------------------------*/ $cfg['SaveDir'] = ''; $cfg['UploadDir'] = ''; ?>
Dans la fenêtre de bienvenue de PhpMyAdmin, au milieu, il y a " Serveur courant" avec certainement "MariaDB".
Dans mon exemple, cela correspond à la variable :
Elle est référencée deux fois car j'ai deux serveurs, l'un est MySql et l'autre MariaDB.
Code php : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 $cfg['Servers'][$i]['verbose'] = 'MySql'; $cfg['Servers'][$i]['verbose'] = 'MariaDB';
@+
Partager