SQL study Notes-Getting Started with SQL, installing Ubuntu for MySQL in Ubuntu
BitsCN.com
SQL study Notes-SQL beginners, MySQL installation in Ubuntu
When I first started to learn SQL in Ubuntu, I started to get started with the itercast SQL tutorial.
The following is my personal record. please detour:
I,
Before installation, we can use the following command to check whether the mysql service is running through open port query.
After installation, you can also use this command to check whether the tool is running.
[Plain]
$ Netstat-tap | grep mysql
If it is running, you will see
[Plain]
Tcp 0 0 localhost: mysql *:*
II,
Use apt-get to install:
[Plain]
$ Sudo apt-get install mysql-server mysql-client
A password is required to be entered out of the window, which is the password of the root user of mysql.
III,
Go to mysql:
[Plain]
$ Mysql-u root-p
Enter the password to log in.
IV,
Switch the mysql service
[Plain]
Sudo start mysql
Sudo stop mysql
Mysql configuration file:
/Etc/mysql/my. cnf
You can modify the mysql port, database storage path, and other information.
BitsCN.com