How to login to the MySQL in Ubuntu from Windows?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
2
down vote

favorite












How to access MySQL directly with MySQL ac but skip the Ubuntu login?
As I PuTTY to MySQL server in Ubuntu, the first login is Ubuntu account. I would like to skip this part and login to the MySQL server with MySQL account directly.



Thanks!







share|improve this question
























    up vote
    2
    down vote

    favorite












    How to access MySQL directly with MySQL ac but skip the Ubuntu login?
    As I PuTTY to MySQL server in Ubuntu, the first login is Ubuntu account. I would like to skip this part and login to the MySQL server with MySQL account directly.



    Thanks!







    share|improve this question






















      up vote
      2
      down vote

      favorite









      up vote
      2
      down vote

      favorite











      How to access MySQL directly with MySQL ac but skip the Ubuntu login?
      As I PuTTY to MySQL server in Ubuntu, the first login is Ubuntu account. I would like to skip this part and login to the MySQL server with MySQL account directly.



      Thanks!







      share|improve this question












      How to access MySQL directly with MySQL ac but skip the Ubuntu login?
      As I PuTTY to MySQL server in Ubuntu, the first login is Ubuntu account. I would like to skip this part and login to the MySQL server with MySQL account directly.



      Thanks!









      share|improve this question











      share|improve this question




      share|improve this question










      asked May 24 at 2:40









      Denise Wun

      132




      132




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          3
          down vote



          accepted










          Use this syntax in command prompt:



          mysql -h <mysql_server_url> -P <port_number> -u <username> -p


          Example:



          mysql -h xyz.rds.aws.com -P 3306 -u root -p





          share|improve this answer






















          • Thanks okcomputer_kid. However, why i cannot login as root but can login as a normal user? and seems i cannot change password?
            – Denise Wun
            May 24 at 4:33











          • Have you lost your root password? If you have lost your password, you have to ssh connect to your ubuntu server , change root password there.
            – okcomputer_kid
            May 24 at 4:43











          • mysqladmin -u root -p password newpass Use this command to update your root password. Donot replace password with anything. Only replace newpass with your password
            – okcomputer_kid
            May 24 at 4:44











          • But I can login as root in ubuntu so the password is correct. Any other suggestion? Thanks!
            – Denise Wun
            May 24 at 6:22










          • Problem fixed after grant the privileges to root, thanks.
            – Denise Wun
            May 24 at 7:22










          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "89"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );








           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1039627%2fhow-to-login-to-the-mysql-in-ubuntu-from-windows%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          3
          down vote



          accepted










          Use this syntax in command prompt:



          mysql -h <mysql_server_url> -P <port_number> -u <username> -p


          Example:



          mysql -h xyz.rds.aws.com -P 3306 -u root -p





          share|improve this answer






















          • Thanks okcomputer_kid. However, why i cannot login as root but can login as a normal user? and seems i cannot change password?
            – Denise Wun
            May 24 at 4:33











          • Have you lost your root password? If you have lost your password, you have to ssh connect to your ubuntu server , change root password there.
            – okcomputer_kid
            May 24 at 4:43











          • mysqladmin -u root -p password newpass Use this command to update your root password. Donot replace password with anything. Only replace newpass with your password
            – okcomputer_kid
            May 24 at 4:44











          • But I can login as root in ubuntu so the password is correct. Any other suggestion? Thanks!
            – Denise Wun
            May 24 at 6:22










          • Problem fixed after grant the privileges to root, thanks.
            – Denise Wun
            May 24 at 7:22














          up vote
          3
          down vote



          accepted










          Use this syntax in command prompt:



          mysql -h <mysql_server_url> -P <port_number> -u <username> -p


          Example:



          mysql -h xyz.rds.aws.com -P 3306 -u root -p





          share|improve this answer






















          • Thanks okcomputer_kid. However, why i cannot login as root but can login as a normal user? and seems i cannot change password?
            – Denise Wun
            May 24 at 4:33











          • Have you lost your root password? If you have lost your password, you have to ssh connect to your ubuntu server , change root password there.
            – okcomputer_kid
            May 24 at 4:43











          • mysqladmin -u root -p password newpass Use this command to update your root password. Donot replace password with anything. Only replace newpass with your password
            – okcomputer_kid
            May 24 at 4:44











          • But I can login as root in ubuntu so the password is correct. Any other suggestion? Thanks!
            – Denise Wun
            May 24 at 6:22










          • Problem fixed after grant the privileges to root, thanks.
            – Denise Wun
            May 24 at 7:22












          up vote
          3
          down vote



          accepted







          up vote
          3
          down vote



          accepted






          Use this syntax in command prompt:



          mysql -h <mysql_server_url> -P <port_number> -u <username> -p


          Example:



          mysql -h xyz.rds.aws.com -P 3306 -u root -p





          share|improve this answer














          Use this syntax in command prompt:



          mysql -h <mysql_server_url> -P <port_number> -u <username> -p


          Example:



          mysql -h xyz.rds.aws.com -P 3306 -u root -p






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited May 24 at 3:22









          WinEunuuchs2Unix

          34.3k756131




          34.3k756131










          answered May 24 at 3:18









          okcomputer_kid

          714




          714











          • Thanks okcomputer_kid. However, why i cannot login as root but can login as a normal user? and seems i cannot change password?
            – Denise Wun
            May 24 at 4:33











          • Have you lost your root password? If you have lost your password, you have to ssh connect to your ubuntu server , change root password there.
            – okcomputer_kid
            May 24 at 4:43











          • mysqladmin -u root -p password newpass Use this command to update your root password. Donot replace password with anything. Only replace newpass with your password
            – okcomputer_kid
            May 24 at 4:44











          • But I can login as root in ubuntu so the password is correct. Any other suggestion? Thanks!
            – Denise Wun
            May 24 at 6:22










          • Problem fixed after grant the privileges to root, thanks.
            – Denise Wun
            May 24 at 7:22
















          • Thanks okcomputer_kid. However, why i cannot login as root but can login as a normal user? and seems i cannot change password?
            – Denise Wun
            May 24 at 4:33











          • Have you lost your root password? If you have lost your password, you have to ssh connect to your ubuntu server , change root password there.
            – okcomputer_kid
            May 24 at 4:43











          • mysqladmin -u root -p password newpass Use this command to update your root password. Donot replace password with anything. Only replace newpass with your password
            – okcomputer_kid
            May 24 at 4:44











          • But I can login as root in ubuntu so the password is correct. Any other suggestion? Thanks!
            – Denise Wun
            May 24 at 6:22










          • Problem fixed after grant the privileges to root, thanks.
            – Denise Wun
            May 24 at 7:22















          Thanks okcomputer_kid. However, why i cannot login as root but can login as a normal user? and seems i cannot change password?
          – Denise Wun
          May 24 at 4:33





          Thanks okcomputer_kid. However, why i cannot login as root but can login as a normal user? and seems i cannot change password?
          – Denise Wun
          May 24 at 4:33













          Have you lost your root password? If you have lost your password, you have to ssh connect to your ubuntu server , change root password there.
          – okcomputer_kid
          May 24 at 4:43





          Have you lost your root password? If you have lost your password, you have to ssh connect to your ubuntu server , change root password there.
          – okcomputer_kid
          May 24 at 4:43













          mysqladmin -u root -p password newpass Use this command to update your root password. Donot replace password with anything. Only replace newpass with your password
          – okcomputer_kid
          May 24 at 4:44





          mysqladmin -u root -p password newpass Use this command to update your root password. Donot replace password with anything. Only replace newpass with your password
          – okcomputer_kid
          May 24 at 4:44













          But I can login as root in ubuntu so the password is correct. Any other suggestion? Thanks!
          – Denise Wun
          May 24 at 6:22




          But I can login as root in ubuntu so the password is correct. Any other suggestion? Thanks!
          – Denise Wun
          May 24 at 6:22












          Problem fixed after grant the privileges to root, thanks.
          – Denise Wun
          May 24 at 7:22




          Problem fixed after grant the privileges to root, thanks.
          – Denise Wun
          May 24 at 7:22












           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1039627%2fhow-to-login-to-the-mysql-in-ubuntu-from-windows%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          Which professions warranted travel in Medieval times?

          How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

          Trouble downloading packages list due to a “Hash sum mismatch” error