我在eclipse執行報的錯,沒報錯就不管了。。。。
null, message from server: "host '202.197.100.120' is not allowed toconnect to this mysql server"
在伺服器:
一:開啟
mysql
控制台,輸入:
二:輸入:
如果報錯:
mysql> update user set host='%' where user = 'root';
error 1062(23000): duplicate entry '%-root' for key 'primary'
然後檢視了下資料庫的host資訊如下:
mysql> select host from user where user = 'root';
+-----------------------+
| host |
+-----------------------+
| % |
| 127.0.0.1|
|localhost.localdomain |
+-----------------------+
3 rows in set(0.00 sec)
host已經有了%這個值,所以直接執行命令:
複製** **如下:
mysql>flush privileges;
Java連線資料庫
1 oracle8 8i 9i資料庫 用thin模式 class.forname oracle.jdbc.driver.oracledriver newinstance string url jdbc oracle thin localhost 1521 orcl 2 sql server7.0 2...
PL SQL遠端連線資料庫
關鍵的兩個步驟 往往我們會漏了第二個步驟 第一步 在本地安裝的oracle客戶端找到tnsnames.ora檔案 我的目錄是 f oracle product 10.2.0 client 1 network admin 然後新增如下 192.168.10.6 description address ...
navicate 遠端連線 資料庫
方法 一 本地登入mysql,更改 mysql 資料庫裡的 user 表裡的 host 項,將 localhost 改為 mysql u root proot mysql use mysql mysql update user set host where user root mysql selec...