mysql登入時,ERROR 1045 (28000): 錯誤解決辦法
錯誤問題的描述:
ERROR 1045 (28000): Access denied for user 'ODBC'@'localhost' (using password: NO)
ERROR 1045 (28000): Access denied for user 'ODBC'@'localhost' (using password: YES)
windows下,以上兩個錯誤的解決方法
解決方法:
1、找到配置檔案my.ini ,然後將其開啟,可以選擇用NotePadd++開啟
2、開啟後,搜尋mysqld關鍵字
找到後,在mysqld下面新增skip-grant-tables
PS:若提示不讓儲存時,可以將該檔案剪下到桌面,更改儲存後再複製到mySQL目錄下
# For advice on how to change settings please see
# http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html
# *** DO NOT EDIT THIS FILE. It's a template which will be copied to the
# *** default location during install, and will be replaced if you
# *** upgrade to a newer version of MySQL.
[mysqld]
skip-grant-tables
# Remove leading # and set to the amount of RAM for the most important data
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
# innodb_buffer_pool_size = 128M
# Remove leading # to turn on a very important data integrity option: logging
# changes to the binary log between backups.
# log_bin
# These are commonly set, remove the # and set as required.
basedir = D:\SoftWare\MySQL\mysql-5.7.11-winx64
datadir = D:\SoftWare\MySQL\mysql-5.7.11-winx64\Data
port = 3306
# server_id = .....
# Remove leading # to set options mainly useful for reporting servers.
# The server defaults are faster for transactions and fast SELECTs.
# Adjust sizes as needed, experiment to find the optimal values.
# join_buffer_size = 128M
# sort_buffer_size = 2M
# read_rnd_buffer_size = 2M
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
這樣,是用於跳過密碼問題,但是呢,這並不能徹底解決!
3、重啟mysql服務
在任何路徑目錄下,都可以關閉/重啟mysql的服務呢。(因為,之前,已經配置全域性的環境變量了)
net stop mysql
net start mysql
4、進入資料庫,重設定密碼。
mysql -u root -p Enter
不用管password Enter
mysql> use mysql; Enter
mysql> update mysql.user set authtntication_string=password('rootroot') where user='root'; (密碼自己設)
mysql> flush privileges; 重新整理資料庫
mysql> quit;
5、密碼重設定成功,改好之後,再修改一下my.ini這個檔案,把我們剛才加入的"skip-grant-tables"這行刪除,儲存退出再重啟mysql服務就可以了。
6、重啟mysql服務,並登入mysql使用者,使用者是root,密碼是rootroot。
D:\SoftWare\MySQL\mysql-5.7.11-winx64\bin> net stop mysql
D:\SoftWare\MySQL\mysql-5.7.11-winx64\bin> net start mysql
D:\SoftWare\MySQL\mysql-5.7.11-winx64\bin>mysql -u root -p
Enter password:rootroot
感謝下面的博主:
http://www.ithao123.cn/content-10746582.html
推薦書籍:
相關推薦
mysql登入時,ERROR 1045 (28000): 錯誤解決辦法
錯誤問題的描述: ERROR 1045 (28000): Access denied for user 'ODBC'@'localhost' (using password: NO) ERROR 1045 (28000): Access denied for user 'ODBC'@'loc
mysql ERROR 1045 (28000): 錯誤解決辦法
1.進入mysql資料庫: mysql> use mysql;Database changed 2.給root使用者設定新密碼,藍色部分自己輸入:mysql> update user set password=password("123456") where user="root";Que
MySQL密碼正確卻無法本地登錄,ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
oot 問題 進入 quit mysql數據庫 host 對比 strong In MySQL密碼正確卻無法本地登錄 報錯如下: ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using pas
mysql開啟skip-name-resolve 導致[email protected](localhost)訪問引發的ERROR 1045 (28000)錯誤解決方案
its 遠程訪問 5.6 速度 base mat change http oracl 為什麽配置skip-name-resolve? 由於mysql -h${ip} 遠程訪問速度過慢, mysql -h172.16.66.171 -uroot -p123456 根據網
Mysql修改密碼,遠端登入,ERROR 1044 (42000)錯誤解決辦法
第一步:用帳號登入mysql [[email protected] ~]# mysql -u root 第二步:改變使用者資料庫 mysql> use mysql Reading table information for completion of table and column n
mysql登入報錯ERROR 1045 (28000) 的解決方法
問題描述: mysql -u root -p命令登入MySQL,提示ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) 解決辦法: information_schema 庫的USER
【MySQL實踐經驗】LOAD DATA INFILE 報錯 ERROR 1148 (42000) 或 ERROR 1045 (28000)的解決辦法
3. 非root使用者從client機器load data local infile至remote mysql server時,報錯: ERROR 1148 (42000): The used command is not allowed with this MySQL version
關於mysql登錄出現報錯信息:ERROR 1045 (28000)的解決方法
myql 登錄 error 1045 登錄mysql數據庫出現報錯信息ERROR 1045(28000)如下:[[email protected] ~]# mysql -uroot -p fanshine Enter password: ERROR 1045 (28000): Acce
mysql ERROR 1045 和2058時(28000): 錯誤解決辦法
TE itl format roo skip oot -o 添加 item mysql ERROR 1045 (28000): 錯誤解決辦法 聽語音 | 瀏覽:54286 | 更新:2018-02-23 14:34 | 標簽:mysql 1 2 3
mysql,密碼正確的情況下報錯,ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
留言 修改 提示 接下來 cat 查看 騰訊 mysql密碼 securecrt 失敗 關鍵詞 : mysql密碼正確的情況下報錯,ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using p
mysql : ERROR 1045 (28000) 錯誤的簡單處理方法
deepin安裝mysql,沒有設定密碼,之後在登入的時候出現錯誤: mysql -uroot ERROR 1045 (28000): Access denied for user 'root'@'localhost' 這時,要用sudo來進行登入:
mac mysql連接報錯ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
over ces stat tex err 文件 col rect AI 找了半天 又是kill進程,又是改設置文件,又是重啟電腦,都不管用 翻到stackoverflow上的解決方案,實施成功: 原文鏈接:https://stackoverflow.com/quest
mac安裝mysql後,啟動mysql ERROR 2002 (HY000)錯誤解決辦法
After the installation, you can start up MySQL by running the following commands in a terminal window. You must have administrator privileges to perform th
mysql登入報錯: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
之前配置好之後一直使用mysql -u root -p登入mysql資料庫,突然有一天登入的時候出現了報錯,使用的mac,報錯如下: 網上也有很多關於這個報錯的解決辦法,基本大部分都是重置密碼來解決的,但是我之前用的都沒問題,為什麼突然就無緣無故需要重置密碼,於是我找到更簡單的解決辦法了。
Linux mysql 5.6: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
tail -200 /var/lib/mysql/DB-Server.err | more2014-07-22 14:59:41 9346 [Note] Shutting down plugin 'binlog'2014-07-22 14:59:41 9346 [Note] /usr/sbin/mysqld:
MySQL的啟動問題 (ERROR 1045 (28000): Access denied for user 'ODBC'@'localhost' (using password: NO))
2011-03-18 wcdj 解決方法如下 : (1) 開啟mysql的服務,因為我當時安裝選擇的手動啟動。 (2) 將mysql安裝的bin目錄新增到系統PATH環境變數裡,用;(分號)分割。 (
windows登入安裝版mysql資料庫ERROR 1045 (28000)的解決方法
在使用mysql資料庫進行遠端登入時遇到了ERROR 1045 (28000): Access denied for user 'root'@'NJ-YF-1407-03' (using password: YES)。 檢查了一下密碼,發現沒有輸錯。那麼到底是怎麼回事呢?
Linux下停Tomcat伺服器,出現Connection refused錯誤解決辦法
錯誤內容如下 : 2010-9-19 16:09:58 org.apache.catalina.startup.Catalina stopServer 嚴重: Catalina.stop: java.net.ConnectException: Connectio
mysql匯入資料時提示 USING BTREE 錯誤解決辦法
錯誤原因: 主要是是MYSQL 5.1的一個BUG,其出現原因是mysql 5.1和mysql 5.0在處理到索引語句時有所區別。案例: 有時匯入mysql會提示如下錯誤: ERROR 1064 (42000) at line 486: You have an
Sub-process /usr/bin/dpkg returned an error code (1)錯誤解決辦法
今天用onestack解除安裝openstack的時候遇到了標題的問題~解除安裝dashboard的時候卡住了。 百度之後得到了解決方案如下: 1.cd /var/lib/dpkg/info 2.刪除與那個openstack-dashboard程式相關的程式檔案 3