ubuntu環境下重啟mysql服務報錯“No directory, logging in with HOME=-”
前提:使用系統的環境
3.13.0-24-generic
mysql的版本:5.6.33
錯誤描述:
首先用mysqld_safe啟動報錯如下:
[email protected]:~# mysqld_safe
170425 01:56:52 mysqld_safe Can't log to error log and syslog at the same time. Remove all --log-error configuration options for --syslog to take effect.
170425 01:56:52 mysqld_safe Logging to '/var/log/mysql/error.log'.
170425 01:56:52 mysqld_safe A mysqld process already exists
[email protected]:~# ps -aux | grep mysql
mysql 1472 0.1 15.5 1752260 625824 ? Ssl Apr24 1:16 /usr/sbin/mysqld
root 10160 0.0 0.0 15952 920 pts/3 S+ 01:59 0:00 grep --color=auto mysql
這個時候使用/etc/init.d/mysql stop停止點mysql服務發現mysql的程序還是存在,這個時候需要使用如下命令來停止程序:
root@zabbix-forFunction:~# sudo service mysql stop
mysql stop/waiting
root@zabbix-forFunction:~# ps -aux | grep mysql
root 13531 0.0 0.0 15948 920 pts/3 S+ 02:15 0:00 grep --color=auto mysql
使用usermod命令來重新定位mysql所在的目錄:
root@zabbix-forFunction:~# sudo usermod -d /var/lib/mysql/ mysql
然後再重新啟動mysql服務:
root@zabbix-forFunction:~# sudo service mysql start
mysql start/running, process 13597
相關推薦
ubuntu環境下重啟mysql服務報錯“No directory, logging in with HOME=-”
前提:使用系統的環境 3.13.0-24-generic mysql的版本:5.6.33 錯誤描述: 首先用mysqld_safe啟動報錯如下: [email protected]:
Linux環境下重啟Oracle服務和監聽
有時候可能會出現伺服器電腦出問題,需要重啟,重啟機器後需要重啟Oracle資料庫 (1) 以oracle身份登入資料庫,命令:su – oracle (2) 進入Sqlplus控制檯,命令:sqlp
suse linux建立ftp使用者、限制其訪問路徑,及解決重啟ftp服務報錯問題
suse linux建立ftp使用者、限制其訪問路徑、設定上傳許可權,及解決重啟ftp服務報錯問題 建立使用者 --建立使用者 #adduser -G ftp -d /srv/ftp -s /bin/false test ---/bin/false這個是限制其使用ss
linux下開啟、關閉、重啟mysql服務命令
一、 啟動1、使用 service 啟動:service mysql start2、使用 mysqld 指令碼啟動:/etc/inint.d/mysql start3、使用 safe_mysqld 啟動:safe_mysql&二、停止1、使用 service 啟動:service mysql stop
Ubuntu無法重啟mysql服務
宣告:沒有想越權、盜版的想法,只是自己做個筆記。方便自己和他人檢視。 ###########註釋:加粗字型為終端執行的命令 1. chkconfig mysqld on 設定mysql開機啟動 2. 進入/etc/.../mysqld資料
Ubuntu下重啟mysql
啟動mysql init https start www www. log 停止 mysql 啟動mysql: 方式一:sudo /etc/init.d/mysql start 方式二:sudo service mysql start 停止mysql: 方式一
在Linux系統下重啟Oracle服務
1、su - oracle //切換到oracle使用者 3、shutdown abort; //啟動時自動進行例項恢復;不允許新的連線、不等待會話結束、不等待事務結束、不做檢查點且沒有關閉資料檔案。 4、startup
mysql5.6.34在預設配置檔案修改字符集為utf8後重啟mysql服務沒效果
1:事情是這樣的,我下載了一個mysql5.6.34版本(windows版本的),下載下來后里面只有個my-default.ini,然後我就直接在my-default.ini 裡面配置basedir,datadir,port。 2:然後我的javaweb程式連線資料庫後,出
linux下重啟oracle服務
在linux下重啟oracle資料庫及監聽器: 方法1: 用root以ssh登入到linux,開啟終端輸入以下命令: cd $ORACLE_HOME #進入到oracle的安裝目錄 dbstart #重啟伺服器 lsnrctl star
Ubuntu啟動/停止/重啟Mysql資料庫的方法
注意:在centos 系統下進行和Ubuntu系統裡面是不同,Ubuntu裡面需要將centos 裡面使用的命令中的mysqld後面的d去掉,下面所示所有命令直接使用mysqld替換掉mysql即可 一、檢視mysql版本 方法一:status; 方法二:se
centos 下重啟 mariadb服務
1、編輯/etc/my.cnf[[email protected]_137_149_centos etc]# vi my.cnf2、重啟mariadb[[email protected]_137_149_centos etc]# service maria
Ubuntu16.04下重啟mysql和apach2
安裝apache2 sudo apt-get install apache2 啟動apache2 sudo /etc/init.d/apache2 start 重啟 sudo /etc/i
linux下重啟oracle服務:監聽器和例項
一、在linux下重啟oracle資料庫及監聽器: 方法1: 用root以ssh登入到linux,開啟終端輸入以下命令: cd $ORACLE_HOME #進入到oracle的安裝目錄 dbstart #重啟伺服器 lsnrctl start #重啟監聽器 cd $ORACLE_HOME #
Linux伺服器下重啟svn服務
只需要簡單3步。 1 首先檢視svn的程序: 檢視程序命令:ps -ef(檢視所有程序);要篩選的話用grep,篩選svn的程序命令:ps -ef|grep svn。 2 殺死主程序:
xampp集成環境下重置mysql的密碼
狀態 flush mys roo 環境 table update console 第一步 第一步:打開兩個命令行工具,都進入到你的xampp安裝目錄下的mysql下的bin目錄,如我安裝的位置是D:xampp/mysql/bin; 第二步:在完成第一步的情況下,輸入:my
使用虛擬機克隆CentOS 6.9系統重啟網卡報錯問題的解決
才有 讀懂它 成功 使用虛擬機克隆CentOS6.9系統重啟網卡報錯問題的解決1.錯誤信息Bringing up interface eth0: Device eth0 does not seem to be present,delaying initialization.
centos7 重啟網卡報錯
報錯 lin emctl nag workman exists 沖突 manage 建議 systemctl restart network 時候報錯: rtnetlink answers file exists 是network和NetworkManager沖突了 一般建
啟動mysql服務報錯:本地計算機上的mysql服務器啟動後停止,某些服務在....
結束進程 art 分享 start 技術分享 服務 AR all com 報錯如圖: 解決方法:1。初始化data文件(mysql安裝bin目錄下):mysql --initailize,需要等半分鐘左右才會有反應 2.如果提示有錯誤data目錄已經有了,有兩種方式,一種
CentOS 7.2重啟網絡報錯 Failed to start LSB: Bring up/down
script 3.5 dhcp ifcfg ron centos str sys 日誌 CentOS 7.2重啟網絡報錯 Failed to start LSB: Bring up/down 我的虛擬機原本有兩塊網卡,一塊叫eno16777736,另一塊叫eno5033
vSphere克隆虛機重啟網卡報錯
net network nbsp work bubuko src -s 克隆 改ip 使用VMware vSphere克隆虛機,修改IP重啟網卡報錯: 解決報錯:修改MAC地址,重啟網卡 編輯虛擬機配置,查看MAC地址 修改 /etc/udev/ru