<var id="xvh3p"><noframes id="xvh3p"><var id="xvh3p"></var><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing>
<var id="xvh3p"><strike id="xvh3p"><var id="xvh3p"></var></strike></var><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<span id="xvh3p"><noframes id="xvh3p"><dl id="xvh3p"></dl>
<span id="xvh3p"><noframes id="xvh3p">
<dl id="xvh3p"><noframes id="xvh3p">
<listing id="xvh3p"><noframes id="xvh3p"><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<th id="xvh3p"><strike id="xvh3p"></strike></th>
<dl id="xvh3p"><noframes id="xvh3p">
<th id="xvh3p"><noframes id="xvh3p">

观点

互联网+时代,说建站,谈运营与网络营销

Mysql修改端口号织梦DedeCMS设置教程

时间:2020-12-15

一朋友做网站时,他觉得mysql的默认端口号3306不太安全,想让小编给修改一下,非常顺利的修改了mysql的端口号,并重启了mysql服务,却发现dede无法连接数据库了,这是肯定的,因为我们需要设置dede配置文件。

具体操作方法:

1、打开dedecms网站目录,然后找到data目录;

2、在data目录下,找到【common.inc.php】文件;

3、将【$cfg_dbhost = '127.0.0.1';】修改为【$cfg_dbhost = '127.0.0.1:端口号';】即可。

需要注意的是,您的配置文件中也可能不是127.0.0.1,而是localhost,道理是一样的,改成【$cfg_dbhost = 'localhost:端口号';】就行了。

例如:$cfg_dbhost = '127.0.0.1:8888'; 

    0
    首页
    案例
    关于
    联系