Access mysql remote database from command line

后端 未结 17 1557
忘掉有多难
忘掉有多难 2020-11-28 01:41

I have a server with Rackspace. I want to access the database from my local machine command line.

I tried like:

mysql -u username -h my.application.com         


        
17条回答
  •  难免孤独
    2020-11-28 02:06

    simply put this on terminal at ubuntu:

    mysql -u username -h host -p
    

    Now hit enter

    terminal will ask you password, enter the password and you are into database server

提交回复
热议问题