摘要: Centos7配置ntp时间服务器 Centos7配置时间服务器,一个服务端,多个客户端,客户端去同步服务端 服务端: 1、先修改时区,否则即使配置完ntp时间也不对,修改时区参照:https://www.cnblogs.com/effortsing/p/10070673.html 2、安装ntp服 阅读全文
posted @ 2018-11-24 11:30 effortsing 阅读(6665) 评论(0) 推荐(0) 编辑
摘要: 添加开机自启文件 [root@bogon ~]# cat /lib/systemd/system/nginx.service #!/bin/bash[Unit]Description=nginxAfter=network.target[Service]Type=forkingExecStart=/u 阅读全文
posted @ 2018-11-24 11:26 effortsing 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 1、Can't connect to local MySQL server through socket 'tmpmysql.sock' (2) 原因是mysql根本没有启动 2、Access denied for user 'root'@'localhost' (using password YE 阅读全文
posted @ 2018-11-24 11:13 effortsing 阅读(442) 评论(0) 推荐(0) 编辑
摘要: 配置变更思路: 扩大MySQL连接数至2000,同时扩大操作系统最大文件描述符;扩大innodb缓存池 操作步骤: vi /etc/my.cnf max_connections = 2000innodb_buffer_pool_size = 20M vi /usr/lib/systemd/syste 阅读全文
posted @ 2018-11-24 10:58 effortsing 阅读(1571) 评论(0) 推荐(0) 编辑
摘要: CentOS下mysql数据库常用命令总结1.更改root密码 mysqladmin -uroot password 'yourpassword' 2.远程登陆mysql服务器 mysql -uroot -p -h192.168.137.10 -P3306 3.查询数据库 show database 阅读全文
posted @ 2018-11-24 10:57 effortsing 阅读(2292) 评论(0) 推荐(0) 编辑
摘要: mysql> create database ceshi; Query OK, 1 row affected (0.01 sec) 给数据库授权,否则程序时无法连接ceshi数据库的,每次创建一个数据库都要记得给数据库授权。 mysql> grant all privileges on ceshi.* TO 'root'@'%' identified by 'jenkins@123' wit... 阅读全文
posted @ 2018-11-24 10:50 effortsing 阅读(705) 评论(0) 推荐(0) 编辑
摘要: 1创建账号授权 grant all privileges on jenkinsddbes.* to 'jenkinsddbes'@'%' identified by '1iN@Da12tA&*ba33gf8'; 2、导出 mysqldump -u root -p jenkinsddbes > 201 阅读全文
posted @ 2018-11-24 10:41 effortsing 阅读(8360) 评论(1) 推荐(0) 编辑
摘要: 1、mysql的root用户无法给普通用户授权问题处理 update mysql.user set Grant_priv='Y' where User='root' and Host='%'; flush privileges;(刷新权限) 2、mysql创建用户并且授权 不需要单独创建用户、单独授 阅读全文
posted @ 2018-11-24 10:38 effortsing 阅读(323) 评论(0) 推荐(0) 编辑
摘要: 1、mysql开启函数功能 MySQL函数不能创建的解决方法 在使用MySQL数据库时,有时会遇到mysql函数不能创建的情况。 出错信息大致类似: ERROR 1418 (HY000): This function has none of DETERMINISTIC, NO SQL, or REA 阅读全文
posted @ 2018-11-24 10:22 effortsing 阅读(1489) 评论(0) 推荐(0) 编辑
摘要: 1、查看Grant_priv是Y还是N 执行下面 select * from mysql.user where User='root' and Host='%'\G; 下图查看结果为Grant_priv是Y,如果是N,执行下面 update mysql.user set Grant_priv='Y' 阅读全文
posted @ 2018-11-24 10:13 effortsing 阅读(2421) 评论(0) 推荐(0) 编辑