In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.