MySQL under linux restart switch state. Mysql remote connectivity

  • Login : either linux or windows need to reach under the bin file mysql installation directory folder. Targeting Thereafter, the command interpreter mysql -uroot -p:. -U is meant username, user name is the value of the root, -p without a password, the next input. Do not show.
  • Under linux open, close and restart
    • ON:
      • Start using the service: service mysql start
      • Use mysqld script to start: /etc/inint.d/mysql start
      • Use safe_mysqld start: safe_mysql &
    • shut down:
      • Use the service shut down: service mysql stop
      • Use mysqld script to start: /etc/inint.d/mysql stop
      • mysqladmin shutdown
    • Restart:
      • Use the service to restart: service mysql restart
      • Use mysqld script to start: /etc/inint.d/mysql restart
    • status:
      • Mysql using the service to view the status of the service is closed or open: service mysqld status
  • Remote connections MySQL :
    • The reason: linux when no visual interface, the operation of the database is more trouble. So, start remote connectivity tools is a good choice.
    • Version: mysql8 different from previous versions of password encryption.
  • These specific operating table, I do not want to remember.

Guess you like

Origin blog.csdn.net/m0_37626203/article/details/93479615