How do I find out my MySQL URL, host, port and username?

前端 未结 10 2148
北恋
北恋 2021-01-29 17:35

I need to find my MySQL username. When I open the MySQL command line client, it only asks me for my password. I don\'t remember my username. And for connectivity with JDBC, I ne

10条回答
  •  感情败类
    2021-01-29 18:30

    If you don't know the exact variable name use like, as the result may contain more than 500 rows:

    mysql> show variables like "%port%";
    

提交回复
热议问题