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
Deploy the project to the project site test envir...
Effective solution for Ubuntu in virtual machine ...
1. How to install? 1. [Run] -> [cmd] to open t...
The project interacts with the server, accesses t...
Overview Today we will mainly share how to config...
Table of contents Overview 1. useState 1.1 Three ...
Preface: I recently started to study the construc...
Preface This article records a common SMS verific...
1. mysqlbinlog: [ERROR] unknown variable 'def...
I spent a day on it before this. Although Seata i...
introduction Our company is engaged in the resear...
As shown below: CSS CodeCopy content to clipboard...
Table of contents 1. Original value and reference...
Three Paradigms 1NF: Fields are inseparable; 2NF:...
Regarding the connection method between Java and ...