Ubuntu server 安装Mysql

__安装mysql_______________________________________

sudo apt-get update

sudo apt-get install mysql-server

sudo apt-get install mysql-client

sudo apt-get install libmysqlclient-dev

sudo netstat -tap | grep mysql

  如下命令进行检验是否安装mysql成功

__配置Mysql_____________________________________

实现远程控制mysql

sudo vi /etc/mysql/mysql.conf.d/mysqld.cnf   注释掉bind-address = 127.0.0.1

授权给远程用户登陆mysql

先登陆:mysql -u root -p

开启命令:grant all privileges on *.* to 'root'@'%'identified by 'Tuying@12'with grant option;

刷新:flush privileges;

exit退出mysql

service mysql restart
____搞定!____________________________________________

 

posted @ 2018-10-07 17:30  Magicking  阅读(2139)  评论(0编辑  收藏  举报