Stopping and Restarting Your MySQL Server

Stopping MySQL

  • To stop your MySQL server, make sure you are in your mysql directory, and then type
    ./bin/mysqladmin -u root -p shutdown
    This lets the mysqladmin utility know that you want to shut down MySQL running as user root (-u root), and that you will enter a password (-p).
  • Starting MySQL
  • To start up your MySQL server again, connect to your MySQL host and then type
    cd ~/mysql
    ./bin/mysqld_safe &





Popular posts from this blog

Shrink you container size up to 95%.

alma linux: dnf Module yaml error: Unexpected key in data