mysql_install_db初始化後沒有生成var目錄,然後我指定目錄初始化後發現能生成目錄,但是啟動時找不到檔案,怎麼回事?求大神解答
Installing MySQL system tables...
OK
Filling help tables...
OKTo start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your systemPLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:/document/mysql/bin/mysqladmin -u root password 'new-password'
/document/mysql/bin/mysqladmin -u root -h LingShu.cn password 'new-password'Alternatively you can run:
/document/mysql/bin/mysql_secure_installationwhich will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.See the manual for more instructions.You can start the MySQL daemon with:
cd /document/mysql ; /document/mysql/bin/mysqld_safe &You can test the MySQL daemon with mysql-test-run.pl
cd /document/mysql/mysql-test ; perl mysql-test-run.plPlease report any problems with the /document/mysql/bin/mysqlbug script![
bin docs include lib libexec mysql-test share sql-bench
[[email protected] mysql]# ./bin/mysql_install_db --datadir=./var --user=mysql #指定目錄
Installing MySQL system tables...
OK
Filling help tables...
OKTo start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your systemPLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:/document/mysql/bin/mysqladmin -u root password 'new-password'
/document/mysql/bin/mysqladmin -u root -h LingShu.cn password 'new-password'Alternatively you can run:
/document/mysql/bin/mysql_secure_installationwhich will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.See the manual for more instructions.You can start the MySQL daemon with:
cd /document/mysql ; /document/mysql/bin/mysqld_safe &You can test the MySQL daemon with mysql-test-run.pl
cd /document/mysql/mysql-test ; perl mysql-test-run.plPlease report any problems with the /document/mysql/bin/mysqlbug script![
bin docs include lib libexec mysql-test share sql-bench var #生成了var目錄
[[email protected] mysql]# ll
總用量 8
drwxr-xr-x 2 mysql mysql 4096 4月 21 22:33 bin
drwxr-xr-x 2 mysql mysql 41 4月 21 22:32 docs
drwxr-xr-x 3 mysql mysql 19 4月 21 22:32 include
drwxr-xr-x 3 mysql mysql 19 4月 21 22:32 lib
drwxr-xr-x 2 mysql mysql 40 4月 21 22:33 libexec
drwxr-xr-x 10 mysql mysql 218 4月 21 22:33 mysql-test
drwxr-xr-x 5 mysql mysql 45 4月 21 22:33 share
drwxr-xr-x 5 mysql mysql 4096 4月 21 22:33 sql-bench
drwx------ 4 mysql root 31 4月 21 22:55 var
[
[[email protected] mysql]# ll
總用量 8
drwxr-xr-x 2 mysql mysql 4096 4月 21 22:33 bin
drwxr-xr-x 2 mysql mysql 41 4月 21 22:32 docs
drwxr-xr-x 3 mysql mysql 19 4月 21 22:32 include
drwxr-xr-x 3 mysql mysql 19 4月 21 22:32 lib
drwxr-xr-x 2 mysql mysql 40 4月 21 22:33 libexec
drwxr-xr-x 10 mysql mysql 218 4月 21 22:33 mysql-test
drwxr-xr-x 5 mysql mysql 45 4月 21 22:33 share
drwxr-xr-x 5 mysql mysql 4096 4月 21 22:33 sql-bench
drwx------ 4 mysql mysql 31 4月 21 22:55 var
[[email protected] mysql]# ./bin/mysqld_safe --user=mysql& #啟動
[1] 66265
[[email protected] mysql]# 180421 22:57:35 mysqld_safe Logging to '/var/log/mariadb/mariadb.log'.
touch: 無法建立"/var/log/mariadb/mariadb.log": 沒有那個檔案或目錄
chown: 無法訪問"/var/log/mariadb/mariadb.log": 沒有那個檔案或目錄
180421 22:57:36 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
./bin/mysqld_safe:行100: /var/log/mariadb/mariadb.log: 沒有那個檔案或目錄
./bin/mysqld_safe:行137: /var/log/mariadb/mariadb.log: 沒有那個檔案或目錄
180421 22:57:36 mysqld_safe mysqld from pid file /var/run/mariadb/mariadb.pid ended
./bin/mysqld_safe:行100: /var/log/mariadb/mariadb.log: 沒有那個檔案或目錄[1]+ 退出 1 ./bin/mysqld_safe --user=mysql
[[email protected] mysql]# #啟動失敗,不知道是什麼原因。那位大神遇到過???求解答
相關推薦
mysql_install_db初始化後沒有生成var目錄,然後我指定目錄初始化後發現能生成目錄,但是啟動時找不到檔案,怎麼回事?求大神解答
[[email protected] mysql]# ./bin/mysql_install_db --user=mysqlInstalling MySQL system tables...OKFilling help tables...OKTo start mys
一道前端面試題?求大神解答
代碼 rip 運行機制 搞笑 ava 應該 keyword scrip script for (var i = 0; i < 5; i++) { console.log(i); } “小偉,你說說這幾行代碼會輸出什麽?” 當面試官在 Sublime 打出這幾行代
112-今日閑情:瞅啥?不是你想象那樣的 求大神解答
reat desc 行動 date seo 獲取 字段 表單 _id 請=加=我=們=的=V+信【wqv 370】關註免費資料實力解答請=加=我=們=的=V+信【wqv 370】關註免費資料用心分析112期已解答,請加我們的導師免費獲取答案,期期免費獲取,不收任何費用趕緊行
maven工程引入JAR包後編譯通過了,但專案啟動時找不到JAR包
建立了maven工程,POM檔案里加好了依賴,並且在編譯的時候已經通過了,但是當啟動tomcat的時候,找不到這些JAR包了。 異常如下: java.lang.NoClassDefFoundError: javax/wsdl/xml/WSDLLocator java
SQL SERVER2008超時問題,求大神解答
C#程式,使用的是4.0的框架,資料庫是SQL SERVER2008。 一次向主表提交的資料大概是1萬多到5萬之間,子表中插入的資料量有點大,最少是14多萬條,最大是57多萬條,使用事物批量提交,當子表資料超過1千萬級別時,就容易出現超時(具
Unity3d生成並並壓縮解壓後運行遊戲時找不到UnityPlayer.dll問題
具體問題:生成遊戲-壓縮-解壓-運行遊戲,然後提示找不到UnityPlayer.dll。 前提條件:計算機本身已經有UnityPlayer.dll檔案,但是莫名其妙找不到檔案。 嘗試: 按照網上教程,在sysWow64內已經放置UnityPlayer.dll檔案了,但是
java中使用堆外記憶體,關於記憶體回收需要注意的事和沒有解決的遺留問題(等大神解答)
JVM可以使用的記憶體分外2種:堆記憶體和堆外記憶體,堆記憶體完全由JVM負責分配和釋放,如果程式沒有缺陷程式碼導致記憶體洩露,那麼就不會遇到java.lang.OutOfMemoryError這個錯誤。使用堆外記憶體,就是為了能直接分配和釋放記憶體,提高效率。JDK5.
eclipse中tomcat啟動時專案重複載入,導致資源初始化兩次的問題
在eclise中啟動tomcat發現同一個專案被重複載入了兩次,一直很納悶哪裡出了問題,網上大家各種要去修改appBase之類的方法也不起作用,最後偶然間發現是eclipse中tomcat設定的問題,見圖中: 勾上標紅的選項,就OK了!!!
vue 初始化專案報錯,求大神幫忙看下怎麼解決
執行:vue init webpack vue-demo 報錯: vue-cli · Failed to download repo vuejs-templates/webpack: unable to verify the first certificate
通過fastjson將一個對象序列化為json,同時加入指定的序列化邏輯
equals ant object 技術 mon static img string uefi 主函數: import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.serializer.ValueFilte
剛裝上最新node,npm install報這個錯誤!求ndoe大神解答!!!
大神 point style span fault 運行 方法 ins .com npm -v和node-v都可以打印出來但是 npm install就報錯! 解決方法:網絡問題,建議使用cnpm install命令安裝npm,再運行npm run dev 命令剛裝上最
這算通過稽核了麼?接下來還有沒有什麼坑,求大神指點!(201808期iOS交流群問答精華整理)
以下內容由@客服妹子爬樓整理,希望小夥伴的這些提問,對你有幫助/啟發,精選在此,喜歡請收藏,給答題的大佬們點贊! 感謝appleMan、賴著、回憶滿滿、蔣哥傳媒、歲月、誠紳、風、炒菜要放辣椒、貓有九條命、默、檸檬、Rocky,等大神們的分享和解答,特送出價值50元的暢銷課程
定義測試檔案查詢目錄時找不到路徑
#coding=utf-8 import unittest def creatsuite(): testunit=unittest.TestSuite() #定義測試檔案查詢目錄
mac os 下建立 android avd 後啟動報找不到 avd ini 檔案 問題解決方法
在 Mac OS 上建立了android虛擬機器(avd)後,啟動的時候報找不到adv對應的ini檔案 PANIC: Could not open: ~/.android/avd/android4.0.3.ini 此檔案是建立虛擬機器的時候生成的,可以先查詢此檔案是否在別的位置: sudo find
關於引用第三方jar包,生成自己jar包執行時找不到第三方jar包的解決方案
1.將所需的第三方jar包匯入專案檔案中的lib目錄下 2.在專案檔案目錄下建立MANIFEST.MF檔案,編輯檔案,如下圖: 注意: (1)Mainifset-Version:/Class-Pat
[跪求大神]大資料中的文字資料探勘問題,非結構化轉換問題
現有一個數據包,裡面有大量txt檔案,txt檔案裡儲存的是一家餐廳的基本資訊,以及客戶對其評價,包括的欄位如下: id:店鋪id name:店鋪名 name_all:店鋪全稱 star:平均評價分數 address:地址 tags:標籤 comment:一條評論 uid
用ghost重灌後硬碟不見了,ghost後無法啟動且找不到硬碟的解決辦法
今天幫朋友重灌一臺膝上型電腦(ASUS X401A)的作業系統,是把Win7重裝回Winxp,本來吧,因為ghost的出現,感覺重灌系統已經是小菜一碟了,打算在30分鐘內結束戰鬥,所以就風風火火地開始了。 開始得非常順利,進入ghost,然後選擇xp sp3的.gho檔案,
JDK刪除後執行java命令時找不到amd64\jvm.cfg檔案
1、刪除了jdk1.7。 2、刪除了環境變數。JAVA_HOME,ClassPath,path下與jdk相關的變數。 依然報錯如下: 原因是JDK自動安裝的時候除了登錄檔註冊外,還把下圖所示三個檔案複製到windows\system32下面了。而windows的path變數存在,通
ubuntu安裝pycharm後在快速啟動欄啟動提示找不到jdk的解決方法
由於學習python的需要,在電腦上安裝了pycharm社群版,按照說明進入pycharm的bin資料夾之後,執行"./pycharm.sh"指令碼執行pycharm.到此時都是正常的. 可是當再啟動欄啟動pycharm的時候系統卻提示"no JDK found",如下圖所示 倒騰一會後
vue專案打包後,npm run build相關配置,以及解決專案打包後,圖片404,背景圖片找不到,iview程式碼出問題的情況
1.首先找到config下的index.js檔案 將build下的assetsPublicPath的斜槓換成./ 操作如下 只需要換build中的就可以 dev中的assetsPublicPath不用動 不然打包過後 npm run dev的時候直接出現can not Ge