当前位置:网站首页>Installing MySQL on Ubuntu

Installing MySQL on Ubuntu

2022-06-26 23:13:00 Two leisurely walks

ubuntu Installation on mysql It's very simple. It can be done with just a few commands .

  1. sudo apt-get install mysql-server

  2. apt-get isntall mysql-client

  3. sudo apt-get install libmysqlclient-dev

   Setup password will be prompted during installation , Please enter the login password when starting the machine , After the installation is complete, you can use the following command to check if the installation was successful :

  sudo netstat -tap | grep mysql

   After checking through the above command , If you see any mysql Of socket be in listen The status indicates that the installation was successful .

   land mysql The database can be accessed through the following command :

  mysql -u root -p

  -u Represents the user name selected to log in , -p Represents the login user password , The above command will prompt you for a password , Enter your password to log in mysql.

原网站

版权声明
本文为[Two leisurely walks]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/177/202206262258107932.html