zl程序教程

您现在的位置是:首页 >  数据库

当前栏目

ubuntu MySQL安装和设置

2023-09-14 08:58:29 时间
 1. apt-get install mysql-server
 2. apt-get isntall mysql-client

 

修改 /etc/mysql/my.cnf

#bind-address           = 127.0.0.1

 

本地登录

mysql -u root -p

grant all on *.* to root identified by '123456'

 

gedit /etc/mysql/mysql.conf.d/mysqld.cnf 

修改bindip

 

service mysql restart