It works for me.
Code:
L 01/07/2011 - 10:15:56: -------- Mapchange to de_dust2 --------
[AMXX] Loaded 4 admins from file
L 01/07/2011 - 10:15:56: [forum_registration.amxx] connecting to: 127.0.0.1 root test
L 01/07/2011 - 10:15:57: [AMXX] Plugin ("forum_registration.amxx") is setting itself as failed.
L 01/07/2011 - 10:15:57: [AMXX] Plugin says: Can't connect to MySQL server on '127.0.0.1' (10061)
L 01/07/2011 - 10:15:57: [AMXX] Run time error 1 (plugin "forum_registration.amxx") - forced exit
Executing AMX Mod X Configuration File
reload
L 01/07/2011 - 10:16:56: -------- Mapchange to de_dust2 --------
[AMXX] Loaded 4 admins from file
L 01/07/2011 - 10:16:57: [forum_registration.amxx] connecting to: 127.0.0.1 root test
Executing AMX Mod X Configuration File
L 01/07/2011 - 10:17:53: [forum_registration.amxx] load query: SELECT * FROM phpbb_profile_fields_data WHERE pf_steamid='STEAM_0:0:2728585' AND verified='0'
L 01/07/2011 - 10:17:53: [forum_registration.amxx] i got here
L 01/07/2011 - 10:17:53: [forum_registration.amxx] SQL Error: Table 'test.phpbb_profile_fields_data' doesn't exist (1146)
It's my server console output first without mysql and then with mysql running
I added 1 more log_amx in line 32:
PHP Code:
log_amx("connecting to: %s %s %s %s", Host, User, Pass, Db)
The only problem I can see in this part is loading sql host, user, pass and db. If you add this line you will notice that they are updated only after additional mapchange because you didn't add any delay and tried to get them in plugin_init when config files were not executed yet.
__________________