ubuntu 安装配置mysql

来源:互联网 发布:windows虚拟内存设置 编辑:程序博客网 时间:2024/06/05 15:37

1.安装

apt-get install mysql-server

apt-get install mysql-client

apt-get install libmysqlclient-dev

2.配置

vim /etc/mysql/my.cnf 

/etc/init.d/mysql restart


grant all on *.* to 'root'@'%' identifiied by '123456'

grant all on *.* to 'root'@'%' identified by '3134327408'
grant select on server.* to 'root'@'222.76.240.186' identified by 'server'

0 0
原创粉丝点击