1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

mysql access settings

Discussion in 'Plesk for Linux - 8.x and Older' started by JDCmedia, Apr 20, 2006.

  1. JDCmedia

    JDCmedia Guest

    0
     
    I was trying to access my mysql db remotely and found the following article:
    /////////////////////////////////////////////////////////////////////
    If it's a Plesk server running MYSQL, then you need to tell SQL to allow remote access to MYSQL from another server. Run the following on the Plesk MYSQL database server that you're trying to access remotely, changing the password, ip address, and username:

    To allow certain ips access to MYSQL:

    mysql -uadmin -p`cat /etc/psa/.psa.shadow` -Dmysql -e "insert into user values ('111.111.111.111', 'databaseusernamehere', password('databasepasswordhere'), 'Y', 'Y', 'Y', 'Y', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N')"

    and then run:

    mysql -uadmin -p`cat /etc/psa/.psa.shadow` -e "flush privileges;"
    (Note:_ The Y's and N's above indicate permissions)

    //////////////////////////////////////////////////////////////////
    I performed this by logging into each dedicated domain IP on my server. It seems that they all have access to ALL databases.
    Is there anything negative to doing this? If so, can someone tell me what the default settings are so I can change them back?
    Another note: I changed all the 'N' permissions to 'Y'. Is that bad? Where can I find out what each parameter permission is setting?

    :confused:
     
  2. falcon7

    falcon7 New Pleskian

    22
    57%
    Joined:
    Jul 1, 2002
    Messages:
    10
    Likes Received:
    0
    By changing N to Y, you have opened up your database to the world. Anyone can change anything, including Plesk virtual hosting info.

    VERY BAD.
     
Loading...