环境配置-mysql安装
来源:互联网 发布:成都中科大cms漏洞 编辑:程序博客网 时间:2024/05/16 02:46
1.安装mysql
sudo yum -y install mysql-server
2.修改字符集
sudo vim /etc/my.conf添加:default-character-set=utf8
3。设置随机启动
sudo chkconfig mysqld on
查看是否设置成功
4.启动mysql
sudo server msyql start
5.登录mysql
mysql -u root
6.查看mysql用户
select user , host from mysql.user;
7.删除匿名用户
select user , host from mysql.user;
8.防火墙设置
sudo vim /etc/sysconfig/iptables
添加:
9.重启防火墙
sudo service iptables restart
10.查看用户权限
select * from mysql.user /G
11.权限设置
grant select ,delete, create on mall.* to mall@’%’ identified by ‘mall’ with grant option;
12.设root密码
set password from root@localhost='123';set password for root@127.0.01=password('123');
阅读全文
0 0
- mysql安装环境配置
- 环境配置-mysql安装
- MySQL免安装环境配置
- MySQL:安装MySQL及环境配置
- Jdk环境配置以及mysql数据库安装配置环境总结
- Apache+PHP+Mysql安装及环境配置
- Eclipse+resin+mysql 安装及环境配置
- Eclipse+resin+mysql 安装及环境配置
- linux上安装mysql,配置环境
- 配置本地环境之mysql数据库安装
- Ubuntu12.04安装配置MySQL开发环境
- Eclipse+resin+mysql 安装及环境配置
- centos安装配置apache+php+mysql环境
- 安装linux以及配置php,mysql环境
- ubuntu java环境配置及mysql安装
- Linux 安装与配置 mysql 环境
- Centos6.5 安装配置 Tomcat、MySQL环境
- 编译安装MySQL ,J2EE环境配置
- acm 快速排序
- 在hadoop集群上安装hive和mysql
- 以当前学习进度判断命令执行优先级!
- 并行开发笔记-3.使用互斥元(临界区)保护
- android中RGB颜色查询对照表
- 环境配置-mysql安装
- Node--Sequlize搭建服务
- 1002. 写出这个数
- App复活
- python dict 和set 详解
- 解决Maven的Could not calculate build plan的方法
- Marvell ESPRESSObin从NFS启动Linux
- Spring Boot (三) 热部署
- java上传文件实例