mysql-建立使用者報錯ERROR 1396 (HY000): Operation CREATE USER failed for 'XXXX'@'XXXX'
建立使用者:
create user ‘test’@’%’ identified by ‘test’;
顯示ERROR 1396 (HY000): Operation CREATE USER failed for ‘test’@’%’
檢視是不是存在這個使用者
select user from user;
發現沒有這個使用者。
記得上次有刪除過這個使用者。可能沒有重新整理許可權
flush privileges;
之後還是不行報錯ERROR 1396 (HY000): Operation CREATE USER failed for ‘test’@’%’
沒辦法再刪除一次:
drop user ‘test’@’%’;
flush privileges;
之後create user ‘test’@’%’ identified by ‘test’;
成功。
網上找了下原因:
Assume the user is there, so drop the user
After deleting the user, there is need to flush the mysql privileges
Now create the user.
相關推薦
mysql-建立使用者報錯ERROR 1396 (HY000): Operation CREATE USER failed for 'XXXX'@'XXXX'
建立使用者: create user ‘test’@’%’ identified by ‘test’; 顯示ERROR 1396 (HY000): Operation CREATE USER fai
Shell執行MySQL指令碼錯誤:Operation CREATE USER failed for 'user'@'%'
在Docker裡面安裝的MySQL5.7,在編寫Shell指令碼執行時遇如題之BUG。 解決問題: drop user 'user'@'%' ; flush privileges; create user 'user'@'%' identified by '123456'; 可執
解決MySQL報錯ERROR 2002 (HY000)
MySQL報錯 ERROR2002 配置文件 my.cnf MySQL安裝 今天在為新的業務線搭架數據庫後,在啟動的時候報錯root@qsbilldatahis-db01:/usr/local/mysql/bin# ./mysqlERROR 2002 (HY000): Can't
MySQL登錄報錯ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
command sql ror total lock sta secure linux and [root@pisphkdcbsql01 mysql3307]# /opt/mysql3307/bin/mysql -upisp -ppisp@123 mysql:
MySQL遠端訪問報錯ERROR 2003 (HY000):Can't connect to MySQL server on'XXXXX'(111)
從一臺linux遠端連線另一臺linux上的MySQL, mysql -hxxx.xxx.xxx.xxx -uroot -p 出現ERROR 2003 (HY000): Can't connect to MySQL server on 'xxx.xxx.xxx.xxx'(111)錯誤。
mysql 報錯ERROR 1820 (HY000):You must resetpassword
今天登入mysql(Server version: 5.7.11) 還是很好的,今天登入後執行任何命令都報下面的錯誤 mysql> help contentsERROR 1820 (HY000): You must reset your password using ALTER USER statem
MySql 報錯ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
MySql 報錯ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (2) 這個錯是連結時報的錯,要連結必須啟動。修復的時候首先要啟動mysql。 首先
解決遠端Mysq連線sqlyog連線遠端mycat報錯ERROR 2003 (HY000): Can't connect to MySQL server on '192.168.57.129' (0)
今天在linux中安裝了mycat,在使用sqlyog在連線mycat時候,一直鏈接不上,出現2003錯誤, ERROR 2003 (HY000): Can’t connect to MySQL server on ‘192.168.57.129’ (0) 分析,該錯誤可能導致的原因是
mysql 報錯ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executin
<div id="article_content" class="article_content clearfix csdn-tracking-statistics" data-pid="blog" data-mod="popu_307" data-dsm="post"
MySql 報錯ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
MySql 報錯ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (2) 這個錯是連結時報的錯,要連結必須啟動。修復的時候首先要啟動m
centos7下啟動MySQL報錯ERROR 2002 (HY000)的解決辦法
最近在安裝新的PHP開發環境,vagrant+virtualBox+centos7下安裝LNMP。遇到了無數多的坑,焦頭爛額。。。 記錄一下一些很奇怪的解決辦法吧。之前安裝了msql8.0.11,安裝參考部落格地址:安裝完成後,可以用初始密碼進入MySQ
解決Linux MySQL報錯ERROR 2002 (HY000)
---------------------------------1--------------------------------- 在Linux安裝MySQL有時候會出現[mysql]ERROR 2002 (HY000): Can't connect to loca
登入mysql 報錯ERROR 1820 (HY000): You must reset your password using ALTER USER ......
1、原因:windows下首次登入mysq時報1820的錯誤,是因為安裝好mysql時密碼有一個指定的預設值,需要重置密碼才能正常使用資料庫,下面是解決該錯誤的方案: 1)在cmd下進入mysql安裝的bin目錄,登入mysql資料庫: ....\bin>mysql -hlocal
MySQL遠端訪問報錯ERROR 2003 (HY000):Can't connect to MySQL server on'XXXXX'(111)
從一臺linux遠端連線另一臺linux上的MySQL, mysql -hxxx.xxx.xxx.xxx -uroot -p 出現ERROR 2003 (HY000): Can't connect to MySQL server on 'xxx.xxx.xxx.xxx'(
Linux下 登入mysql報錯 ERROR 2002 (HY000): Can't connect to local MySQL server through socket....
查閱了無數資料,知道自己的mysql.sock檔案丟失了,想了一下,之前修改my.cnf檔案時,由於粗心把windows的路徑複製了進去,頭疼啊...... 看了一天網上的解決辦法,挨個試了一遍,最後發現其實只要一步就解決了: ERROR 2002 (HY000): Ca
mysql調用存儲過程的時候,報錯ERROR 1436 (HY000): Thread stack overrun: 解決辦法
pro average cte bytes affect vim ini run lba mysql> call productpricing();ERROR 1436 (HY000): Thread stack overrun: 10368 bytes use
mysql5.7設置簡單密碼報錯ERROR 1819 (HY000): Your password
大寫字母 variable 最小 修改 ase 有關 cal sele 小寫字母 【問題】 有時候,只是為了自己測試,不想密碼設置得那麽復雜,譬如只想設置root的密碼為123456。 SET PASSWORD FOR ‘root‘@‘localhost‘ = PASSWO
mysql啟動報錯... ERROR! The server quit without updating PID file (/usr/local/mysql/data/test.pid
公司的伺服器突然斷電了,恢復後重啟mysql報錯如下 Starting MySQL... ERROR! The server quit without updating PID file (/usr/local/mysql/data/test.pid) &
mysql安裝報錯error while loading shared libraries: libaio.so.1: cannot open shared object file: No such
使用ubantu安裝mysql時,出現報錯 [email protected]:/home/soft/mysql-5.6.41-linux-glibc2.12-x86_64# ./scripts/mysql_install_db --user=mysql --da
檢視檢視報錯ERROR 1356 (HY000): View 'bdi_gj1121.y' references invalid table(s) or column(s) or function
問題說明: 業務說匯入的新資料庫有幾個檢視查不了,報錯: mysql> select count(*) from bdi_gj1121.beaf_company;ERROR 1356 (HY000): View 'bdi_gj1121.beaf_company' references