asp.net + mysql + ubuntu 問題集錦

來源:互聯網
上載者:User

標籤:asp.net   mysql   web   linux   authentication   

項目環境: asp.net + mysql

不想在PC上安裝mysql, 直接使用之前在 Ubuntu 上安裝好的Mysql資料庫.本文主要會列出在開發過程中遇到的問題,拿出來給大家分享。

至於安裝就不多說,可參考:CentOS7 + Apache2.4 + Mysql5.5 + PHP5.5


問題:

情境:宿主機訪問虛擬機器中的mysql,

安裝配置可參考: http://www.2cto.com/database/201305/210279.html


Authentication to host ‘xxx‘ for user ‘xx‘ using method ‘mysql_native_password‘ failed with message: Access denied for user ‘xx‘@‘xxxx‘ (using password: YES)

解決方案參考:

http://stackoverflow.com/questions/22510457/reference-mysql-connector-net-authentication-to-host-using-method-mysql-native


其實最終發現自己犯的是比較低級的錯誤:在給遠端使用者賦許可權的時候 

grant all privileges on mydb.* to [email protected] identified by ‘mypqd‘ with grant option;

[email protected]這裡@之後的ip是你自己的ip(即:遠端ip)


本文出自 “狼之魂” 部落格,請務必保留此出處http://itwolf.blog.51cto.com/3286625/1656741

asp.net + mysql + ubuntu 問題集錦

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.