Unsupported Screen Size: The viewport size is too small for the theme to render properly.

Importing users and privileges once again

forums forums SQLyog Using SQLyog Importing users and privileges once again

  • This topic is empty.
Viewing 9 reply threads
  • Author
    Posts
    • #8938
      turigeza
      Member

      Sorry I'm newbie I just wanted to clarify something …

      When I syncronize two databases on different hosts are USER privileges (global and also DB/table level) and USER details (name password) syncronised too!???

      Thank you for helping !

      Regards

      Geza Turi

    • #17521
      peterlaursen
      Participant

      No!

      Users and their privileges are stores in the DB named “mysql”.

      The sync tool only syncronizes the table data in the tables/columns you specify.

      Try viewing (probably you must be ROOT) the “user” table in the “mysql” database, and you'll se what I mean.

      I YOU have the privileges then in principple tou could syncronize the relevant tables within the “mysql” DataBase

      (tables “user” “user_info “columns_priv” and so on. But don't do that if the mySQL versions are not the same, since the format of these tables varies with different version.

    • #17522
      turigeza
      Member

      Of course:))

      Thank you very much !!

      Geza

    • #17523
      turigeza
      Member

      Maybe it would make a nice product feature !? To be able to transfer users and their previleges to a different server. You would of course need to have the right previleges to do this but least mysqlyog could keep track of the different versions of mySQL servers and transfer data accordingly!?

      ?

      If you think it's any good I could post it on the relevant forum. I would find it very useful!

      Kind Regards

      Geza

    • #17524
      peterlaursen
      Participant

      By the way I don't think you will be able to transfer passwords at all (sync or any other method).

      Passwords are encrypted in the base.

    • #17525
      turigeza
      Member

      I don't know what encrypted “in the base” means. 🙂 Sorry!

      As far as I know if you type the same passwords for two different user the encripted version is the same. I don't see why it wouldn't work.

      In my case the two MySQL server is different version so I'm not going to mess about with it. But I just thought it would be great feature of the product if it was able to transfer users as well as databases 🙂

      ?? Do you not think so ?

      Geza

    • #17526
      peterlaursen
      Participant

      I'm not sure..

      But probably the KEY used for encrytion is different with different MySQL installations.

      It's quite simple to test it if you have two servers. Make two identical user on each, SHOW the password and compare.

      It would be bad security if Passwords were portable.

    • #17527
      Ritesh
      Member

      Transferring user/db privileges between two MySQL DBs is not good from security point of view. Doing this would require modification of the MySQL system tables which is not recommended.

      Also, MySQL keeps changing their User privilege system from version to version therefore making the above option very dangerous.

    • #17528
      turigeza
      Member

      Fair enough …. Just want thank you for your help!

      R.

      Geza Turi

    • #17529
      Shadow
      Member

      MySql does not encrypt passwords, it merely creates a hash and stores that instead of password.

Viewing 9 reply threads
  • You must be logged in to reply to this topic.