how to log in to mysql and query the database from linux terminal

后端 未结 12 2749
野趣味
野趣味 2020-12-04 06:47

I am using debian linux. I have a linux machine on which mysql is install. I can log in to my linux machine using root user as well as other user. I can connect to mysql dat

12条回答
  •  悲哀的现实
    2020-12-04 07:31

    To stop or start mysql on most linux systems the following should work:

    /etc/init.d/mysqld stop
    
    /etc/init.d/mysqld start
    

    The other answers look good for accessing the mysql client from the command line.

    Good luck!

提交回复
热议问题