请问怎么配置 MySQL 数据库的端口啊? [ 2.0 版本 ]
请问怎么配置 MySQL 数据库的端口啊?
                Mr_Xu 补充于 2020-09-24 10:19
                
                                    
            
            'dsn' => 'mysql:host=127.0.0.1:13306;dbname=dbnaem',
共 3 个回答
- 
  
- 
  
- 
 leowenyang 回答于 2020-10-10 12:02 举报 leowenyang 回答于 2020-10-10 12:02 举报The PDO_MYSQL Data Source Name (DSN) is composed of the following elements: DSN prefix The DSN prefix is mysql: . host The hostname on which the database server resides. port The port number where the database server is listening. dbname The name of the database. unix_socket The MySQL Unix socket (shouldn't be used with host or port). charset The character set. See the character set concepts documentation for more information.
Mr_Xu
            注册时间:2015-12-22
最后登录:2021-11-02
在线时长:16小时2分
    最后登录:2021-11-02
在线时长:16小时2分
- 粉丝3
- 金钱70
- 威望20
- 积分430
