[% SET CPANEL.CPVAR.dprefix = "../"; SET dbprefix = ExpVar.expand('$dbprefix'); SET dbownerprefix = ExpVar.expand('$dbownerprefix'); SET max_length = 64 - dbownerprefix.length() - dbprefix; %] [% js_code = PROCESS js_block %] [% WRAPPER '_assets/master.html.tt' app_key = 'mysql_database_wizard' page_js = js_code -%]

[% locale.maketext("MySQL Databases allow you to store lots of information in an easy to access manner. The databases themselves are not easily read by humans. MySQL databases are required by many web applications including some bulletin boards, content management systems, and others. To use a database, you’ll need to create it. Only MySQL Users (different than mail or other users) that have privileges to access a database can read from or write to that database.") %]

[% IF CPANEL.feature('mysql') %]

[% locale.maketext("Step 1: Create A Database") %]

[% IF dbprefix %]
[% dbownerprefix %]
[% ELSE %] [% END %]
[% locale.maketext("[output,strong,Note:] [quant,_1,character,characters] max.", max_length) %]
[% ELSE %] [% END %]
[% PROCESS 'sqlui.tmpl' db_engine => 'mysql', -%] [% END #wrapper -%] [% BLOCK js_block %] [% IF CPANEL.feature('mysql') %] [% SET lex_path = locale.cpanel_get_lex_path('/usr/local/cpanel/base/cjt/sql.js', '/cjt/sql.js') %] [% IF lex_path %][% END %] [% SET mysql_server_info = execute('Mysql','get_server_information'); IF !mysql_server_info.status; THROW 'uapi', mysql_server_info.errors_as_string(); END; -%] [% END %] [% END %]