mysql 安装配置 linux
来源:互联网 发布:centos nfs samba 编辑:程序博客网 时间:2024/05/19 13:59
基本命令
Author : Janloong Do_O
重启
sudo /etc/init.d/mysql restart启动mysql:方式一:sudo /etc/init.d/mysql start方式二:sudo start mysql方式三:sudo service mysql start停止mysql:方式一:sudo /etc/init.d/mysql stop方式二:sudo stop mysql方式san:sudo service mysql stop重启mysql:方式一:sudo/etc/init.d/mysql restart方式二:sudo restart mysql方式三:sudo service mysql restart
外网访问配置用户
grant all on *.* to yjsh@'%' identified by 'yjsh';grant all on *.* to root@'%' identified by 'root';GRANT ALL PRIVILEGES ON *.* TO 'yjsh'@'%' IDENTIFIED BY 'yjsh@aliyun' WITH GRANT OPTION;flush privileges;grant all on bingdg-demo.* to 'yjsh'@'%' identified by 'yjsh';GRANT ALL PRIVILEGES ON bingdg-demo.* TO 'yjsh'@'%' IDENTIFIED BY 'yjsh' WITH GRANT OPTION;
修改用户密码
use mysql;mysql> update user set password=password('yjsh123456') where user='root' and host='%';mysql> flush privileges;5.7mysql> update mysql.user set authentication_string=password('123qwe') where user='root' and Host = 'localhost';
修改链接
sudo vim /etc/mysql/mysql.conf.d/mysqld.cnf注释其中的:bind-address = 127.0.0.1配置或者修改为bind-address = 0.0.0.0
最大传输设置
max_allowed_packe
配置相关
查看数据库编码show variables like 'char%';查看数据库慢查询设置show variables like "%slow_query%"
时区设置
mysql时区相差8 14个小时show variables like "%time_zone%"set global time_zone = '+8:00'; ##修改mysql全局时区为北京时间,即我们所在的东8区set time_zone = '+8:00'; ##修改当前会话时区flush privileges; #立即生效
数据库同步
阅读全文
0 0
- linux安装配置mysql
- Linux安装配置MySQL
- Linux mysql 安装 配置
- mysql 安装配置 linux
- MySQL for Linux安装配置
- MySQL for Linux安装配置
- linux下mysql安装配置
- linux+mysql安装配置问题
- linux 下 mysql 安装 配置
- linux mysql 安装与配置
- linux下mysql安装配置
- linux mysql安装配置教程
- linux - yum 安装配置mysql
- linux下mysql安装配置
- linux 下 Mysql 安装配置
- MySQL安装以及配置Linux
- mysql的安装配置Linux
- linux mysql 安装和配置
- 树结构
- ES6 let和const命令
- 32位单精度浮点数表示法
- 产品经理不再纸上谈兵——App登录设计的再思考
- 常用汇编指令集合
- mysql 安装配置 linux
- RocketMQ原理解析-producer 4.发送分布式事物消息
- 将一个数组中的内容拼接到另一个数组中-并不是push而是concat
- 实现启动app,首页倒计时跳转,也可点击按钮进行跳转
- 使用Nginx实现HTTPS双向验证的方法
- 图形界面扩容缩容acfs文件系统
- spring mvc 5.0 RequestParam详解 06
- H5-12人牛牛架设教程
- Petya and Staircases CodeForces