91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

CentOS 7下mysql 8修改datadir之后不能啟動

發布時間:2020-08-09 05:24:32 來源:ITPUB博客 閱讀:691 作者:abstractcyj 欄目:MySQL數據庫

嘗試修改了mysql的datadir參數, 同時將數據文件拷貝到了新的目錄/data下, 但是啟動mysql服務時,提示:

[root@mysql8-01 data]# systemctl status mysqld

● mysqld.service - MySQL Server

   Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled)

   Active: failed (Result: exit-code) since Wed 2019-07-03 10:42:07 CST; 14s ago

     Docs: man:mysqld(8)

           http://dev.mysql.com/doc/refman/en/using-systemd.html

  Process: 2907 ExecStart=/usr/sbin/mysqld $MYSQLD_OPTS (code=exited, status=1/FAILURE)

  Process: 2885 ExecStartPre=/usr/bin/mysqld_pre_systemd (code=exited, status=0/SUCCESS)

 Main PID: 2907 (code=exited, status=1/FAILURE)

   Status: "SERVER_BOOTING"

    Error: 13 (Permission denied)


Jul 03 10:42:06 mysql8-01 systemd[1]: Starting MySQL Server...

Jul 03 10:42:07 mysql8-01 systemd[1]: mysqld.service: main process exited, code=exited, status=1/FAILURE

Jul 03 10:42:07 mysql8-01 systemd[1]: Failed to start MySQL Server.

Jul 03 10:42:07 mysql8-01 systemd[1]: Unit mysqld.service entered failed state.

Jul 03 10:42:07 mysql8-01 systemd[1]: mysqld.service failed.


查看mysql日志,發現有如下警告

2019-07-03T02:38:28.679543Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.14)  MySQL Community Server - GPL.

mysqld: File './binlog.index' not found (OS errno 13 - Permission denied)

2019-07-03T02:40:21.848131Z 0 [Warning] [MY-010091] [Server] Can't create test file /data/mysql8-01.lower-test

2019-07-03T02:40:21.848279Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.14) starting as process 2822

2019-07-03T02:40:21.867130Z 0 [Warning] [MY-010091] [Server] Can't create test file /data/mysql8-01.lower-test

2019-07-03T02:40:21.867181Z 0 [Warning] [MY-010159] [Server] Setting lower_case_table_names=2 because file system for /data/ is case insensitive

2019-07-03T02:40:21.868211Z 0 [ERROR] [MY-010119] [Server] Aborting

2019-07-03T02:40:21.868431Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.14)  MySQL Community Server - GPL.

mysqld: File './binlog.index' not found (OS errno 13 - Permission denied)

2019-07-03T02:42:07.555956Z 0 [Warning] [MY-010091] [Server] Can't create test file /data/mysql8-01.lower-test

2019-07-03T02:42:07.556036Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.14) starting as process 2907

2019-07-03T02:42:07.558851Z 0 [Warning] [MY-010091] [Server] Can't create test file /data/mysql8-01.lower-test

2019-07-03T02:42:07.558865Z 0 [Warning] [MY-010159] [Server] Setting lower_case_table_names=2 because file system for /data/ is case insensitive

2019-07-03T02:42:07.559679Z 0 [ERROR] [MY-010119] [Server] Aborting

2019-07-03T02:42:07.559877Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.14)  MySQL Community Server - GPL.


這里,需要將Selinux關閉:

[root@mysql8-01 data]# vi /etc/selinux/config 

[root@mysql8-01 data]# 

[root@mysql8-01 data]# setenforcing 0

bash: setenforcing: command not found...

[root@mysql8-01 data]# setenforce 0

[root@mysql8-01 data]# 

[root@mysql8-01 data]# 

[root@mysql8-01 data]# systemctl start mysqld

[root@mysql8-01 data]# 

[root@mysql8-01 data]# 

[root@mysql8-01 data]# systemctl status mysqld

● mysqld.service - MySQL Server

   Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled)

   Active: active (running) since Wed 2019-07-03 10:46:09 CST; 5s ago

     Docs: man:mysqld(8)

           http://dev.mysql.com/doc/refman/en/using-systemd.html

  Process: 3020 ExecStartPre=/usr/bin/mysqld_pre_systemd (code=exited, status=0/SUCCESS)

 Main PID: 3042 (mysqld)

   Status: "SERVER_OPERATING"

   CGroup: /system.slice/mysqld.service

           └─3042 /usr/sbin/mysqld


Jul 03 10:46:06 mysql8-01 systemd[1]: Starting MySQL Server...

Jul 03 10:46:09 mysql8-01 systemd[1]: Started MySQL Server.


再此嘗試啟動,成功

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

东莞市| 临安市| 泰顺县| 北辰区| 贵港市| 双流县| 邹平县| 新源县| 思南县| 罗源县| 安泽县| 辽宁省| 寿宁县| 洛扎县| 泰和县| 千阳县| 浦城县| 乐至县| 沧州市| 太康县| 织金县| 阿克苏市| 马龙县| 财经| 繁昌县| 阳山县| 永宁县| 阳春市| 武威市| 科技| 庄浪县| 安岳县| 扎囊县| 夹江县| 丹巴县| 花莲市| 中宁县| 淄博市| 台北县| 南充市| 诏安县|