Access mysql remote database from command line

后端 未结 17 1582
忘掉有多难
忘掉有多难 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

    I assume you have MySQL installed on your machine. Execute the command below after filling missing details:

    mysql -uUSERNAME -pPASSWORD -hHOSTNAME -P3306 
    

提交回复
热议问题