Ubuntu下mysql的安装和远程访问

安装

apt update
apt upgrade
sudo apt-get isntall mysql-client
sudo apt-get install mysql-server
sudo apt-get install libmysqlclient-dev
ps aux | grep mysql

远程访问

netstat -an|grep 3306
vi /etc/mysql/mysql.conf.d/mysqld.cnf
# 注释掉bind-address = 127.0.0.1

你可能感兴趣的:(Ubuntu下mysql的安装和远程访问)