国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

The MySQL server is running with the --skip-grant-tables option so it cannot execute this state

這篇具有很好參考價(jià)值的文章主要介紹了The MySQL server is running with the --skip-grant-tables option so it cannot execute this state。希望對(duì)大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請(qǐng)大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問(wèn)。

原因: 鏈接數(shù)據(jù)庫(kù)忘記用戶密碼, 配置文件/etc/my.cnf中增加skip-grant-table 跳過(guò)密碼登錄,進(jìn)入服務(wù)器修改密碼時(shí),出現(xiàn)如下報(bào)錯(cuò)信息:

mysql> alter user root@'localhost' identified by '123';
ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement

解決方法:

1、重啟數(shù)據(jù)庫(kù)服務(wù)器

? ? ?]#?service mysql restart

2、鏈接數(shù)據(jù)庫(kù)服務(wù)器

? ? ?]# mysql

? ? ?mysql>??flush privileges;? ? ? ? ? ? ?刷新權(quán)限列表

? ? ?mysql>?alter user root@'localhost' identified by '123';? ? ?更改用戶密碼

mysql> flush privileges;
Query OK, 0 rows affected (0.01 sec)

mysql> alter user root@'localhost' identified by '123';
Query OK, 0 rows affected (0.00 sec)

?3、退出數(shù)據(jù)庫(kù)服務(wù)器,注釋配置文件? #skip-grant-table, 重啟數(shù)據(jù)庫(kù)服務(wù)器器

4、驗(yàn)證用戶是否登錄

[root@master-2 mysql]# mysql -uroot -p123
mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 8
Server version: 8.0.31 MySQL Community Server - GPL

Copyright (c) 2000, 2022, Oracle and/or its affiliates.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> exit

? ? ?文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-716979.html

