Having issue on givving root privilage to newly created dabase user

November 3, 2014 785 views

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

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.

  • Hello,
    thanks for your answer

    when i try to install getting this error.
    sudo: apt-get: command not found

    im on centos 6.5 x64 by the way.

    also tried with sudo yum install phpmyadmin but no luck :(

    [root@mrcmanager ~]# sudo yum install phpmyadmin
    Loaded plugins: fastestmirror
    Setting up Install Process
    Loading mirror speeds from cached hostfile

    • base: mirror.vodien.com
    • extras: mirror.vodien.com
    • updates: mirror.vodien.com No package phpmyadmin available. Error: Nothing to do [root@mrcmanager ~]#
  • oops. I did not look to see you were using CentOS.

    Maybe a tutorial like this one will help:

    by Justin Ellingwood
    Database management is important for any site or application that must keep a large amount of information organized. This article will cover how to install phpMyAdmin, a web-based front end to MySQL and MariaDB database management systems, on a CentOS 6.4 VPS.
Have another answer? Share your knowledge.