If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > adding users to mySQL

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-26-08, 08:08
juanc juanc is offline
Registered User
 
Join Date: Dec 2005
Posts: 8
adding users to mySQL

Hi

I'm very much a beginner but keen to learn as much as I can about running a Linux based web server...so much so I'm renting my own VPS and trying to teach myself.

I now have mySQL running successfully and I'm trying to configure it in respect of users and databases...essentially populating the database called "mysql".

I came across this helpful article.

http://www.linuxhelp.net/guides/mysql/

However my question is ...is it really necessary to do all the mysqladmin commands......it just that other articles I've seen suggest don't mention it.

Basically I just wanted to be sure either way first in case I messed anything up.

Thanks very much.
Reply With Quote
  #2 (permalink)  
Old 01-26-08, 09:47
snorp snorp is offline
Registered User
 
Join Date: Apr 2004
Location: Europe->Sweden->Stockholm
Posts: 71
I recommend that you have a look at the MySQL reference manual, section 5.5. Links to the manual: for MySQL 5.0 or MySQL 5.1.
Reply With Quote
  #3 (permalink)  
Old 01-31-08, 15:45
by0nder by0nder is offline
Registered User
 
Join Date: Jan 2008
Location: Kingdom of Sweden
Posts: 11
If you haven't done it already; you should run the mysql_secure_installation script that is shipped with MySQL. It will somewhat secure the installation (set a password for root, remove the test database, remove anonymous users etc.).

When setting up new users, you really shouldn't start doing so manually (that is, manually inserting them into the grant tables). Use CREATE USER, GRANT and REVOKE instead.

And I agree with snorp; Be sure to read the reference manual.
Reply With Quote
  #4 (permalink)  
Old 01-31-08, 15:53
snorp snorp is offline
Registered User
 
Join Date: Apr 2004
Location: Europe->Sweden->Stockholm
Posts: 71
Quote:
Originally Posted by by0nder
If you haven't done it already; you should run the mysql_secure_installation script that is shipped with MySQL. It will somewhat secure the installation (set a password for root, remove the test database, remove anonymous users etc.).
Good point!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On