Skip to main content

Granting account access to multiple databases

Comments

4 comments

  • Henry Carter
    Hi Dave, In order to achieve this we have an option as root user to map the DB of other site DB user using the below commandline "GRANT ALL PRIVILEGES ON dbTest.* To 'user'@'hostname' IDENTIFIED BY 'password';" But I believe this will make conflict while running the site assignend with the DB user(siteA_user) of the other site database(siteB_db). Ofcourse while using "WHM >> Home >> SQL Services >> Database Map Tool" will show error "Already owned by other user".
    0
  • daveatride
    Thank you for this info, what I found is I needed to use terminal and login into mysql as root and then I was able to grant the permission to the other userB on databaseA using GRANT SELECT ON siteA_db to siteB_usr@localhost IDENTIFIED BY {password}. All is working as desired now.
    0
  • cPanelLauren
    I'm glad to see that you were able to get your issue resolved at @daveatride @Henry Carter thanks for helping out!
    0
  • Henry Carter
    Your welcome:)
    0

Please sign in to leave a comment.