![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据库
文章平均质量分 60
JesusMak
我很懒!还没有添加简介!
展开
-
Centos 设置 MySQL 开机自动启动
Centos 设置 MySQL 开机自动启动1. 添加配置文件sudo vim /usr/lib/systemd/system/mysql.service 添加以下内容:[Unit]Description=mysqlAfter=network.target[Service]Type=forkingUser=mysqlGroup=mysqlExecStart=/software/mysql-5.7.33/bin/mysqld --defaults-file=/etc/my.cnfL原创 2021-04-14 20:10:00 · 2163 阅读 · 0 评论 -
个人分享:Centos 7 安装 Mysql5.7
Centos 7 安装 Mysql5.7为了方便自己学习,特地安装了Mysql 5.7 玩一下,记录下踩过的坑呀~~1. 下载压缩包并上传到Linux系统里 ,我使用的是5.7.33这个版本官网下载地址:mysql-5.7.33-el7-x86_64.tar2. 下载完之后解压到指定目录,具体解压到哪个目录根据个人情况修改sudo tar -zxvf /home/jesus/Downloads/mysql-5.7.33-el7-x86_64.tar.gz -C /software/3. 为了原创 2021-04-14 19:27:09 · 141 阅读 · 0 评论 -
Centos 7 安装mysql 5.7 错误处理,持续更新~~
Centos 7 安装mysql 5.7 错误处理分享下个人在安装mysql时出现的问题,以及处理办法:1. 解压完压缩包,进行完初始化操作时执行完:/software/mysql-5.7.33/bin/mysqld --initialize --user=mysql --basedir=/software/mysql-5.7.33 --datadir=/software/mysql-5.7.33/data这个命令时,有可能会提示某些文件授权不足,或文件不存在之类的,重新执行授权命令即可chown原创 2021-04-14 19:23:33 · 338 阅读 · 0 评论 -
Centos 7 设置 postgresql-10.15.1 自动启动服务
Centos 7 设置 postgresql-10.15.1 自动启动服务前言:设置自动启动服务的方式有很多,今天分享通过创建.service文件的方式实现postgresql-10.15.1自动启动,如有不足还请指出。创建 postgresql.servicesudo vim /lib/systemd/system/postgresql.service 输入下列文件[Unit]#描述Description=postgresql #在此服务启动后才启动,这里可以不写After原创 2021-03-31 11:10:30 · 538 阅读 · 0 评论 -
个人总结:Centos 7 安装postgresql-10.15.1 常见问题解决
如大家遇到其他问题,可以互相交流分享!!谢谢~~1. 问题: postgresql is not in the sudoers file. This incident will be reported.分析:新建的角色权限不足解决办法:切换root用户,执行命令:visudo 或vi /etc/sudoers(本质修改 /etc/sudoers文件)su rootvisudo 或vi /etc/sudoers添加配置:postgresql ALL=(ALL) NO原创 2021-03-30 18:28:00 · 1511 阅读 · 1 评论 -
centos 7 设置远程连接 postgresql 10
centos 7 设置远程连接 postgresql 101. 修改配置文件(具体路径根据实际安装路径确定)pgsql/data/postgresql.conf 和 pgsql/data/pg_hba.confsudo vi /software/pgsql/data/postgresql.conflisten_addresses = '*'port = 5432sudo vi /software/pgsql/data/pg_hba.conf添加或修改下列配置local all原创 2021-03-30 18:15:09 · 738 阅读 · 0 评论 -
Eclipse 更换Java版本出现的问题:Access restriction: The type ‘FADD‘ is not API (restriction on required libr
Eclipse 更换Java版本出现的问题:Access restriction: The type ‘FADD’ is not API (restriction on required libr问题:Access restriction: The type 'FADD' is not API (restriction on required libr解决办法:右击项目→config build path点击edit → add等待重新编译即可!...原创 2020-09-10 20:56:18 · 154 阅读 · 0 评论 -
亲测有效!解决DataGrip 连接MySQL失败错误: [08001] Could not create connection to database server.....
亲测有效!解决DataGrip 连接MySQL失败错误: [08001] Could not create connection to database server…在学习的时候尝试使用DataGrip连接Centos7的docker里的MySQL时,出现了连接失败情况:[08001] Could not create connection to database server. Attempted reconnect 3 times. Giving up. NotBefore: Mon Jun 22原创 2020-06-22 23:09:38 · 10244 阅读 · 0 评论