how to create mysql user in linux and grant full access , database update

Dear Experts:

I am having redhat enterprise linux with mysql server running, I would like to create the mysql user and grant full access to create database, tables , records and do all modifications for whatever this user does, would prefer to do this in linux command level, I have mysql root user credentials

2. How to change the mysql root user password.

3. how to drop the database and import the updated or backup database with the same name, I mean daily backup are taken if any day want to revert to the one day old database would like to drop/delete the running database and import the oneday old data base.

please suggest, thanks in advance.
D_wathiAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ray PaseurCommented:
I think you would want to start by learning the basics of MySQL.  It has queries to do all of these things.  it's documented in the online man pages.  A good place to start might be here:
http://www.mysql.com/

There are many good online learning resources that are well-reviewed, as well as books on the subject.  But as you will see when you start the learning process, there are days, if not weeks, of study required to answer broad questions like these!
http://www.amazon.com/Best-Sellers-Books-MySQL-Guides/zgbs/books/6133986011
http://education.oracle.com/pls/web_prod-plq-dad/ou_product_category.getFamilyPage?p_family_id=406
http://www.w3schools.com/sql/
https://www.udemy.com/mysql-database-for-beginners2/
http://www.lynda.com/MySQL-training-tutorials/260-0.html
0
Tim PhillipsWindows Systems AdministratorCommented:
Question 1:
mysql> CREATE USER 'monty'@'localhost' IDENTIFIED BY 'some_pass';
mysql> GRANT ALL PRIVILEGES ON *.* TO 'monty'@'localhost' WITH GRANT OPTION;

Question 2:
mysql> UPDATE mysql.user SET Password=PASSWORD('MyNewPass') WHERE User='root';
mysql> FLUSH PRIVILEGES;

Question 3: part 1
mysql> drop database <db_name>

Question 3: part 2
export:
mysql> mysqldump -u [username] -p [database_name] > [dumpfilename.sql]

import:
mysql> mysql -u [username] -p [database_name] < [dumpfilename.sql]
0
gheistCommented:
# mysql_secure_installation
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
MySQL Server

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.