到了這里,關(guān)于The MySQL server is running with the --skip-grant-tables option so it cannot execute this state的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來(lái)自互聯(lián)網(wǎng)用戶投稿,該文觀點(diǎn)僅代表作者本人,不代表本站立場(chǎng)。本站僅提供信息存儲(chǔ)空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請(qǐng)注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實(shí)不符,請(qǐng)點(diǎn)擊違法舉報(bào)進(jìn)行投訴反饋,一經(jīng)查實(shí),立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • 供應(yīng)鏈安全-鏡像 Trivy kubesec_the first run cannot skip downloading db

    供應(yīng)鏈安全-鏡像 Trivy kubesec_the first run cannot skip downloading db

    [root@master trivy]# trivy image nginx:1.17.1 --skip-db-update --skip-java-db-update 2023-11-15T02:10:00.448-0500 INFO Vulnerability scanning is enabled 2023-11-15T02:10:00.448-0500 INFO Secret scanning is enabled 2023-11-15T02:10:00.448-0500 INFO If your scanning is slow, please try ‘–scanners vuln’ to disable secret scanning 2023-11-15T02:10:00.448-0

    2024年04月22日
    瀏覽(23)
  • Centos MySQL --skip-grant-tables詳解

    主機(jī)系統(tǒng):Centos7 64位 數(shù)據(jù)庫(kù)版本:MySQL5.7.40 使用–skip-grant-tables場(chǎng)景 1、忘記管理員密碼 2、修改管理員密碼 顯示錯(cuò)誤內(nèi)容如下: 我的 MySQL5.7 安裝流程:步驟1,如果你的也是這樣設(shè)置的,那請(qǐng)繼續(xù)操作吧 解決方式: 1、進(jìn)入yum.repos.d文件夾 2、停止當(dāng)前運(yùn)行的MySQL服務(wù) 3、編

    2024年02月05日
    瀏覽(17)
  • MySQL:Skip-grant-tables非常有用啟動(dòng)參數(shù)

    介紹一個(gè)非常有用的mysql啟動(dòng)參數(shù)—— --skip-grant-tables。 顧名思義,就是在啟動(dòng)mysql時(shí)不啟動(dòng)grant-tables,授權(quán)表。有什么用呢? 忘記管理員密碼后有用 操作方法: 1、停止mysql服務(wù) 2、以命令行參數(shù)啟動(dòng)mysql 3、修改管理員密碼 4、殺死m(xù)ysql,重啟mysql

    2024年01月25日
    瀏覽(16)
  • Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running

    當(dāng)docker? ps出現(xiàn)Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running以下報(bào)錯(cuò)時(shí),首先 查看docker服務(wù)的狀態(tài)如果處于關(guān)閉狀態(tài)則需要啟動(dòng)docker服務(wù) 如果服務(wù)是啟動(dòng)狀態(tài)docker? ?ps還是報(bào)這個(gè)錯(cuò) 如果路徑ok,那就是docker.socket進(jìn)程沒(méi)有關(guān)掉 重新啟動(dòng)服務(wù)即可

    2024年02月08日
    瀏覽(19)
  • 報(bào)錯(cuò):To see the full stack trace of the errors, re-run Maven with the -e switch.

    目錄 報(bào)錯(cuò)信息: 報(bào)錯(cuò)場(chǎng)景: 報(bào)錯(cuò)原因: ?解決方法: [ERROR] Java heap space - [Help 1] [ERROR]? [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR]? [ERROR] For more information about the errors and possible solutions, please

    2024年02月07日
    瀏覽(25)
  • 關(guān)于:Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

    關(guān)于:Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

    報(bào)錯(cuò)的翻譯:無(wú)法連接到 unix:///var/run/docker.sock 上的 Docker 守護(hù)程序。 docker 守護(hù)進(jìn)程是否正在運(yùn)行? 通過(guò)翻譯完報(bào)錯(cuò),可以看出報(bào)錯(cuò)的原因是 因?yàn)閐ocker的服務(wù)沒(méi)啟動(dòng) 1、首先啟動(dòng)docker服務(wù) 2、查看docker服務(wù)當(dāng)前狀態(tài) 就此,以上的報(bào)錯(cuò)就成功解決! 為了避免以上的問(wèn)題重復(fù)出

    2024年02月15日
    瀏覽(27)
  • 【Docker:Cannot connect to the Docker daemon at unix:///var/run/docker.sock.Is the docker daemon run】

    【Docker:Cannot connect to the Docker daemon at unix:///var/run/docker.sock.Is the docker daemon run】

    在后臺(tái)一直出現(xiàn)xxljob環(huán)境的報(bào)錯(cuò),然后查看服務(wù)器執(zhí)行關(guān)于docker命令,docker images,docker ps,會(huì)一直出現(xiàn)如下問(wèn)題: 此時(shí)已確定Docker本身已經(jīng)安裝正常。 問(wèn)題原因是因?yàn)閐ocker服務(wù)沒(méi)有啟動(dòng),所以在相應(yīng)的/var/run/ 路徑下找不到docker的進(jìn)程。 如果未安裝docker,則會(huì)出現(xiàn): 1、執(zhí)行

    2024年02月05日
    瀏覽(63)
  • docker中“Cannot connect to the Docker daemon at .............Is the Docker daemon running?” 解決辦法

    docker中“Cannot connect to the Docker daemon at .............Is the Docker daemon running?” 解決辦法

    #1、在docker拉取鏡像后啟動(dòng)不起來(lái) “Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the Docker daemon running?”? 此錯(cuò)誤的原因包括: (1)The Docker daemon is not running. Docker守護(hù)程序未運(yùn)行 (2)Docker doesn’t shutdown cleanly. Docker無(wú)法完全關(guān)閉。 (3)Lack of root privileges to start th

    2024年02月03日
    瀏覽(32)
  • Flutter Cannot run with sound null safety, because the following dependencies

    Flutter Cannot run with sound null safety, because the following dependencies

    flutter sdk 版本升級(jí)到2.0或者更高的版本后,運(yùn)行之前的代碼會(huì)報(bào)錯(cuò) 這些包不支持 safety模式。我們可以在運(yùn)行的時(shí)候添加–no-sound-null-safety。打開(kāi)Android Studio,然后依次選擇【Run】 --【 Edit Configurations】 -- 【Add Additional Run args 】– 【–no-sound-null-safety】,如下圖。

    2024年02月10日
    瀏覽(19)
  • Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the dock

    Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the dock

    記錄一下初使用docker時(shí),報(bào)錯(cuò) Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the dock er daemon running? 的解決思路。 服務(wù)器使用阿里云的,經(jīng)常重啟,一直沒(méi)有管理之前安裝的docker,現(xiàn)在想學(xué)習(xí)spark,遍跟著官網(wǎng)開(kāi)始下載spark,執(zhí)行了 docker pull apachecn0/spark-doc-zh 就報(bào)了下面

    2024年02月16日
    瀏覽(96)

覺(jué)得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請(qǐng)作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包