⑴ sql server2005哪句語句是查看埠號
你查看埠號出於什麼目的?因為資料庫實例有可能在多個IP上監聽不同的埠。查看當前連接連接的伺服器埠可以在DMV里查看
SELECT local_tcp_port FROM sys.dm_exec_connections WHERE session_id=@@SPID;
當然不加WHERE條件也可以查看當前與資料庫通過TCP連接方式進行連接的所有連接的埠信息。
⑵ sql資料庫埠怎麼打開
方法如下:
點擊電腦左下方的開始-Microsoft SQL Server2005-配置工具-SQL Server Configuration Manager- 展開網路配置 --點擊MYSQLSERVER協議 --雙擊TCP/IP --選擇IP地址就能看到埠號了。
⑶ mysql怎麼查看埠號,和服務名
如果在cmd命令窗口中使用netstat查看各個程序佔用埠
如果進入mysql 使用show variables like 'port';
使用?或help查看幫助
mysql> show variables like 'port';
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| port | 3306 |
+---------------+-------+
1 row in set (0.00 sec)
mysql> ?
For information about MySQL procts and services, visit:
http://www.mysql.com/
For developer information, including the MySQL Reference Manual, visit:
http://dev.mysql.com/
To buy MySQL Enterprise support, training, or other procts, visit:
https://shop.mysql.com/
List of all MySQL commands:
Note that all text commands must be first on line and end with ';'
? (\?) Synonym for `help'.
clear (\c) Clear the current input statement.
connect (\r) Reconnect to the server. Optional arguments are db and host.
delimiter (\d) Set statement delimiter.
ego (\G) Send command to mysql server, display result vertically.
exit (\q) Exit mysql. Same as quit.
go (\g) Send command to mysql server.
help (\h) Display this help.
notee (\t) Don't write into outfile.
print (\p) Print current command.
prompt (\R) Change your mysql prompt.
quit (\q) Quit mysql.
rehash (\#) Rebuild completion hash.
source (\.) Execute an SQL script file. Takes a file name as an argument.
status (\s) Get status information from the server.
tee (\T) Set outfile [to_outfile]. Append everything into given outfile.
use (\u) Use another database. Takes database name as argument.
charset (\C) Switch to another charset. Might be needed for processing binlog
with multi-byte charsets.
warnings (\W) Show warnings after every statement.
nowarning (\w) Don't show warnings after every statement.
For server side help, type 'help contents'
mysql>
⑷ 如何查看自己資料庫的埠號
可以通過tnsnames.ora文件讀取資料庫的信息。
可以看到類似如下的內容:abc =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.219.5)(PORT = 1521)))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)))
HOST= 就是主機地址(如果是寫的主機名,可以查看/etc/hosts文件中查看主機名對應的IP地址)
POST= 就是資料庫開放的埠
⑸ 怎麼查看sql2000的資料庫的IP 地址和埠號
--server name
SELECT CONVERT(sysname, SERVERPROPERTY('servername'));
--server port
EXEC master..xp_regread
@rootkey = 'HKEY_LOCAL_MACHINE',
@key = 'SOFTWARE\MICROSOFT\MSSQLSERVER\MSSQLSERVER\SUPERSOCKETNETLIB\TCP',
@value_name = 'TcpPort'
在你要看的那個server的查詢分析器執行
⑹ 如何查看sql2005資料庫的埠號
1、首先,雙擊桌面上的資料庫運行圖標,打開資料庫軟體SQL2005,進入資料庫主頁面。
⑺ 如何查看sql2000 資料庫的 埠號
資料庫上右鍵→所有任務→還原/備份
請參考
⑻ 如何查看postgresql資料庫埠號
linux 下 通過netstat -a 來查看
windows下通過查看MySQL安裝目錄下my.ini文件
或者 進入mysql dos格式
mysql> show variables like 'port';
++-+
Variable_name Value
++-+
port 3306
++-+
1 row in set (0.00 sec)
⑼ 怎麼知道SQL資料庫用的哪個埠呢
MS 的SQLSERVER 默認埠為1433 ,看SQLSERVER服務有沒啟動.