Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Database Server
  • Search

Create Database for existing database user

Questions regarding the Database Server
MySQL, PostgreSQL, MariaDB, Percona Server, phpMyAdmin, phpPgAdmin
Post Reply
  • Print view
Advanced search
4 posts • Page 1 of 1
mericson
Posts: 44
Joined: Thu Apr 06, 2017 12:37 am

Create Database for existing database user
  • Quote

Post by mericson » Thu Apr 06, 2017 12:40 am

Is there a way to create a database with access for an existing database user? I don't really want to have to create/manage a user for ever database created. CPanel and some other web panels make it easy to associate users with databases without having to use MySQL.
Top

mericson
Posts: 44
Joined: Thu Apr 06, 2017 12:37 am

Re: Create Database for existing database user
  • Quote

Post by mericson » Thu Apr 06, 2017 12:49 am

I discovered if I create another database using an existing database username, that user will have permissions added for the new database. However, it also requires me to enter the password again so there is a potential of overwriting the existing password which may not be desireable.

IMHO there should be an option to create a database using an existing user separate from creating a database while creating a new user. That could also prevent inadvertently overwriting the password of an existing database user.
Top

Falzo
Posts: 60
Joined: Mon Mar 28, 2016 8:49 am

Re: Create Database for existing database user
  • Quote

Post by Falzo » Thu Apr 06, 2017 6:01 pm

you might also want to try what is happening if you remove one of those databases. my guess would be your db user is getting removed as well, which may break things for the second database and so on...
Top

mericson
Posts: 44
Joined: Thu Apr 06, 2017 12:37 am

Re: Create Database for existing database user
  • Quote

Post by mericson » Fri Apr 07, 2017 1:41 am

Yea, good point. But a user database seems akward. For a aingle site which might have CMS, e-commerce, forums, etc. Why force a database user for each database?
Top


Post Reply
  • Print view

4 posts • Page 1 of 1

Return to “Database Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password