Check if MySQL is already installed in Linux sudo service mysql start //Try to start the MySQL service hint: mysql: unrecongized service //Indicates that the system does not have MySQL You need //Install MySQL server and core programs sudo apt-get install mysql-server //Install the MySQL client sudo apt-get install mysql-client Verify sudo netstat -tap|grep mysql (note that there is a space before netstat and -tap) Modify the configuration file (my.cnf) sudo gedit/etc/mysql/my.cnf Practiced logging in and out of MySQL, using and viewing databases //Start the MySQL service sudo service mysql start // mysql -u root View the database show databases; Connect to database using database name View tables show tables; Quit or exit The above is the detailed explanation of MySql installation and login introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website! You may also be interested in:
|
<<: Pros and Cons of Vite and Vue CLI
>>: 8 Reasons Why You Should Use Xfce Desktop Environment for Linux
The pitfalls 1. Many tutorials on the Internet wr...
1. Conclusion Syntax: limit offset, rows Conclusi...
Set the background image for the table header. Yo...
Introduction to AOP The main function of AOP (Asp...
Table of contents 1. Why NanoID is replacing UUID...
1. Installation Search the mariadb version to be ...
Prepare Environmental information for this articl...
####Management of input and output in the system#...
For front-end developers, ensuring that the code ...
This article shares with you the tutorial of inst...
Table of contents 1. Introduction 2. Composition ...
When creating a MySQL container with Docker, some...
English: A link tag will automatically complete h...
This article introduces the sample code of CSS pi...
The solutions to the problems encountered during x...