Access mysql remote database from command line

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

    Try this command mysql -uuser -hhostname -PPORT -ppassword.

    I faced a similar situation and later when mysql port for host was entered with the command, it was solved.

提交回复
热议问题