MySQL Database Read-Only

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Cyber Fucker
    Hmm
    • Sep 2005
    • 12642

    #1

    MySQL Database Read-Only

    Is there is an easy and quick way to make MySQL database unwritable (possibly in phpmyadmin) ?

    So when I am going to edit it I make it writable for a while and then after this I make it read-only for a better security.
  • Varius
    Confirmed User
    • Jun 2004
    • 6890

    #2
    Originally posted by Cyber Fucker
    Is there is an easy and quick way to make MySQL database unwritable (possibly in phpmyadmin) ?

    So when I am going to edit it I make it writable for a while and then after this I make it read-only for a better security.
    GRANT only the SELECT privilege to the user when you want it to be read-only. When you need to modify data, then use a different user with more privileges, or temporarily grant UPDATE/INSERT/DELETE whatever to your user, do you thing, and remove those once again.
    Skype variuscr - Email varius AT gmail

    Comment

    • Cyandin
      Confirmed User
      • Aug 2008
      • 1723

      #3
      Originally posted by Varius
      GRANT only the SELECT privilege to the user when you want it to be read-only. When you need to modify data, then use a different user with more privileges, or temporarily grant UPDATE/INSERT/DELETE whatever to your user, do you thing, and remove those once again.
      </thread>

      Comment

      • LoveSandra
        So Fucking Banned
        • Aug 2008
        • 10551

        #4
        bump bump

        Comment

        • Cyber Fucker
          Hmm
          • Sep 2005
          • 12642

          #5
          Originally posted by Varius
          GRANT only the SELECT privilege to the user when you want it to be read-only. When you need to modify data, then use a different user with more privileges, or temporarily grant UPDATE/INSERT/DELETE whatever to your user, do you thing, and remove those once again.
          Ok. I will try this! Thanks!

          Comment

          • Davy
            Confirmed User
            • Apr 2006
            • 4323

            #6
            Originally posted by Varius
            GRANT only the SELECT privilege...
            Originally posted by Cyandin
            </thread>
            Originally posted by LoveSandra
            bump bump
            Fail!
            ---
            ICQ 14-76-98 <-- I don't use this at all

            Comment

            • woj
              <&(©¿©)&>
              • Jul 2002
              • 47882

              #7
              Originally posted by Varius
              GRANT only the SELECT privilege to the user when you want it to be read-only. When you need to modify data, then use a different user with more privileges, or temporarily grant UPDATE/INSERT/DELETE whatever to your user, do you thing, and remove those once again.
              Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
              Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
              Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager

              Comment

              Working...