Jump to content
View in the app

A better way to browse. Learn more.

The Uniform Server Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

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

Featured Replies

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() ?

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 :)

  • Author

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 :)

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...

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.