[% SET CPANEL.CPVAR.dprefix = "../"; # Case 158089: Determine how much to chop off of the database name before returning to step 2 SET dbownerprefix = ExpVar.expand('$dbownerprefix'); SET prefix_length = dbownerprefix.length(); SET server_location = execute("Mysql", "locate_server" {}); # 94937: Errors can contain XSS. We don't want this function to output directly to the page. SET privsStr = ""; IF RAW_FORM.defined('ALL'); privsStr = "ALL"; ELSE; SET privs = []; FOR pair = RAW_FORM; IF pair.key.match('^privileges'); privs.push(pair.value); END; END; privsStr = privs.join(','); END; SET setprivs = execute('Mysql', 'set_privileges_on_database', { user => RAW_FORM.item('user'), database => RAW_FORM.item('db'), privileges => privsStr, }); %] [% WRAPPER '_assets/master.html.tt' app_key = 'mysql_database_wizard' -%]
[% locale.maketext("The [asis,MySQL] server‘s address is “[_1]”. When connecting to the [asis,MySQL] server you must specify this host.", server_location.data.remote_host) %]