(04-04-2019, 10:00 PM)klubbers Wrote: Good afternoon
I wonder if anybody can help me. I can successfully create sql databases however when I create a user for the databases using the panel I get a blank white page. I can't seem to find what the issue is.
I think this might have been the solution... try it and see!
Edit:
Code:
/etc/sentora/panel/modules/mysql_users/code/controller.ext.php
Find the function:
Code:
static function ExecuteCreateUser($uid, $username, $database, $access)
A couple of lines into the function you should see:
Code:
$currentuser = ctrl_users::GetUserDetail($uid);
Add this on a new line just below:
Code:
$username = $currentuser['username'] . '_' . $username;
Save the file.
Now try creating a user. Also, keep in mind that the maximum MySQL username length in the latest release of Sentora is around 17 characters, and this includes your Sentora username and the underscore. So, if you are using the zadmin account, a database user such as:
should be valid, but:
Code:
zadmin_thisnameistoolongforsentora
will cause an error. The latest github master repository has updated the length to 32 characters, but the version you have installed is most likely the previous release with the shorter limit.
Keith