Jump to content
The Uniform Server Community

[REQ] MySQL Server FAILS to shutdown, if you change 'root' to something else...


ShadowIllusion
 Share

Recommended Posts

Hi, for security reasons, I change username 'root' and pass 'root' to something else like 'abcdef' and '123456'...

 

After changing the username, the MySQL server would not shutdown if you use Start.exe > Stop Uniserver

 

Maybe it is located in UniServer\unicon\main\includes\functions.php LINE 342

 

$cmd3 = US_MYSQL_BIN."/mysqladmin.exe --port=$mysql_port --user=root --password=$mysql_password shutdown\"";

 

Look at the bolded parts. I changed it to 'abcdef' and now MySQL server can be turned off properly...

 

My main point:

Besides get_mysql_password(), please would you mind to also implement something like get_mysql_username() ?

Link to comment
Share on other sites

There is no need to change root name only the password is required. :)

 

You should never use the root account for anything else other than administration.

Or installing applications, this make life a little easier however you must create a restricted user for that application see Wiki for details.

 

All the best

Ric :)

Link to comment
Share on other sites

Yes but I decided to tighten the security a little further so I change the 'root' username, too...

 

Now in my UniServer conf, user 'root' does not exist... So attacker can't even guess the password... He must guess the username also...

 

Besides administration user, I also have created restricted user. Thanks for your advices :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...