Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install and uninstall MySQL database on PuTTY

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

The following is to learn how to install and uninstall MySQL database on PuTTY. I believe you will benefit a lot after reading it. The text is not much in essence. I hope that how to install and uninstall MySQL database on PuTTY is what you want.

Uninstall Mysql

Enter the command to uninstall completely

> sudo apt-get remove mysql-*

> dpkg-l | grep ^ rc | awk'{print $2}'| sudo xargs dpkg-P

Installation

> sudo apt-get install mysql-server-5.7

test

> mysql-- version

View mysql status

> service mysql status

Check to see if mysql is started

> active (running)

Access through the public network address, can not be accessed, due to mysql security restrictions

Log in to the local mysql

"mysql-h227.0.0.1-u username-p password

(1) modify user table information

> show databases

> use mysql

> show tables

> select user,host from user

> update user set host='%' where user = 'root'; / / the host of the updated user root is%, indicating that you can log in under all hosts

Restart

> sudo service mysql restart

(2) modify the configuration of mysql CVM

> sudo vi / etc/mysql/my.cnf

Add the following code

[client] Wuxi good × × Hospital http://www.zzchnk.com/

Default-character-set=utf8

[mysqld]

Character-set-server=utf8

Max_connections=1000

! includedir / etc/mysql/conf.d/

! includedir / etc/mysql/mysql.conf.d/

Bind-address=0.0.0.0

Restart the mysql service

> sudo service mysql restart

test

> mysql-hxxx.xxx.xxx.xxx-u username-p password / / log in to your remote database

After reading this article on how to install and uninstall MySQL database on PuTTY, many readers will want to know more about it. For more industry information, you can follow our industry information section.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report