Question

Having issue on givving root privilage to newly created dabase user

Posted November 3, 2014 2k views

hello,
first sorry to ask these noob question as i m totally new. not like entered in this field. actually i was trying to install a wordpress site for my own on digitalocean and having some trouble. i know my problems are on the very beginner level and will really appreciate your help.

1st problem
now things that poking my mind, there was a problem giving mysql user root privilage. after i create user i couldnt find “# User privilege specification” so wasnt able to give that user root privilege. so i choose user “root” inside my config.php file. is that gonna give me trouble in future?

and 2nd problem
can someone give me some video tutorial how can i install memcached for my wordpress?? or any alternative solution to speedup my site.

i really thank all who take time to read my post and help me out.
really appreciate guy’s…

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

For your 1st problem:

Have you installed phpMyadmin? If not, you should, as it can make user-management for your databases much easier.

sudo apt-get install phpmyadmin

Once you have that installed, post back if you need help setting up users.

You do not want to use user “root” for much of anything. In fact, I usually create a new user for each server I work on, and name it something that matches that particular server so I can remember (for example): server11_admin

then I give that user all the global privileges (including grant)…log out…log back in with that new user, and test that I have full privileges by creating a database, creating some sub-users, etc.

and then (and only then), if everything is good, I delete “root” completely.

The reason: bots and such will try to log in first with “root” as it is a default name.

Also, as you are creating new users, be sure to use strong passwords. I like to use this:
http://strongpasswordgenerator.com/ to generate good random passwords.

For problem2, someone else will have to chime in, as I shy away from cache applications since most of the sites I work with are smaller (less traffic) sites.

Submit an Answer