linux 配置mysql
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash
免费下载资源
·
- 查询电脑是安装了mysql (rpm -qa |grep mysql-server)
- 安装mysql (yum -y install mysql-server)
- 启动mysql (srvice mysqld start)
- 给mysql设置密码 (mysqladmin -u root password 123456)
- 使用密码进入mysql (mysql -uroot -p123456)
- 解决乱码问题 (show variables like 'character_set_%';)
- 退出mysql 修改配置文件 (vim /etc/my.cnf)
- 改为
[client] default-character-set=utf8 [mysql] default-character-set=utf8 [mysqld] character-set-server=utf8
- 重启mysql(service mysqld restart)
- mysql 配置远程连接
- 选中表 usr mysql
-
查看信息 select host, user ,password from user;
- 添加权限让主机使用账号root 密码123456 进行登录 (grant all privileges on . to 'root'@'%' identified by '123456' with grant option;)
- 刷新权限 (flush privileges;)
- 二次确认 (select host, user ,password from user;)
- 关闭防火墙 (service iptables stop)
GitHub 加速计划 / li / linux-dash
10.39 K
1.2 K
下载
A beautiful web dashboard for Linux
最近提交(Master分支:2 个月前 )
186a802e
added ecosystem file for PM2 4 年前
5def40a3
Add host customization support for the NodeJS version 4 年前
更多推荐
已为社区贡献8条内容
所有评论(0)