Search
Translations of this page:

Managing MySQL users

If you'd like to set up a separate MySQL user, do the following (you can also use these steps to modify any existing MySQL users):

The separate MySQL user will be able to access whatever database you choose, but the user will not be able to create any new databases.

  1. Sign in to Virtualmin (https://xxxxxxxx.fb.joyent.us).
  2. Select a domain from the drop-down in the left-hand navigation (your main domain should be already selected when you first login to Virtualmin). This is the domain you'll be adding a MySQL user to.
  3. Click Edit Mail and FTP Users in the left-hand navigation. You should now see a list of current users for your selected domain.
  4. Click Add a user to this server.
    • Each field name, such as Email address, is a clickable help link that will provide a brief description of each option in a popup window.
  5. In the Email address field enter a suitable username for your new user.
    • The user's login name will be based on what you enter here plus the domain name. So, if the user's name is joe and the domain name is example.com, Joe's login would be joe-example. You'll need to use this full username when you use it to connect to a database.
  6. In the Real name field enter a suitable name for your user (e.g., MySQL User).
  7. The Password field will already be populated with password for your user. We recommend using the password that Virtualmin has created as they are fairly secure and you should also make a note of this password in case you need it later.
  8. Click Email settings and for Primary email address enabled? select No.
  9. Click Other user permissions And make sure FTP login enabled? and SubVersion login enabled? have been set to No
  10. For Allow access to databases, select the databases you want this user to have access to. To select more than one database, hold down the Control key in Windows or the Apple key in in OS X
  11. Finally, click Create to create your new user.

You've now created a user with MySQL access.

Note: User names can be no longer than 16 characters. If your user name isn’t unique, Webmin will create one based on a combination of the user name you just entered and your primary username (e.g., mysql-primaryuser) and be found in Edit Mail and FTP Users > User > Other Users Permisions

 
facebook/kb/mysql-users.txt · Last modified: 2009/02/16 23:45 by kadlugan
 
Recent changes RSS feed Creative Commons License Driven by DokuWiki