mysql更改連接埠的方法:先登入mysql;然後使用指令【show global variables like 'port';】查看埠號;接著修改埠;最後重啟mysql即可。
【相關學習推薦:#mysql教學##(影片)】
mysql更改連線連接埠的方法:
1.登入mysqlmysql -u root -p //输入密码
show global variables like 'port';查看連接埠號碼
mysql> show global variables like 'port';
[root@test etc]# vi my.cnf [mysqld] port=3506 datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock user=mysql # Disabling symbolic-links is recommended to prevent assorted security risks symbolic-links=0 [mysqld_safe] log-error=/var/log/mysqld.log pid-file=/var/run/mysqld/mysqld.pid "my.cnf" 11L, 261C written [root@test etc]#
[root@test ~]# /etc/init.d/mysqld restart Stopping mysqld: [ OK ] Starting mysqld: [ OK ]
想了解更多程式設計學習,請關注php培訓欄位!
#
以上是mysql如何變更連接埠的詳細內容。更多資訊請關注PHP中文網其他相關文章!